sys.h (815B)
1 #define O_RDONLY 0x00000000 2 #define O_WRONLY 0x00000001 3 #define O_RDWR 0x00000002 4 #define O_ACCMODE 0x00000003 5 6 #define O_CLOEXEC 0x00400000 7 #define O_EXCL 0x00000800 8 #define O_TRUNC 0x00000400 9 #define O_CREAT 0x00000200 10 #define O_APPEND 0x00000008 11 12 #define AT_FDCWD -100 13 #define CLOCKS_PER_SEC ((clock_t) 100) 14 #define RUSAGE_SELF 0 15 16 #define F_OK 0 17 #define X_OK 1 18 #define R_OK 4 19 #define W_OK 2 20 21 typedef int pid_t; 22 23 struct sigaction; 24 struct rusage; 25 26 extern int _execve(const char *, const char *[], char *const []); 27 extern int _fork(void); 28 extern pid_t _getpid(void); 29 extern int _kill(pid_t, int); 30 extern int _sigaction(int, struct sigaction *, struct sigaction *); 31 extern pid_t _wait4(pid_t, int *, int, struct rusage *); 32 extern pid_t _waitpid(pid_t, int *, int); 33 34 extern char **_environ;