Commit | Line | Data |
---|---|---|
8bd4e54b | 1 | #ifndef hosts_std_host_H |
cc9a3bd6 PB |
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 | ||
11 | #ifndef O_ACCMODE | |
12 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
13 | #endif | |
14 | #ifndef SEEK_SET | |
15 | #define SEEK_SET 0 | |
16 | #endif | |
17 | #ifndef SEEK_CUR | |
18 | #define SEEK_CUR 1 | |
19 | #endif | |
20 | #ifdef STDC_HEADERS | |
21 | #include <stdlib.h> | |
22 | /*#include <string.h>*/ | |
23 | #else | |
8f460881 KR |
24 | extern int fprintf PARAMS ((FILE *,char *,...)); |
25 | extern int printf PARAMS((char *,...)); | |
26 | extern char *mktemp (); | |
27 | extern int fflush (); | |
28 | extern int write (); | |
29 | extern void abort (); | |
30 | extern int close (); | |
31 | extern int fcntl (); | |
32 | extern int qsort (); | |
33 | extern void exit (); | |
34 | extern int fseek (); | |
35 | extern int fclose (); | |
36 | extern void bcopy (); | |
37 | extern int bcmp (); | |
38 | extern void bzero (); | |
39 | extern PTR memset (); | |
fdebd629 JK |
40 | |
41 | /* These used to be declared to return void. As far as I know that is just | |
42 | wrong; are there any systems for which they actually don't return a | |
43 | value (EOF for error, something else for success). */ | |
44 | extern int puts (); | |
45 | extern int fputs (); | |
46 | ||
8f460881 KR |
47 | extern int rmdir (); |
48 | extern int getuid (); | |
49 | extern int getgid (); | |
50 | extern int rename (); | |
51 | extern void perror (); | |
cc9a3bd6 | 52 | #ifndef DONTDECLARE_MALLOC |
8f460881 KR |
53 | extern PTR malloc (); |
54 | extern PTR realloc (); | |
cc9a3bd6 PB |
55 | #endif |
56 | ||
57 | #ifndef __GNUC__ | |
8f460881 | 58 | extern PTR memcpy (); |
cc9a3bd6 | 59 | #else |
8f460881 | 60 | /* char * memcpy (); */ |
cc9a3bd6 PB |
61 | #endif |
62 | ||
63 | #ifdef __STDC__ | |
8f460881 | 64 | extern void free (); |
cc9a3bd6 PB |
65 | #else |
66 | extern int free(); | |
67 | #endif | |
68 | ||
69 | extern char * strchr(); | |
70 | extern char *getenv(); | |
71 | extern char *memchr(); | |
72 | extern char *strrchr(); | |
73 | extern int chmod(); | |
74 | extern int fread(); | |
75 | extern int fstat(); | |
76 | extern int fwrite(); | |
cc9a3bd6 PB |
77 | extern int stat(); |
78 | extern int strtol(); | |
79 | ||
80 | extern char *strrchr(); | |
81 | extern char *ctime(); | |
82 | extern int _flsbuf(); | |
83 | extern int fclose(); | |
84 | extern int time(); | |
85 | extern int utimes(); | |
86 | extern int vfprintf(); | |
87 | extern long atol(); | |
88 | extern char *getenv(); | |
89 | extern int fputc(); | |
90 | extern int unlink(); | |
8f460881 | 91 | #endif /* STDC_HEADERS */ |
cc9a3bd6 | 92 | |
cc9a3bd6 PB |
93 | #ifndef BYTES_IN_PRINTF_INT |
94 | #define BYTES_IN_PRINTF_INT 4 | |
95 | #endif | |
96 | ||
97 | #include "fopen-same.h" | |
8bd4e54b KR |
98 | #define hosts_std_host_H |
99 | #endif |