9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

sys.h (421B)


      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 	int sa_mask;
     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);