Commit | Line | Data |
---|---|---|
f751f474 | 1 | #include <ansidecl.h> |
2f192e9b SC |
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 | ||
3fd7451e ILT |
14 | #define USE_UTIME |
15 | ||
2f192e9b | 16 | #ifndef DONTDECLARE_MALLOC |
302c8ab1 | 17 | extern PTR EXFUN(malloc,(unsigned)); |
56a56f4c | 18 | extern PTR EXFUN(realloc, (PTR, unsigned)); |
2f192e9b | 19 | #endif |
302c8ab1 SC |
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)); | |
536c2ad4 | 24 | extern int EXFUN(strtol,(char *, char **, int)); |
302c8ab1 | 25 | extern void EXFUN(bzero,(char *, int)); |
2f192e9b | 26 | #define NO_STDARG 1 |
302c8ab1 SC |
27 | extern int EXFUN(abort,(void)); |
28 | extern int EXFUN(close,(int)); | |
ec604f5f JK |
29 | #if 0 |
30 | /* Conflicts with system headers on SVR4. */ | |
302c8ab1 | 31 | extern int EXFUN(fcntl,(int des, int cmd, int e)); |
ec604f5f | 32 | #endif |
302c8ab1 | 33 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); |
ec604f5f JK |
34 | #if 0 |
35 | /* Conflicts with system headers on SVR4. */ | |
302c8ab1 | 36 | extern int EXFUN(fseek,(FILE*, int, int)); |
ec604f5f | 37 | #endif |
302c8ab1 SC |
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 )); | |
394d1b3f JK |
44 | #if 0 |
45 | /* Conflicts with system headers on SVR4. */ | |
56a56f4c SC |
46 | extern unsigned short EXFUN(getuid,(void)); |
47 | extern unsigned short EXFUN(getgid,(void)); | |
394d1b3f | 48 | #endif |
302c8ab1 | 49 | |
2f192e9b | 50 | extern char * strchr(); |
302c8ab1 | 51 | |
2f192e9b | 52 | extern char *getenv(); |
2f192e9b SC |
53 | extern char *strrchr(); |
54 | extern int chmod(); | |
ec604f5f JK |
55 | #if 0 |
56 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 57 | extern int fread(); |
ec604f5f | 58 | #endif |
2f192e9b | 59 | extern int fstat(); |
ec604f5f JK |
60 | #if 0 |
61 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 62 | extern int fwrite(); |
ec604f5f | 63 | #endif |
2f192e9b SC |
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(); | |
ec604f5f JK |
72 | #if 0 |
73 | /* Conflicts with system headers on SVR4. */ | |
2f192e9b | 74 | extern int time(); |
ec604f5f | 75 | #endif |
3fd7451e | 76 | extern int utime(); |
2f192e9b SC |
77 | extern int vfprintf(); |
78 | extern long atol(); | |
79 | extern char *getenv(); | |
80 | extern int fputc(); | |
81 | extern int unlink(); | |
82 | ||
83 | ||
a5431adc | 84 | #include "fopen-same.h" |