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