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