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