* hosts/h-*.h: Configure fopen using ../include/fopen-*.h
[deliverable/binutils-gdb.git] / bfd / hosts / sparc.h
1 #include <fcntl.h>
2 #include <errno.h>
3 #include <stdio.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <ctype.h>
7 #include <string.h>
8 #include <sys/file.h>
9 #ifndef O_ACCMODE
10 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
11 #endif
12 #define SEEK_SET 0
13 #define SEEK_CUR 1
14
15 char *EXFUN(mktemp,(CONST char*));
16 extern int EXFUN(fflush,(FILE *));
17 extern int EXFUN(write,(int, CONST char *, int));
18 extern int EXFUN(index,(CONST char *, char c));
19 extern int EXFUN(abort,(void));
20 extern int EXFUN(close,(int));
21 extern int EXFUN(fcntl,(int des, int cmd, int e));
22 extern int EXFUN(fprintf,(FILE *,char *,...));
23 extern int EXFUN(printf,(char *,...));
24 extern int EXFUN(qsort,(void *data,int els, int siz, int func()));
25 extern void EXFUN(exit,(int));
26 extern int EXFUN(fseek,(FILE*, int, int));
27 extern int EXFUN(fclose,(FILE*));
28 extern void EXFUN(bcopy,(char*,char*,int));
29 extern int EXFUN(bcmp,(char *, char *, int));
30 extern void EXFUN(bzero,(char *, int));
31 extern PTR EXFUN(emset,(PTR, int,unsigned int));
32 #ifndef __GNUC__
33 PTR EXFUN(memcpy,(PTR,CONST PTR,unsigned int));
34 #else
35 /* PROTO(char *, memcpy,(char *,CONST char *,unsigned int)); */
36 #endif
37
38 PTR EXFUN(memset,(PTR, int, int));
39 void EXFUN( puts,(CONST char*));
40 void EXFUN(fputs,(CONST char*,FILE*));
41
42 int EXFUN(rmdir,(CONST char *));
43
44 int EXFUN(getuid,(void));
45 int EXFUN(getgid,(void));
46 int EXFUN(rename,(CONST char *, CONST char*));
47
48 extern int EXFUN(etuid,());
49 extern int EXFUN(etgid,());
50 extern char * strchr();
51 extern void EXFUN(perror,(CONST char *));
52 extern char *getenv();
53 extern char *memchr();
54 extern char *strrchr();
55 extern int chmod();
56 extern int fread();
57 extern int fstat();
58 extern int fwrite();
59 extern int sscanf();
60 extern int stat();
61 extern int strtol();
62 #ifndef DONTDECLARE_MALLOC
63 extern PTR EXFUN(malloc,(unsigned));
64 extern PTR EXFUN(realloc, (PTR, unsigned));
65 #endif
66
67 extern int EXFUN(free,(PTR));
68
69
70 extern char *strrchr();
71 extern char *ctime();
72 extern int _flsbuf();
73 extern int fclose();
74 extern int time();
75 extern int utimes();
76 extern int vfprintf();
77 extern long atol();
78 extern char *getenv();
79 extern int fputc();
80 extern int unlink();
81
82
83 /* EXACT TYPES */
84 typedef char int8e_type;
85 typedef unsigned char uint8e_type;
86 typedef short int16e_type;
87 typedef unsigned short uint16e_type;
88 typedef int int32e_type;
89 typedef unsigned int uint32e_type;
90
91
92 #ifdef __GNUC__
93 typedef unsigned long long uint64e_type;
94
95 #else
96 typedef struct {
97 uint32e_type low, high;
98 } uint64e_type;
99
100 #endif
101 /* CORRECT SIZE OR GREATER */
102 typedef char int8_type;
103 typedef unsigned char uint8_type;
104 typedef short int16_type;
105 typedef unsigned short uint16_type;
106 typedef int int32_type;
107 typedef unsigned int uint32_type;
108
109 #ifdef __GNUC__
110 typedef unsigned long long uint64_type;
111 typedef long long int64_type;
112 #else
113 typedef struct {
114 uint32e_type low, high;
115 } uint64_type;
116
117 typedef struct {
118 uint32e_type low, high;
119 } int64_type;
120
121 #endif
122
123
124 #define BYTES_IN_PRINTF_INT 4
125 #ifndef __GNUC__
126 #define uint64_typeLOW(x) (uint32_type)(((x).low))
127 #define uint64_typeHIGH(x) (uint32_type)(((x).high))
128 #else
129 #define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
130 #define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
131 #endif
132
133
134 #include "fopen-same.h"
This page took 0.03296 seconds and 5 git commands to generate.