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