NEWS: add grubcfg= and whichsys.c32
[hdt-cyring.git] / com32 / include / unistd.h
blobfc514f10d914e8f9a01ccdb2010f22dfce94dacb
1 /*
2 * unistd.h
3 */
5 #ifndef _UNISTD_H
6 #define _UNISTD_H
8 #include <klibc/extern.h>
9 #include <klibc/compiler.h>
10 #include <stddef.h>
11 #include <sys/types.h>
13 __extern __noreturn _exit(int);
15 __extern int open(const char *, int, ...);
16 __extern int close(int);
18 __extern ssize_t read(int, void *, size_t);
19 __extern ssize_t write(int, const void *, size_t);
21 __extern int isatty(int);
23 __extern int getscreensize(int, int *, int *);
25 __extern char *getcwd(char *, int);
26 __extern int chdir(const char *);
28 __extern unsigned int sleep(unsigned int);
29 __extern unsigned int msleep(unsigned int);
31 /* Standard file descriptor numbers. */
32 #define STDIN_FILENO 0
33 #define STDOUT_FILENO 1
34 #define STDERR_FILENO 2
36 #endif /* _UNISTD_H */