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 )); | |
394d1b3f JK |
43 | #if 0 |
44 | /* Conflicts with system headers on SVR4. */ | |
56a56f4c SC |
45 | extern unsigned short EXFUN(getuid,(void)); |
46 | extern unsigned short EXFUN(getgid,(void)); | |
394d1b3f | 47 | #endif |
302c8ab1 | 48 | |
2f192e9b | 49 | extern char * strchr(); |
302c8ab1 | 50 | |
2f192e9b | 51 | extern char *getenv(); |
2f192e9b SC |
52 | extern char *strrchr(); |
53 | extern int chmod(); | |
ec604f5f JK |
54 | #if 0 |
55 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 56 | extern int fread(); |
ec604f5f | 57 | #endif |
2f192e9b | 58 | extern int fstat(); |
ec604f5f JK |
59 | #if 0 |
60 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 61 | extern int fwrite(); |
ec604f5f | 62 | #endif |
2f192e9b SC |
63 | extern int sscanf(); |
64 | extern int stat(); | |
65 | extern int strtol(); | |
66 | extern int fileno(); | |
67 | extern char *strrchr(); | |
68 | extern char *ctime(); | |
69 | extern int _flsbuf(); | |
70 | extern int fclose(); | |
ec604f5f JK |
71 | #if 0 |
72 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 73 | extern int time(); |
ec604f5f | 74 | #endif |
3fd7451e | 75 | extern int utime(); |
2f192e9b SC |
76 | extern int vfprintf(); |
77 | extern long atol(); | |
78 | extern char *getenv(); | |
79 | extern int fputc(); | |
80 | extern int unlink(); | |
81 | ||
82 | ||
a5431adc | 83 | #include "fopen-same.h" |