scc

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

sys.h (510B)


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