Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
838 bytes
|
Line | |
---|
1 | /* |
---|
2 | * unistd.h |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef _UNISTD_H |
---|
6 | #define _UNISTD_H |
---|
7 | |
---|
8 | #include <klibc/extern.h> |
---|
9 | #include <klibc/compiler.h> |
---|
10 | #include <stddef.h> |
---|
11 | #include <sys/types.h> |
---|
12 | |
---|
13 | __extern __noreturn _exit(int); |
---|
14 | |
---|
15 | __extern int open(const char *, int, ...); |
---|
16 | __extern int close(int); |
---|
17 | |
---|
18 | __extern ssize_t read(int, void *, size_t); |
---|
19 | __extern ssize_t write(int, const void *, size_t); |
---|
20 | |
---|
21 | __extern int isatty(int); |
---|
22 | |
---|
23 | __extern int getscreensize(int, int *, int *); |
---|
24 | |
---|
25 | __extern char *getcwd(char *, int); |
---|
26 | __extern int chdir(const char *); |
---|
27 | |
---|
28 | __extern unsigned int sleep(unsigned int); |
---|
29 | __extern unsigned int msleep(unsigned int); |
---|
30 | |
---|
31 | __extern int getopt(int, char *const *, const char *); |
---|
32 | __extern char *optarg; |
---|
33 | __extern int optind, opterr, optopt; |
---|
34 | |
---|
35 | /* Standard file descriptor numbers. */ |
---|
36 | #define STDIN_FILENO 0 |
---|
37 | #define STDOUT_FILENO 1 |
---|
38 | #define STDERR_FILENO 2 |
---|
39 | |
---|
40 | #endif /* _UNISTD_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.