aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts/sparc-ll.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-11 10:45:56 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-11 10:45:56 +0000
commit2c3f93e56d9df879f5decff21182c7b53ce085e3 (patch)
tree71dd75e146b55f93738f1b85ca8f6ca3af47138f /bfd/hosts/sparc-ll.h
parent5b2765bf130e083b75c6e2e343ee99c40c93ca47 (diff)
downloadgdb-2c3f93e56d9df879f5decff21182c7b53ce085e3.zip
gdb-2c3f93e56d9df879f5decff21182c7b53ce085e3.tar.gz
gdb-2c3f93e56d9df879f5decff21182c7b53ce085e3.tar.bz2
Initial revision
Diffstat (limited to 'bfd/hosts/sparc-ll.h')
-rw-r--r--bfd/hosts/sparc-ll.h123
1 files changed, 123 insertions, 0 deletions
diff --git a/bfd/hosts/sparc-ll.h b/bfd/hosts/sparc-ll.h
new file mode 100644
index 0000000..50a2945
--- /dev/null
+++ b/bfd/hosts/sparc-ll.h
@@ -0,0 +1,123 @@
+/* Host definition file for Sun-4 running with gcc, using "long long"
+ for addresses, to handle 64-bit target systems. */
+
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <string.h>
+#include <sys/file.h>
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+/* Make the basic types 64-bit quantities on the host */
+#define HOST_64_BIT long long
+
+extern PROTO(int, abort,(void));
+extern PROTO(int, close,(int));
+extern PROTO(int, fcntl,(int des, int cmd, int e));
+extern PROTO(int, fprintf,(FILE *,char *,...));
+extern PROTO(int, printf,(char *,...));
+extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
+extern PROTO(void, exit,(int));
+extern PROTO(int, fseek,(FILE*, int, int));
+extern PROTO(int, fclose,(FILE*));
+extern PROTO(void, bcopy,(char*,char*,int));
+extern PROTO(int, bcmp,(char *, char *, int));
+extern PROTO(void, bzero,(char *, int));
+extern PROTO(PTR,memset,(PTR, int,unsigned int));
+#ifndef __GNUC__
+PROTO(PTR, memcpy,(PTR,CONST PTR,unsigned int));
+#else
+/* PROTO(char *, memcpy,(char *,CONST char *,unsigned int)); */
+#endif
+
+extern PROTO(int,getuid,());
+extern PROTO(int,getgid,());
+extern char * strchr();
+extern PROTO(void, perror,(CONST char *));
+extern char *getenv();
+extern char *memchr();
+extern char *strrchr();
+extern int chmod();
+extern int fread();
+extern int fstat();
+extern int fwrite();
+extern int sscanf();
+extern int stat();
+extern int strtol();
+#ifndef DONTDECLARE_MALLOC
+extern PROTO(PTR,malloc,(unsigned));
+extern PROTO(PTR ,realloc, (PTR, unsigned));
+#endif
+
+extern PROTO(int, free,(PTR));
+
+
+extern char *strrchr();
+extern char *ctime();
+extern int _flsbuf();
+extern int fclose();
+extern int time();
+extern int utimes();
+extern int vfprintf();
+extern long atol();
+extern char *getenv();
+extern int fputc();
+extern int unlink();
+
+
+/* EXACT TYPES */
+typedef char int8e_type;
+typedef unsigned char uint8e_type;
+typedef short int16e_type;
+typedef unsigned short uint16e_type;
+typedef int int32e_type;
+typedef unsigned int uint32e_type;
+
+
+#ifdef __GNUC__
+typedef unsigned long long uint64e_type;
+
+#else
+typedef struct {
+ uint32e_type low, high;
+} uint64e_type;
+
+#endif
+/* CORRECT SIZE OR GREATER */
+typedef char int8_type;
+typedef unsigned char uint8_type;
+typedef short int16_type;
+typedef unsigned short uint16_type;
+typedef int int32_type;
+typedef unsigned int uint32_type;
+
+#ifdef __GNUC__
+typedef unsigned long long uint64_type;
+typedef long long int64_type;
+#else
+typedef struct {
+ uint32e_type low, high;
+} uint64_type;
+
+typedef struct {
+ uint32e_type low, high;
+} int64_type;
+
+#endif
+
+
+#define BYTES_IN_PRINTF_INT 4
+#ifndef __GNUC__
+#define uint64_typeLOW(x) (uint32_type)(((x).low))
+#define uint64_typeHIGH(x) (uint32_type)(((x).high))
+#else
+#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
+#define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
+#endif