| 1 | #include <ansidecl.h> |
| 2 | #include <errno.h> |
| 3 | #include <sys/types.h> |
| 4 | #include <unistd.h> |
| 5 | |
| 6 | #include <string.h> |
| 7 | #include <fcntl.h> |
| 8 | #include <sys/stat.h> |
| 9 | #include <time.h> |
| 10 | #include <ctype.h> |
| 11 | |
| 12 | #include <stdio.h> |
| 13 | |
| 14 | #define USE_UTIME |
| 15 | |
| 16 | #ifndef DONTDECLARE_MALLOC |
| 17 | extern PTR EXFUN(malloc,(unsigned)); |
| 18 | extern PTR EXFUN(realloc, (PTR, unsigned)); |
| 19 | #endif |
| 20 | extern int EXFUN(abort,(void)); |
| 21 | extern int EXFUN(free,(PTR)); |
| 22 | extern void EXFUN(bcopy,(char*,char*,int)); |
| 23 | extern void EXFUN(exit,(int)); |
| 24 | extern int EXFUN(strtol,(char *, char **, int)); |
| 25 | extern void EXFUN(bzero,(char *, int)); |
| 26 | #define NO_STDARG 1 |
| 27 | extern int EXFUN(abort,(void)); |
| 28 | extern int EXFUN(close,(int)); |
| 29 | #if 0 |
| 30 | /* Conflicts with system headers on SVR4. */ |
| 31 | extern int EXFUN(fcntl,(int des, int cmd, int e)); |
| 32 | #endif |
| 33 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); |
| 34 | #if 0 |
| 35 | /* Conflicts with system headers on SVR4. */ |
| 36 | extern int EXFUN(fseek,(FILE*, int, int)); |
| 37 | #endif |
| 38 | extern int EXFUN(fclose,(FILE*)); |
| 39 | extern void EXFUN(bcopy,(char*,char*,int)); |
| 40 | extern int EXFUN(bcmp,(char *, char *, int)); |
| 41 | extern void EXFUN(bzero,(char *, int)); |
| 42 | extern void EXFUN(perror,(CONST char *)); |
| 43 | extern PTR EXFUN(memchr,(const void *, int, unsigned )); |
| 44 | #if 0 |
| 45 | /* Conflicts with system headers on SVR4. */ |
| 46 | extern unsigned short EXFUN(getuid,(void)); |
| 47 | extern unsigned short EXFUN(getgid,(void)); |
| 48 | #endif |
| 49 | |
| 50 | extern char * strchr(); |
| 51 | |
| 52 | extern char *getenv(); |
| 53 | extern char *strrchr(); |
| 54 | extern int chmod(); |
| 55 | #if 0 |
| 56 | /* Conflicts with system headers on SVR4. */ |
| 57 | extern int fread(); |
| 58 | #endif |
| 59 | extern int fstat(); |
| 60 | #if 0 |
| 61 | /* Conflicts with system headers on SVR4. */ |
| 62 | extern int fwrite(); |
| 63 | #endif |
| 64 | extern int sscanf(); |
| 65 | extern int stat(); |
| 66 | extern int strtol(); |
| 67 | extern int fileno(); |
| 68 | extern char *strrchr(); |
| 69 | extern char *ctime(); |
| 70 | extern int _flsbuf(); |
| 71 | extern int fclose(); |
| 72 | #if 0 |
| 73 | /* Conflicts with system headers on SVR4. */ |
| 74 | extern int time(); |
| 75 | #endif |
| 76 | extern int utime(); |
| 77 | extern int vfprintf(); |
| 78 | extern long atol(); |
| 79 | extern char *getenv(); |
| 80 | extern int fputc(); |
| 81 | extern int unlink(); |
| 82 | |
| 83 | |
| 84 | #include "fopen-same.h" |