Routines for currently-unsupported architectures. findcall() just returns
[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>
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
21extern PROTO(int, abort,(void));
22extern PROTO(int, close,(int));
23extern PROTO(int, fcntl,(int des, int cmd, int e));
24extern PROTO(int, fprintf,(FILE *,char *,...));
25extern PROTO(int, printf,(char *,...));
26extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
27extern PROTO(void, exit,(int));
28extern PROTO(int, fseek,(FILE*, int, int));
29extern PROTO(int, fclose,(FILE*));
30extern PROTO(void, bcopy,(char*,char*,int));
31extern PROTO(int, bcmp,(char *, char *, int));
32extern PROTO(void, bzero,(char *, int));
33extern PROTO(PTR,memset,(PTR, int,unsigned int));
34#ifndef __GNUC__
35PROTO(PTR, memcpy,(PTR,CONST PTR,unsigned int));
36#else
37/* PROTO(char *, memcpy,(char *,CONST char *,unsigned int)); */
38#endif
39
40extern PROTO(int,getuid,());
41extern PROTO(int,getgid,());
42extern char * strchr();
43extern PROTO(void, perror,(CONST char *));
44extern char *getenv();
45extern char *memchr();
46extern char *strrchr();
47extern int chmod();
48extern int fread();
49extern int fstat();
50extern int fwrite();
51extern int sscanf();
52extern int stat();
53extern int strtol();
54#ifndef DONTDECLARE_MALLOC
55extern PROTO(PTR,malloc,(unsigned));
56extern PROTO(PTR ,realloc, (PTR, unsigned));
57#endif
58
59extern PROTO(int, free,(PTR));
60
61
62extern char *strrchr();
63extern char *ctime();
64extern int _flsbuf();
65extern int fclose();
66extern int time();
67extern int utimes();
68extern int vfprintf();
69extern long atol();
70extern char *getenv();
71extern int fputc();
72extern int unlink();
73
74
75/* EXACT TYPES */
76typedef char int8e_type;
77typedef unsigned char uint8e_type;
78typedef short int16e_type;
79typedef unsigned short uint16e_type;
80typedef int int32e_type;
81typedef unsigned int uint32e_type;
82
83
84#ifdef __GNUC__
85typedef unsigned long long uint64e_type;
86
87#else
88typedef struct {
89 uint32e_type low, high;
90} uint64e_type;
91
92#endif
93/* CORRECT SIZE OR GREATER */
94typedef char int8_type;
95typedef unsigned char uint8_type;
96typedef short int16_type;
97typedef unsigned short uint16_type;
98typedef int int32_type;
99typedef unsigned int uint32_type;
100
101#ifdef __GNUC__
102typedef unsigned long long uint64_type;
103typedef long long int64_type;
104#else
105typedef struct {
106 uint32e_type low, high;
107} uint64_type;
108
109typedef struct {
110 uint32e_type low, high;
111} int64_type;
112
113#endif
114
115
116#define BYTES_IN_PRINTF_INT 4
117#ifndef __GNUC__
118#define uint64_typeLOW(x) (uint32_type)(((x).low))
119#define uint64_typeHIGH(x) (uint32_type)(((x).high))
120#else
121#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
122#define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
123#endif
a5431adc 124#include "fopen-same.h"
This page took 0.036246 seconds and 4 git commands to generate.