diff options
author | Steve Chamberlain <steve@cygnus> | 1991-05-18 02:57:45 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-05-18 02:57:45 +0000 |
commit | 19b03b7aa4dd0eccffab131fd91495ef122fccc7 (patch) | |
tree | 0831b76b569fdb6121b914d3e941b5d15a3a4188 /bfd/hosts | |
parent | f827120d4545a08c8e8edb25d4ec5b50d694912b (diff) | |
download | gdb-19b03b7aa4dd0eccffab131fd91495ef122fccc7.zip gdb-19b03b7aa4dd0eccffab131fd91495ef122fccc7.tar.gz gdb-19b03b7aa4dd0eccffab131fd91495ef122fccc7.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'bfd/hosts')
-rw-r--r-- | bfd/hosts/sparc.h | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/bfd/hosts/sparc.h b/bfd/hosts/sparc.h index 376aad6..a4652a2 100644 --- a/bfd/hosts/sparc.h +++ b/bfd/hosts/sparc.h @@ -17,14 +17,14 @@ extern PROTO(int, close,(int)); extern PROTO(int, fcntl,(int des, int cmd)); extern PROTO(int, fprintf,(FILE *,char *,...)); extern PROTO(int, printf,(char *,...)); -extern PROTO(int, oqsort,(void *data,int els, int siz, int func())); +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(char *,memset,(char*, int, int)); +extern PROTO(PTR,memset,(PTR, int,unsigned int)); PROTO(PTR, memcpy,(PTR,CONST PTR,unsigned int)); extern char * strchr(); extern PROTO(void, perror,(char *)); @@ -38,9 +38,13 @@ extern int fwrite(); extern int sscanf(); extern int stat(); extern int strtol(); -void free(); -char *malloc(); -char *realloc(); +#ifndef DONTDECLARE_MALLOC +extern PROTO(PTR,malloc,(unsigned)); +extern PROTO(PTR ,realloc, (PTR, unsigned)); +#endif + +extern PROTO(int, free,(PTR)); + PROTO (void, perror, (char *s)); extern char *strrchr(); extern char *ctime(); @@ -63,6 +67,16 @@ 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; @@ -71,3 +85,26 @@ 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 |