Provide escape hatch for HAVE_PROCFS being defined.
[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. */
c5652bff 3#include <stddef.h>
f751f474 4#include <ansidecl.h>
2c3f93e5
JG
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>
dd6cc3c9 13#include <alloca.h>
c5652bff 14#ifndef O_ACCMODE
2c3f93e5
JG
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 */
96ad107b 21#define BFD_HOST_64_BIT long long
2c3f93e5 22
e49d5379
JG
23extern int abort PARAMS ((void));
24extern int close PARAMS ((int));
25extern int fcntl PARAMS ((int des, int cmd, int e));
26extern int fprintf PARAMS ((FILE *,char *,...));
27extern int printf PARAMS ((char *,...));
28extern int qsort PARAMS ((void *data, int els, int siz, int func()));
29extern void exit PARAMS ((int));
30extern int fseek PARAMS ((FILE*, int, int));
31extern int fclose PARAMS ((FILE*));
32extern void bcopy PARAMS ((char*, char*, int));
33extern int bcmp PARAMS ((char *, char *, int));
34extern void bzero PARAMS ((char *, int));
35extern PTR memset PARAMS ((PTR, int, unsigned int));
c5652bff 36#ifndef DONTDECLARE_MALLOC
e49d5379
JG
37extern PTR malloc PARAMS ((unsigned));
38extern PTR realloc PARAMS ((PTR, unsigned));
302c8ab1
SC
39#endif
40
c5652bff 41#ifndef __GNUC__
e49d5379 42 PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int));
2c3f93e5 43#else
e49d5379 44/* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */
2c3f93e5
JG
45#endif
46
e49d5379
JG
47extern int getuid PARAMS (());
48extern int getgid PARAMS (());
2c3f93e5 49extern char * strchr();
e49d5379 50extern void perror PARAMS ((CONST char *));
2c3f93e5
JG
51extern char *getenv();
52extern char *memchr();
53extern char *strrchr();
54extern int chmod();
55extern int fread();
56extern int fstat();
57extern int fwrite();
58extern int sscanf();
59extern int stat();
60extern int strtol();
2c3f93e5 61
e49d5379 62extern int free PARAMS ((PTR));
2c3f93e5
JG
63
64
65extern char *strrchr();
66extern char *ctime();
67extern int _flsbuf();
68extern int fclose();
69extern int time();
70extern int utimes();
71extern int vfprintf();
72extern long atol();
73extern char *getenv();
74extern int fputc();
75extern int unlink();
76
77
2c3f93e5
JG
78#ifdef __GNUC__
79typedef unsigned long long uint64e_type;
80
81#else
82typedef struct {
933ae8d4 83 unsigned long low, high;
2c3f93e5
JG
84} uint64e_type;
85
86#endif
2c3f93e5
JG
87
88#ifdef __GNUC__
89typedef unsigned long long uint64_type;
90typedef long long int64_type;
91#else
92typedef struct {
933ae8d4 93 unsigned long low, high;
2c3f93e5
JG
94} uint64_type;
95
96typedef struct {
933ae8d4 97 unsigned long low, high;
2c3f93e5
JG
98} int64_type;
99
100#endif
101
2c3f93e5 102#define BYTES_IN_PRINTF_INT 4
c5652bff 103#ifndef __GNUC__
933ae8d4
JG
104#define uint64_typeLOW(x) (unsigned long)(((x).low))
105#define uint64_typeHIGH(x) (unsigned long)(((x).high))
2c3f93e5 106#else
933ae8d4
JG
107#define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff))
108#define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff)
2c3f93e5 109#endif
933ae8d4 110
a5431adc 111#include "fopen-same.h"
This page took 0.138253 seconds and 4 git commands to generate.