1 /* Determined from CC RTL function prototypes in online documentation */ 2 3 #define mode_t unsigned int 4 5 #define fork(x) vfork(x) 6 7 #include <sys/types.h> 8 #include <unixio.h> 9 #include <unixlib.h> 10 #include <stdlib.h> 11 #include <processes.h> 12 #include <socket.h> 13 14 #define STDIN_FILENO 0 15 #define STDOUT_FILENO 1 16 #define STDERR_FILENO 2 17 18 extern int fnmatch(char *pattern, char *string, int options); 19 20 /* With the define of HAVE_NDIR_H in config.h, lib/system.h and 21 diff/system.h should include ndir.h for us. But I'm too lazy to 22 track down and make _sure_ all bases are covered, so I'm leaving in 23 this include for now. */ 24 #include "ndir.h" 25 26 #include "pwd.h" 27 #include "pipe.h" 28 29 int unlink(char *path); 30 int link(char *from, char *to); 31 32 #define stat(a, b) wrapped_stat(a, b) 33 34 #undef POSIX 35