| 1 | /* System V Release 4 Unix host system */ |
| 2 | |
| 3 | #include <ansidecl.h> |
| 4 | #include <fcntl.h> |
| 5 | #include <errno.h> |
| 6 | #include <stdio.h> |
| 7 | #include <sys/types.h> |
| 8 | #include <sys/stat.h> |
| 9 | #include <utime.h> |
| 10 | #include <ctype.h> |
| 11 | #include <string.h> |
| 12 | #include <sys/file.h> |
| 13 | |
| 14 | #ifndef O_ACCMODE |
| 15 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
| 16 | #endif |
| 17 | #define SEEK_SET 0 |
| 18 | #define SEEK_CUR 1 |
| 19 | |
| 20 | #define POSIX_UTIME |
| 21 | #define HAVE_PROCFS /* This host has /proc support */ |
| 22 | |
| 23 | extern void EXFUN( abort,(void)); |
| 24 | extern int EXFUN( close,(int)); |
| 25 | extern void EXFUN( exit,(int)); |
| 26 | extern int EXFUN( fclose,(FILE*)); |
| 27 | extern void EXFUN( free,(PTR)); |
| 28 | extern int EXFUN( fseek,(FILE*, long, int)); |
| 29 | extern int EXFUN( getgid,()); |
| 30 | extern int EXFUN( getuid,()); |
| 31 | extern PTR EXFUN( malloc,(unsigned)); |
| 32 | extern void EXFUN( perror,(CONST char *)); |
| 33 | extern int EXFUN( qsort,(void *data,int els, int siz, int func())); |
| 34 | extern PTR EXFUN( realloc, (PTR, unsigned)); |
| 35 | |
| 36 | extern char *getenv(); |
| 37 | extern int chmod(); |
| 38 | extern int fstat(); |
| 39 | extern int stat(); |
| 40 | extern int strtol(); |
| 41 | |
| 42 | extern char *ctime(); |
| 43 | extern int _flsbuf(); |
| 44 | extern int fclose(); |
| 45 | extern int utimes(); |
| 46 | extern int vfprintf(); |
| 47 | extern long atol(); |
| 48 | extern int fputc(); |
| 49 | extern int unlink(); |
| 50 | |
| 51 | #include "fopen-same.h" |