* Base use of sco-core on host, not target.
[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. */
f751f474 3#include <ansidecl.h>
2c3f93e5
JG
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
e49d5379
JG
22extern int abort PARAMS ((void));
23extern int close PARAMS ((int));
24extern int fcntl PARAMS ((int des, int cmd, int e));
25extern int fprintf PARAMS ((FILE *,char *,...));
26extern int printf PARAMS ((char *,...));
27extern int qsort PARAMS ((void *data, int els, int siz, int func()));
28extern void exit PARAMS ((int));
29extern int fseek PARAMS ((FILE*, int, int));
30extern int fclose PARAMS ((FILE*));
31extern void bcopy PARAMS ((char*, char*, int));
32extern int bcmp PARAMS ((char *, char *, int));
33extern void bzero PARAMS ((char *, int));
34extern PTR memset PARAMS ((PTR, int, unsigned int));
302c8ab1 35#ifndef DONTDECLARE_MALLOC
e49d5379
JG
36extern PTR malloc PARAMS ((unsigned));
37extern PTR realloc PARAMS ((PTR, unsigned));
302c8ab1
SC
38#endif
39
2c3f93e5 40#ifndef __GNUC__
e49d5379 41 PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int));
2c3f93e5 42#else
e49d5379 43/* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */
2c3f93e5
JG
44#endif
45
e49d5379
JG
46extern int getuid PARAMS (());
47extern int getgid PARAMS (());
2c3f93e5 48extern char * strchr();
e49d5379 49extern void perror PARAMS ((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
e49d5379 61extern int free PARAMS ((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
2c3f93e5
JG
77#ifdef __GNUC__
78typedef unsigned long long uint64e_type;
79
80#else
81typedef struct {
933ae8d4 82 unsigned long low, high;
2c3f93e5
JG
83} uint64e_type;
84
85#endif
2c3f93e5
JG
86
87#ifdef __GNUC__
88typedef unsigned long long uint64_type;
89typedef long long int64_type;
90#else
91typedef struct {
933ae8d4 92 unsigned long low, high;
2c3f93e5
JG
93} uint64_type;
94
95typedef struct {
933ae8d4 96 unsigned long low, high;
2c3f93e5
JG
97} int64_type;
98
99#endif
100
2c3f93e5
JG
101#define BYTES_IN_PRINTF_INT 4
102#ifndef __GNUC__
933ae8d4
JG
103#define uint64_typeLOW(x) (unsigned long)(((x).low))
104#define uint64_typeHIGH(x) (unsigned long)(((x).high))
2c3f93e5 105#else
933ae8d4
JG
106#define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff))
107#define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff)
2c3f93e5 108#endif
933ae8d4 109
a5431adc 110#include "fopen-same.h"
This page took 0.07292 seconds and 4 git commands to generate.