1 #include <u.h> 2 #include <libc.h> 3 4 int 5 mycreat(char *n, int p) 6 { 7 8 return create(n, 1, p); 9 } 10 11 char* 12 myerrstr(int eno) 13 { 14 char err[ERRLEN]; 15 16 USED(eno); 17 errstr(err); 18 return err; 19 } 20 21 int 22 mywait(int *s) 23 { 24 int p; 25 Waitmsg status; 26 27 p = wait(&status); 28 *s = 0; 29 if(status.msg[0]) 30 *s = 1; 31 return p; 32 } 33 34 int 35 unix(void) 36 { 37 38 return 0; 39 } 40