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