* configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
[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 #include <stddef.h>
4 #include <ansidecl.h>
5 #include <fcntl.h>
6 #include <errno.h>
7 #include <stdio.h>
8 #include <sys/types.h>
9 #include <sys/stat.h>
10 #include <ctype.h>
11 #include <string.h>
12 #include <sys/file.h>
13 #include <alloca.h>
14 #ifndef O_ACCMODE
15 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
16 #endif
17 #define SEEK_SET 0
18 #define SEEK_CUR 1
19
20 /* Make the basic types 64-bit quantities on the host */
21 #define BFD_HOST_64_BIT long long
22
23 extern int abort PARAMS ((void));
24 extern int close PARAMS ((int));
25 extern int fcntl PARAMS ((int des, int cmd, int e));
26 extern int fprintf PARAMS ((FILE *,char *,...));
27 extern int printf PARAMS ((char *,...));
28 extern int qsort PARAMS ((void *data, int els, int siz, int func()));
29 extern void exit PARAMS ((int));
30 extern int fseek PARAMS ((FILE*, int, int));
31 extern int fclose PARAMS ((FILE*));
32 extern void bcopy PARAMS ((char*, char*, int));
33 extern int bcmp PARAMS ((char *, char *, int));
34 extern void bzero PARAMS ((char *, int));
35 extern PTR memset PARAMS ((PTR, int, unsigned int));
36 #ifndef DONTDECLARE_MALLOC
37 extern PTR malloc PARAMS ((unsigned));
38 extern PTR realloc PARAMS ((PTR, unsigned));
39 #endif
40
41 #ifndef __GNUC__
42 PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int));
43 #else
44 /* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */
45 #endif
46
47 extern int getuid PARAMS (());
48 extern int getgid PARAMS (());
49 extern char * strchr();
50 extern void perror PARAMS ((CONST char *));
51 extern char *getenv();
52 extern char *memchr();
53 extern char *strrchr();
54 extern int chmod();
55 extern int fread();
56 extern int fstat();
57 extern int fwrite();
58 extern int sscanf();
59 extern int stat();
60 extern int strtol();
61
62 extern int free PARAMS ((PTR));
63
64
65 extern char *strrchr();
66 extern char *ctime();
67 extern int _flsbuf();
68 extern int fclose();
69 extern int time();
70 extern int utimes();
71 extern int vfprintf();
72 extern long atol();
73 extern char *getenv();
74 extern int fputc();
75 extern int unlink();
76
77
78 #ifdef __GNUC__
79 typedef unsigned long long uint64e_type;
80
81 #else
82 typedef struct {
83 unsigned long low, high;
84 } uint64e_type;
85
86 #endif
87
88 #ifdef __GNUC__
89 typedef unsigned long long uint64_type;
90 typedef long long int64_type;
91 #else
92 typedef struct {
93 unsigned long low, high;
94 } uint64_type;
95
96 typedef struct {
97 unsigned long low, high;
98 } int64_type;
99
100 #endif
101
102 #define BYTES_IN_PRINTF_INT 4
103 #ifndef __GNUC__
104 #define uint64_typeLOW(x) (unsigned long)(((x).low))
105 #define uint64_typeHIGH(x) (unsigned long)(((x).high))
106 #else
107 #define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff))
108 #define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff)
109 #endif
110
111 #include "fopen-same.h"
This page took 0.0644 seconds and 4 git commands to generate.