scc

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

sys.h (425B)


      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 typedef int pid_t;
     10 
     11 struct sigaction {
     12 	void (*sa_handler)(int);
     13 	char sa_mask[8];
     14 	int sa_flags;
     15 };
     16 
     17 extern pid_t _getpid(void);
     18 extern int _kill(pid_t pid, int signum);
     19 extern int _sigaction(int sig, struct sigaction *new, struct sigaction *old);