783eff9330d366848bbc8a78306175f65f05c6b9
[binutils-gdb.git] / bfd / hosts / std-host.h
1 #ifndef hosts_std_host_H
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
24 extern char *mktemp ();
25 extern PTR memset ();
26
27 #ifndef DONTDECLARE_MALLOC
28 extern PTR malloc ();
29 extern PTR realloc ();
30 #endif
31
32 #ifndef __GNUC__
33 extern PTR memcpy ();
34 #else
35 /* char * memcpy (); */
36 #endif
37
38 #ifdef __STDC__
39 extern void free ();
40 #else
41 extern int free();
42 #endif
43
44 extern char * strchr();
45 extern char *getenv();
46 extern PTR memchr();
47 extern char *strrchr();
48
49 extern char *strrchr();
50 extern char *ctime();
51 extern long atol();
52 extern char *getenv();
53 #endif /* STDC_HEADERS */
54
55 #ifndef BYTES_IN_PRINTF_INT
56 #define BYTES_IN_PRINTF_INT 4
57 #endif
58
59 #include "fopen-same.h"
60 #define hosts_std_host_H
61 #endif
62
63 #ifdef STDC_HEADERS
64 #include <stddef.h>
65 #endif /* STDC_HEADERS */