| 1 | #include <ansidecl.h> |
| 2 | #include <fcntl.h> |
| 3 | #include <errno.h> |
| 4 | #include <stdio.h> |
| 5 | #include <sys/types.h> |
| 6 | #include <sys/stat.h> |
| 7 | #include <ctype.h> |
| 8 | #include <string.h> |
| 9 | #include <sys/file.h> |
| 10 | #ifndef O_ACCMODE |
| 11 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
| 12 | #endif |
| 13 | #define SEEK_SET 0 |
| 14 | #define SEEK_CUR 1 |
| 15 | |
| 16 | #ifdef __STDC__ |
| 17 | extern void EXFUN(free,(PTR)); |
| 18 | #else /* not __STDC__ */ |
| 19 | extern int EXFUN(free,(PTR)); |
| 20 | #endif /* not __STDC__ */ |
| 21 | extern void EXFUN(abort,(void)); |
| 22 | extern int EXFUN(close,(int)); |
| 23 | extern int EXFUN(fprintf,(FILE *,CONST char *,...)); |
| 24 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); |
| 25 | extern void EXFUN(exit,(int)); |
| 26 | extern int EXFUN(fclose,(FILE*)); |
| 27 | extern void EXFUN(bcopy,(char*,char*,int)); |
| 28 | extern int EXFUN(bcmp,(char *, char *, int)); |
| 29 | extern void EXFUN(bzero,(char *, int)); |
| 30 | extern void EXFUN(perror,(CONST char *)); |
| 31 | extern char *getenv(); |
| 32 | extern char * strchr(); |
| 33 | extern char *memchr(); |
| 34 | extern char *strrchr(); |
| 35 | extern int chmod(); |
| 36 | extern int fstat(); |
| 37 | extern int sscanf(); |
| 38 | extern int stat(); |
| 39 | extern int strtol(); |
| 40 | #ifndef DONTDECLARE_MALLOC |
| 41 | extern PTR EXFUN(malloc,(unsigned)); |
| 42 | extern PTR EXFUN(realloc, (PTR, unsigned)); |
| 43 | #endif |
| 44 | |
| 45 | extern char *strrchr(); |
| 46 | extern char *ctime(); |
| 47 | extern int _flsbuf(); |
| 48 | extern int fclose(); |
| 49 | extern int time(); |
| 50 | extern int utimes(); |
| 51 | extern int vfprintf(); |
| 52 | extern long atol(); |
| 53 | extern char *getenv(); |
| 54 | extern int fputc(); |
| 55 | extern int unlink(); |
| 56 | |
| 57 | |
| 58 | #include "fopen-same.h" |