scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

sys.h (727B)


      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 0x00080000
      7 #define O_TRUNC   0x00000200
      8 #define O_APPEND  0x00000400
      9 #define O_EXCL    0x00000080
     10 #define O_CREAT   0x00000040
     11 
     12 #define AT_FDCWD  -100
     13 #define RUSAGE_SELF 0
     14 
     15 #define F_OK    0
     16 #define X_OK    1
     17 #define R_OK    4
     18 #define W_OK    2
     19 
     20 typedef int pid_t;
     21 
     22 struct sigaction;
     23 struct rusage;
     24 
     25 int _execve(const char *, const char *[], char *const []);
     26 int _fork(void);
     27 pid_t _getpid(void);
     28 int _kill(pid_t, int);
     29 int _sigaction(int, struct sigaction *, struct sigaction *);
     30 pid_t _wait4(pid_t, int *, int, struct rusage *);
     31 pid_t _waitpid(pid_t, int *, int);
     32 
     33 extern char **_environ;