scc

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

sys.h (489B)


      1 #define O_RDONLY  0x00000000
      2 #define O_WRONLY  0x00000001
      3 #define O_RDWR    0x00000002
      4 
      5 #define O_TRUNC   0x00000200
      6 #define O_APPEND  0x00000400
      7 #define O_CREAT   0x00000040
      8 
      9 #define AT_FDCWD  -100
     10 #define CLOCKS_PER_SEC ((clock_t) 1000000)
     11 #define RUSAGE_SELF 0
     12 
     13 typedef int pid_t;
     14 
     15 struct sigaction {
     16 	void (*sa_handler)(int);
     17 	int sa_mask;
     18 	int sa_flags;
     19 };
     20 
     21 extern pid_t _getpid(void);
     22 extern int _kill(pid_t, int);
     23 extern int _sigaction(int, struct sigaction *, struct sigaction *);