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