scc

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

sys.h (436B)


      1 #define O_RDONLY  0x00000000
      2 #define O_WRONLY  0x00000001
      3 #define O_RDWR    0x00000002
      4 #define O_ACCMODE 0x00000003
      5 
      6 #define O_TRUNC   0x00000400
      7 #define O_APPEND  0x00000008
      8 #define O_CREAT   0x00000200
      9 
     10 #define AT_FDCWD  -100
     11 #define CLOCKS_PER_SEC ((clock_t) 100)
     12 #define RUSAGE_SELF 0
     13 
     14 typedef int pid_t;
     15 
     16 extern pid_t _getpid(void);
     17 extern int _kill(pid_t, int);
     18 extern int _sigaction(int, struct sigaction *, struct sigaction *);