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 | ||
c5652bff | 16 | #ifndef DONTDECLARE_MALLOC |
e49d5379 JG |
17 | extern PTR malloc PARAMS ((unsigned)); |
18 | extern PTR realloc PARAMS ((PTR, unsigned)); | |
2f192e9b | 19 | #endif |
e49d5379 JG |
20 | extern int abort PARAMS ((void)); |
21 | extern int free PARAMS ((PTR)); | |
22 | extern void bcopy PARAMS ((char*,char*,int)); | |
23 | extern void exit PARAMS ((int)); | |
24 | extern int strtol PARAMS ((char *, char **, int)); | |
25 | extern void bzero PARAMS ((char *, int)); | |
2f192e9b | 26 | #define NO_STDARG 1 |
e49d5379 JG |
27 | extern int abort PARAMS ((void)); |
28 | extern int close PARAMS ((int)); | |
ec604f5f JK |
29 | #if 0 |
30 | /* Conflicts with system headers on SVR4. */ | |
e49d5379 | 31 | extern int fcntl PARAMS ((int des, int cmd, int e)); |
ec604f5f | 32 | #endif |
e49d5379 | 33 | extern int qsort PARAMS ((void *data,int els, int siz, int func())); |
ec604f5f JK |
34 | #if 0 |
35 | /* Conflicts with system headers on SVR4. */ | |
e49d5379 | 36 | extern int fseek PARAMS ((FILE*, int, int)); |
ec604f5f | 37 | #endif |
e49d5379 JG |
38 | extern int fclose PARAMS ((FILE*)); |
39 | extern void bcopy PARAMS ((char*,char*,int)); | |
40 | extern int bcmp PARAMS ((char *, char *, int)); | |
41 | extern void bzero PARAMS ((char *, int)); | |
42 | extern void perror PARAMS ((CONST char *)); | |
43 | extern PTR memchr PARAMS ((const void *, int, unsigned )); | |
394d1b3f JK |
44 | #if 0 |
45 | /* Conflicts with system headers on SVR4. */ | |
e49d5379 JG |
46 | extern unsigned short getuid PARAMS ((void)); |
47 | extern unsigned short getgid PARAMS ((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" |