11 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
21 /*#include <string.h>*/
23 extern char *EXFUN(mktemp,(CONST char*));
24 extern int EXFUN(fflush,(FILE *));
25 extern int EXFUN(write,(int, CONST char *, int));
26 extern void EXFUN(abort,(void));
27 extern int EXFUN(close,(int));
28 extern int EXFUN(fcntl,(int des, int cmd, int e));
29 extern int EXFUN(fprintf,(FILE *,char *,...));
30 extern int EXFUN(printf,(char *,...));
31 extern int EXFUN(qsort,(void *data,int els, int siz, int func()));
32 extern void EXFUN(exit,(int));
33 extern int EXFUN(fseek,(FILE*, int, int));
34 extern int EXFUN(fclose,(FILE*));
35 extern void EXFUN(bcopy,(char*,char*,int));
36 extern int EXFUN(bcmp,(char *, char *, int));
37 extern void EXFUN(bzero,(char *, int));
38 extern PTR EXFUN(memset,(PTR, int, int));
39 extern void EXFUN(puts,(CONST char*));
40 extern void EXFUN(fputs,(CONST char*,FILE*));
41 extern int EXFUN(rmdir,(CONST char *));
42 extern int EXFUN(getuid,(void));
43 extern int EXFUN(getgid,(void));
44 extern int EXFUN(rename,(CONST char *, CONST char*));
45 extern int EXFUN(getuid,());
46 extern int EXFUN(getgid,());
47 extern void EXFUN(perror,(CONST char *));
48 #ifndef DONTDECLARE_MALLOC
49 extern PTR EXFUN(malloc,(unsigned));
50 extern PTR EXFUN(realloc, (PTR, unsigned));
53 #include <machine/param.h>
56 extern PTR EXFUN(memcpy,(PTR,CONST PTR,unsigned int));
58 /* char * EXFUN( memcpy,(char *,CONST char *,unsigned int)); */
62 extern void EXFUN(free,(PTR));
67 extern char * strchr();
68 extern char *getenv();
69 extern char *memchr();
70 extern char *strrchr();
79 extern char *strrchr();
85 extern int vfprintf();
87 extern char *getenv();
94 #define int8e_type char
97 #define uint8e_type unsigned char
100 #define int16e_type short
103 #define uint16e_type unsigned short
106 #define int32e_type int
109 #define uint32e_type unsigned int
113 #define uint64e_type unsigned long long
114 #define int64e_type struct long long
115 #define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
116 #define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
118 typedef struct uint64e_struct {
119 uint32e_type low, high;
121 #define uint64e_type struct uint64e_struct
122 #define int64e_type struct uint64e_struct
123 #define uint64_typeLOW(x) (uint32_type)(((x).low))
124 #define uint64_typeHIGH(x) (uint32_type)(((x).high))
128 /* CORRECT SIZE OR GREATER */
130 #define int8_type int8e_type
133 #define uint8_type uint8e_type
136 #define int16_type int16e_type
139 #define uint16_type uint16e_type
142 #define int32_type int32e_type
145 #define uint32_type uint32e_type
148 #define int64_type int64e_type
151 #define uint64_type uint64e_type
154 #ifndef BYTES_IN_PRINTF_INT
155 #define BYTES_IN_PRINTF_INT 4
158 #define HOST_PAGE_SIZE NBPG
159 #define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */
160 #define HOST_MACHINE_ARCH bfd_arch_m68k
161 /* #define HOST_MACHINE_MACHINE */
163 #define HOST_TEXT_START_ADDR 0
164 #define HOST_STACK_END_ADDR (KERNBASE - (UPAGES * NBPG))
165 #define HOST_BIG_ENDIAN_P
166 #include "fopen-same.h"