* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / include / unistd.h
blob99faccce0e919a3347ff38d1439d9df00d9109ae
1 /* unistd.h <ndf@linux.mit.edu> */
2 #include <features.h>
3 #include <sys/types.h>
5 #ifndef __UNISTD_H
6 #define __UNISTD_H
8 #define STDIN_FILENO 0
9 #define STDOUT_FILENO 1
10 #define STDERR_FILENO 2
12 extern int close __P ((int));
13 extern size_t read __P ((int __fd, char * __buf, size_t __nbytes));
14 extern size_t write __P ((int __fd, __const char * __buf, size_t __n));
15 extern off_t lseek __P ((int __fd, off_t __n, int __whence));
16 extern int pipe __P ((int __pipedes[2]));
17 extern unsigned int alarm __P ((unsigned int __seconds));
18 extern unsigned int sleep __P ((unsigned int __seconds));
19 extern int pause __P ((void));
20 extern char* crypt __P((__const char *__key, __const char *__salt));
22 #ifndef SEEK_SET
23 #define SEEK_SET 0
24 #define SEEK_CUR 1
25 #define SEEK_END 2
26 #endif
28 #ifndef R_OK
29 #define R_OK 4 /* Test for read permission. */
30 #define W_OK 2 /* Test for write permission. */
31 #define X_OK 1 /* Test for execute permission. */
32 #define F_OK 0 /* Test for existence. */
33 #endif
35 #define _POSIX_VDISABLE '\0'
37 #endif /* __UNISTD_H */