diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-06 22:53:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-06 22:53:43 +0000 |
commit | b7577823b60110d3b33ac7753e68a0291f0b132a (patch) | |
tree | 2889e39d803567e04add5e03ef7fcf6302651c52 /bfd/hosts | |
parent | dd6ed5ab2ddcf5b307b5b847ff336ff51e9d3974 (diff) | |
download | gdb-b7577823b60110d3b33ac7753e68a0291f0b132a.zip gdb-b7577823b60110d3b33ac7753e68a0291f0b132a.tar.gz gdb-b7577823b60110d3b33ac7753e68a0291f0b132a.tar.bz2 |
* configure.in: Call AC_CONFIG_HEADER. Substitute
HOST_64BIT_LONG. Check that various header files exist. Check
that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
and/or free need to be declared. Don't make a link to sysdep.h.
Define TRAD_HEADER for various hosts.
* configure: Rebuild.
* configure.host: Don't set my_host. Add definitions taken from
host header files for various entries. Remove entries which now
do nothing.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* sysdep.h: New file.
* Makefile.in (do_distclean): Don't remove sysdep.h.
(RECONFIG): Remove.
(LOCAL_H_DEPS): New variable.
($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
$(RECONFIG).
($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
($(OPTIONAL_BACKENDS)): Likewise.
(stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
looking through sysdep.h.
* bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
(BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
(fprintf_vma, sprintf_vma): Likewise.
(int64_type, uint64_type): Don't define.
* bfd-in2.h: Rebuild.
* archures.c, bfd.c, srec.c: Include <ctype.h>.
* elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
* lynx-core.c: Include stuff from old hosts/lynx.h.
* opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
rather than NO_FCNTL.
* targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
rather than NATIVE_HPPAHPUX_COMPILER.
* trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
is defined.
* hosts/*.h: Remove all header files which merely include,
declare, and define things. Leave header files which define
information needed by trad-core.c.
Diffstat (limited to 'bfd/hosts')
45 files changed, 0 insertions, 1398 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index 0932b43..f68d72b 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -24,78 +24,33 @@ Do-first: Things-to-keep: -aix4.h -alphaosf.h -apollo68.h -apollov68.h decstation.h -delta68.h -delta88.h -delta88v4.h -dgux.h -dose.h dpx2.h -go32.h -harris.h -hp300.h hp300bsd.h -hppabsd.h -hppahpux.h -hppaosf.h -i386aix.h -i386bsd.h i386linux.h -i386lynx.h i386mach3.h i386nbsd.h -i386osf1mk.h i386sco.h -i386v.h -i386v4.h -i386win32.h -irix3.h -irix4.h -lynx.h -m68klynx.h m68knbsd.h -m68kv4.h m88kmach3.h -miniframe.h mipsbsd.h mipsmach3.h mpw.h nbsd.h -ncr3000.h news-mips.h news.h ns32knbsd.h pc532mach.h riscos.h -rs6000.h -rs6000lynx.h -rtbsd.h -solaris2.h -sparc-ll.h -sparc.h -sparclynx.h sparcnbsd.h -std-host.h -stratus.h -sun3.h symmetry.h -sysv4.h tahoe.h -ultra3.h vaxbsd.h vaxult.h vaxult2.h -we32k.h Things-to-lose: - -esix.h - Do-last: # End of file. diff --git a/bfd/hosts/aix4.h b/bfd/hosts/aix4.h deleted file mode 100644 index 07bff7d..0000000 --- a/bfd/hosts/aix4.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This file is *really* for an Power, PowerPC running AIX 4... */ - -#include <stddef.h> -#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> -#include <stdlib.h> /* for malloc() */ - -/* Defining this variable turns on AIX core file and archive support. */ -#define HOST_AIX - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#include "fopen-same.h" diff --git a/bfd/hosts/alphaosf.h b/bfd/hosts/alphaosf.h deleted file mode 100644 index 670c2fc..0000000 --- a/bfd/hosts/alphaosf.h +++ /dev/null @@ -1,26 +0,0 @@ -#include <stddef.h> -#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> -#include <alloca.h> -#include <stdlib.h> - -/* Make the basic types 64-bit quantities on the host. - Also provide the support macros BFD needs. */ -#define BFD_HOST_64_BIT long -#define sprintf_vma(s,x) sprintf (s, "%016lx", x) /* BFD_HOST_64_BIT */ -#define fprintf_vma(f,x) fprintf (f, "%016lx", x) /* BFD_HOST_64_BIT */ - -#define BYTES_IN_PRINTF_INT 4 - -/* These must have type unsigned long because they are used as - arguments in printf functions. */ -#define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff))) /* BFD_HOST_64_BIT */ -#define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) /* BFD_HOST_64_BIT */ - -#include "fopen-same.h" diff --git a/bfd/hosts/apollo68.h b/bfd/hosts/apollo68.h deleted file mode 100644 index 734f62a..0000000 --- a/bfd/hosts/apollo68.h +++ /dev/null @@ -1,26 +0,0 @@ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <ctype.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#ifndef SEEK_SET -#define SEEK_SET 0 -#define SEEK_CUR 1 -#endif - -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif /* MAXPATHLEN */ - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -extern void free PARAMS ((PTR)); -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/apollov68.h b/bfd/hosts/apollov68.h deleted file mode 100644 index bf82c18..0000000 --- a/bfd/hosts/apollov68.h +++ /dev/null @@ -1,38 +0,0 @@ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.h> -#include <ctype.h> -#include <string.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif /* MAXPATHLEN */ - -#define POSIX_UTIME - -/* Some things that need to be defined in order to make code written for - BSD Unix compile under System V Unix. */ - -#include <memory.h> -#define bcmp(b1,b2,len) memcmp(b1,b2,len) -#define bcopy(src,dst,len) memcpy(dst,src,len) -#define bzero(s,n) memset(s,0,n) - -#include <string.h> - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -extern void free PARAMS ((PTR)); -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/delta68.h b/bfd/hosts/delta68.h deleted file mode 100644 index e69de29..0000000 --- a/bfd/hosts/delta68.h +++ /dev/null diff --git a/bfd/hosts/delta88.h b/bfd/hosts/delta88.h deleted file mode 100644 index c8e7bbd..0000000 --- a/bfd/hosts/delta88.h +++ /dev/null @@ -1,84 +0,0 @@ -#include <ansidecl.h> -#include <errno.h> -#include <sys/types.h> -#include <unistd.h> - -#include <string.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <time.h> -#include <ctype.h> - -#include <stdio.h> - -#define USE_UTIME - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -#endif -extern int abort PARAMS ((void)); -extern int free PARAMS ((PTR)); -extern void bcopy PARAMS ((char*,char*,int)); -extern void exit PARAMS ((int)); -extern int strtol PARAMS ((char *, char **, int)); -extern void bzero PARAMS ((char *, int)); -#define NO_STDARG 1 -extern int abort PARAMS ((void)); -extern int close PARAMS ((int)); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern int fcntl PARAMS ((int des, int cmd, int e)); -#endif -extern int qsort PARAMS ((void *data,int els, int siz, int func())); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern int fseek PARAMS ((FILE*, int, int)); -#endif -extern int fclose PARAMS ((FILE*)); -extern void bcopy PARAMS ((char*,char*,int)); -extern int bcmp PARAMS ((char *, char *, int)); -extern void bzero PARAMS ((char *, int)); -extern void perror PARAMS ((CONST char *)); -extern PTR memchr PARAMS ((const void *, int, unsigned )); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern unsigned short getuid PARAMS ((void)); -extern unsigned short getgid PARAMS ((void)); -#endif - -extern char * strchr(); - -extern char *getenv(); -extern char *strrchr(); -extern int chmod(); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern int fread(); -#endif -extern int fstat(); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern int fwrite(); -#endif -extern int sscanf(); -extern int stat(); -extern int strtol(); -extern int fileno(); -extern char *strrchr(); -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -#if 0 -/* Conflicts with system headers on SVR4. */ -extern int time(); -#endif -extern int utime(); -extern int vfprintf(); -extern long atol(); -extern char *getenv(); -extern int fputc(); -extern int unlink(); - - -#include "fopen-same.h" diff --git a/bfd/hosts/delta88v4.h b/bfd/hosts/delta88v4.h deleted file mode 100644 index 3662ab2..0000000 --- a/bfd/hosts/delta88v4.h +++ /dev/null @@ -1,8 +0,0 @@ -/* Delta88 running SVR4. */ - -#include <unistd.h> - -#define STDC_HEADERS -#include "hosts/std-host.h" - -#define HAVE_PROCFS /* This host has /proc support */ diff --git a/bfd/hosts/dgux.h b/bfd/hosts/dgux.h deleted file mode 100644 index 0760462..0000000 --- a/bfd/hosts/dgux.h +++ /dev/null @@ -1,29 +0,0 @@ -#include <ansidecl.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/dg_c_generics.h> -#include <unistd.h> - -#include <string.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <time.h> -#include <ctype.h> - -#include <stdio.h> - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -#endif -extern int abort PARAMS ((void)); -extern void free PARAMS ((PTR)); -extern void bcopy PARAMS ((char*,char*,int)); -extern void exit PARAMS ((int)); -extern void bzero PARAMS ((char *, int)); -extern int strtol(); -#define NO_STDARG 1 - - - -#include "fopen-same.h" diff --git a/bfd/hosts/dose.h b/bfd/hosts/dose.h deleted file mode 100644 index b01cc88..0000000 --- a/bfd/hosts/dose.h +++ /dev/null @@ -1,16 +0,0 @@ -#include <stddef.h> -#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 - -#include "fopen-bin.h" diff --git a/bfd/hosts/esix.h b/bfd/hosts/esix.h deleted file mode 100644 index 731791d..0000000 --- a/bfd/hosts/esix.h +++ /dev/null @@ -1,6 +0,0 @@ -#include "hosts/std-host.h" - -#define NBPG NBPC -#define UPAGES USIZE -#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg -#define HOST_STACK_END_ADDR 0x80000000 diff --git a/bfd/hosts/go32.h b/bfd/hosts/go32.h deleted file mode 100644 index 7e1af18..0000000 --- a/bfd/hosts/go32.h +++ /dev/null @@ -1,19 +0,0 @@ -#include <stddef.h> -#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> -#include <stdlib.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define NO_FCNTL - -#include "fopen-bin.h" diff --git a/bfd/hosts/harris.h b/bfd/hosts/harris.h deleted file mode 100644 index 5ad4777..0000000 --- a/bfd/hosts/harris.h +++ /dev/null @@ -1,31 +0,0 @@ -#include <ansidecl.h> -#include <errno.h> -#include <sys/types.h> -#include <unistd.h> - -#include <string.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <time.h> -#include <ctype.h> - -#include <stdio.h> - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -#endif -extern int abort PARAMS ((void)); -extern int free PARAMS ((PTR)); -extern void bcopy PARAMS ((char*,char*,int)); -extern void exit PARAMS ((int)); -extern void bzero PARAMS ((char *, int)); - -extern int strtol(); - -#include "fopen-same.h" - -#define POSIX_UTIME -#ifndef _ES_MP -#define HAVE_PROCFS /* Used for core file stuff only */ -#endif diff --git a/bfd/hosts/hp300.h b/bfd/hosts/hp300.h deleted file mode 100644 index 28dcb51..0000000 --- a/bfd/hosts/hp300.h +++ /dev/null @@ -1,38 +0,0 @@ -#include <stddef.h> -#include <stdlib.h> -#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 - -#define HOST_HP300HPUX - -#define USE_UTIME - -/* Some things that need to be defined in order to make code written for - BSD Unix compile under System V Unix. */ - -#include <memory.h> -#define bcmp(b1,b2,len) memcmp(b1,b2,len) -#define bcopy(src,dst,len) memcpy(dst,src,len) -#define bzero(s,n) memset(s,0,n) - -#if 0 -static int -rename(from, to) -{ - unlink(to); - return(link(from, to)); -} -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/hppabsd.h b/bfd/hosts/hppabsd.h deleted file mode 100644 index 4abc594..0000000 --- a/bfd/hosts/hppabsd.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef _HPPABSD_H -#define _HPPABSD_H - -#include <stddef.h> -#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> -#include <stdlib.h> -#include <unistd.h> - -#define HOST_HPPABSD - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#include <machine/machparam.h> - -#define HOST_PAGE_SIZE NBPG -#define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */ -#define HOST_MACHINE_ARCH bfd_arch_hppa -/* #define HOST_MACHINE_MACHINE */ - -#define HOST_TEXT_START_ADDR UTEXTSEG -#define HOST_DATA_START_ADDR UDATASEG -#define HOST_STACK_END_ADDR KSTAKSEG - -#include "fopen-same.h" - -#endif /* _HPPABSD_H */ diff --git a/bfd/hosts/hppahpux.h b/bfd/hosts/hppahpux.h deleted file mode 100644 index a0cc696..0000000 --- a/bfd/hosts/hppahpux.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef _HPPAHPUX_H -#define _HPPAHPUX_H - -#include <stddef.h> -#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> -#include <memory.h> -#include <stdlib.h> - -#define HOST_HPPAHPUX - -void free(); - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#ifndef __STDC__ -#define NATIVE_HPPAHPUX_COMPILER -#endif - -#define USE_UTIME - -#if 0 -static int -rename(from, to) -{ - unlink(to); - return(link(from, to)); -} -#endif - -#include "fopen-same.h" - -#endif /* _HPPAHPUX_H */ diff --git a/bfd/hosts/hppaosf.h b/bfd/hosts/hppaosf.h deleted file mode 100644 index eb524b6..0000000 --- a/bfd/hosts/hppaosf.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef _HPPAOSF_H -#define _HPPAOSF_H - -#include <stddef.h> -#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> -#include <stdlib.h> -#include <unistd.h> - -#define HOST_HPPAOSF - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#include <machine/machparam.h> - -#define HOST_PAGE_SIZE NBPG -#define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */ -#define HOST_MACHINE_ARCH bfd_arch_hppa -/* #define HOST_MACHINE_MACHINE */ - -#define HOST_TEXT_START_ADDR UTEXTSEG -#define HOST_DATA_START_ADDR UDATASEG -#define HOST_STACK_END_ADDR KSTAKSEG - -#include "fopen-same.h" - -#endif /* _HPPAOSF_H */ diff --git a/bfd/hosts/i386aix.h b/bfd/hosts/i386aix.h deleted file mode 100644 index ef621ca..0000000 --- a/bfd/hosts/i386aix.h +++ /dev/null @@ -1,46 +0,0 @@ -/* i386 AIX 1.2.x host system */ -/* From Minh Tran-Le <TRANLE@INTELLICORP.COM>. */ - -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.h> -#include <ctype.h> -#include <string.h> -#include <sys/file.h> -#include <stdlib.h> - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define POSIX_UTIME - -extern void abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern void exit PARAMS ((int)); -extern int fclose PARAMS ((FILE*)); -extern void free PARAMS ((PTR)); -extern int fseek PARAMS ((FILE*, long, int)); -extern void perror PARAMS ((CONST char *)); - -extern char *getenv(); -extern int chmod(); -extern int fstat(); -extern int stat(); - -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern int fputc(); -extern int unlink(); - -#include "fopen-same.h" diff --git a/bfd/hosts/i386bsd.h b/bfd/hosts/i386bsd.h deleted file mode 100644 index 56d7522..0000000 --- a/bfd/hosts/i386bsd.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef hosts_i386bsd_H -/* Intel 386 running any BSD Unix */ -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <ctype.h> -#include <string.h> -#include <sys/file.h> -#include <machine/param.h> -#include <machine/vmparam.h> - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define HOST_PAGE_SIZE NBPG -#define HOST_MACHINE_ARCH bfd_arch_i386 -#define HOST_TEXT_START_ADDR USRTEXT - -#ifdef __bsdi__ -/* This seems to be the right thing for BSDI. */ -#define HOST_STACK_END_ADDR USRSTACK -#else -/* This seems to be the right thing for 386BSD release 0.1. */ -#define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ) -#endif - -#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ - ((core_bfd)->tdata.trad_core_data->u.u_sig) -#define u_comm u_kproc.kp_proc.p_comm - -#include "fopen-same.h" -#define hosts_i386bsd_H -#endif diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h deleted file mode 100644 index b5be30c..0000000 --- a/bfd/hosts/i386lynx.h +++ /dev/null @@ -1,10 +0,0 @@ -/* Intel 386 running LynxOS */ - -#ifndef hosts_i386lynx_h -#define hosts_i386lynx_h - -#include "hosts/lynx.h" - -#define HOST_MACHINE_ARCH bfd_arch_i386 - -#endif /* hosts_i386lynx_h */ diff --git a/bfd/hosts/i386osf1mk.h b/bfd/hosts/i386osf1mk.h deleted file mode 100644 index cef73b4..0000000 --- a/bfd/hosts/i386osf1mk.h +++ /dev/null @@ -1,11 +0,0 @@ -#include "hosts/std-host.h" - -#include <machine/machparam.h> - -#define HAVE_STRERROR - -#define HOST_PAGE_SIZE NBPG -#define HOST_SEGMENT_SIZE NBPG -#define HOST_MACHINE_ARCH bfd_arch_i386 -#define HOST_TEXT_START_ADDR 0x10000 /* By inspection */ -#define HOST_STACK_END_ADDR KERNBASE diff --git a/bfd/hosts/i386v.h b/bfd/hosts/i386v.h deleted file mode 100644 index ee7daeb..0000000 --- a/bfd/hosts/i386v.h +++ /dev/null @@ -1,37 +0,0 @@ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <ctype.h> -#include <string.h> -#include <unistd.h> - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#ifndef SEEK_SET -#define SEEK_SET 0 -#define SEEK_CUR 1 -#endif - -#define USE_UTIME - -/* Some things that need to be defined in order to make code written for - BSD Unix compile under System V Unix. */ - -/*#include <memory.h>*/ -#define bcmp(b1,b2,len) memcmp(b1,b2,len) -#define bcopy(src,dst,len) memcpy(dst,src,len) -#define bzero(s,n) memset(s,0,n) - -#include <string.h> - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -extern void free PARAMS ((PTR)); -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/i386v4.h b/bfd/hosts/i386v4.h deleted file mode 100644 index 655e554..0000000 --- a/bfd/hosts/i386v4.h +++ /dev/null @@ -1,48 +0,0 @@ -/* SVR4 Unix host system */ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.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 - -#define POSIX_UTIME -#define HAVE_PROCFS /* This host has /proc support */ - -extern void abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern void exit PARAMS ((int)); -extern int fclose PARAMS ((FILE*)); -extern void free PARAMS ((PTR)); -extern int fseek PARAMS ((FILE*, long, int)); -extern gid_t getgid PARAMS ((void)); -extern uid_t getuid PARAMS ((void)); -extern PTR malloc PARAMS ((unsigned)); -extern void perror PARAMS ((CONST char *)); -extern PTR realloc PARAMS ((PTR, unsigned)); - -extern char *getenv(); -extern int chmod(); -extern int fstat(); -extern int stat(); - -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern int fputc(); -extern int unlink(); - -#include "fopen-same.h" diff --git a/bfd/hosts/i386win32.h b/bfd/hosts/i386win32.h deleted file mode 100644 index c4d8532..0000000 --- a/bfd/hosts/i386win32.h +++ /dev/null @@ -1,20 +0,0 @@ -#include <stddef.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <ctype.h> -#include <string.h> -#include <stdlib.h> -#include <sys/stat.h> -#define FPRINTF_ALREADY_DECLARED - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define NO_FCNTL - -#include "fopen-bin.h" - diff --git a/bfd/hosts/irix3.h b/bfd/hosts/irix3.h deleted file mode 100644 index caa7901..0000000 --- a/bfd/hosts/irix3.h +++ /dev/null @@ -1,25 +0,0 @@ -#include <stdio.h> -#include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <malloc.h> - -#if 0 -#include <ctype.h> -#include <sys/file.h> -#endif - -#if !defined (O_ACCMODE) -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#if !defined (SEEK_SET) -#define SEEK_SET 0 -#define SEEK_CUR 1 -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/irix4.h b/bfd/hosts/irix4.h deleted file mode 100644 index 5da3636..0000000 --- a/bfd/hosts/irix4.h +++ /dev/null @@ -1,27 +0,0 @@ -#include <stdio.h> -#include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <malloc.h> - -#define HOST_IRIX4 - -#if 0 -#include <ctype.h> -#include <sys/file.h> -#endif - -#if !defined (O_ACCMODE) -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#if !defined (SEEK_SET) -#define SEEK_SET 0 -#define SEEK_CUR 1 -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/lynx.h b/bfd/hosts/lynx.h deleted file mode 100644 index 0243227..0000000 --- a/bfd/hosts/lynx.h +++ /dev/null @@ -1,42 +0,0 @@ -/* Architecture independant LynxOS host support for 2.2 */ - -#ifndef hosts_lynx_h -#define hosts_lynx_h - -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <ctype.h> -#include <string.h> - -#include <sys/conf.h> -#include <sys/kernel.h> -/* sys/kernel.h should define this, but doesn't always, sigh. */ -#ifndef __LYNXOS -#define __LYNXOS -#endif -#include <sys/mem.h> -#include <sys/signal.h> -#include <sys/time.h> -#include <sys/resource.h> -#include <sys/itimer.h> -#include <sys/file.h> -#include <sys/proc.h> - -#define HOST_PAGE_SIZE NBPG -#define HOST_TEXT_START_ADDR USRTEXT - -#define HOST_LYNX - -#include "fopen-same.h" - -#define FPRINTF_ALREADY_DECLARED - -#undef I386 /* Lynx defines this for some reason */ - -/* Lynx has calloc, but no cfree, and gprof uses it. */ - -#define cfree free - -#endif /* hosts_lynx_h */ diff --git a/bfd/hosts/m68klynx.h b/bfd/hosts/m68klynx.h deleted file mode 100644 index 2d370da..0000000 --- a/bfd/hosts/m68klynx.h +++ /dev/null @@ -1,10 +0,0 @@ -/* Motorola 680x0 running LynxOS */ - -#ifndef hosts_m68klynx_H -#define hosts_m68klynx_H - -#include "hosts/lynx.h" - -#define HOST_MACHINE_ARCH bfd_arch_m68k - -#endif /* hosts_m68klynx_H */ diff --git a/bfd/hosts/m68kv4.h b/bfd/hosts/m68kv4.h deleted file mode 100644 index 6860390..0000000 --- a/bfd/hosts/m68kv4.h +++ /dev/null @@ -1,51 +0,0 @@ -/* Amiga/Atari SVR4 Unix host system */ - -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.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 - -#define POSIX_UTIME -#define HAVE_PROCFS /* This host has /proc support */ - -extern void abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern void exit PARAMS ((int)); -extern int fclose PARAMS ((FILE*)); -extern void free PARAMS ((PTR)); -extern int fseek PARAMS ((FILE*, long, int)); -extern int getgid PARAMS (()); -extern int getuid PARAMS (()); -extern PTR malloc PARAMS ((unsigned)); -extern void perror PARAMS ((CONST char *)); -extern int qsort PARAMS ((void *data, int els, int siz, int func())); -extern PTR realloc PARAMS ((PTR, unsigned)); - -extern char *getenv(); -extern int chmod(); -extern int fstat(); -extern int stat(); -extern int strtol(); - -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern int fputc(); -extern int unlink(); - -#include "fopen-same.h" diff --git a/bfd/hosts/miniframe.h b/bfd/hosts/miniframe.h deleted file mode 100644 index cf6408d..0000000 --- a/bfd/hosts/miniframe.h +++ /dev/null @@ -1,14 +0,0 @@ -#include "hosts/std-host.h" - -#define USE_UTIME - -#define NEED_MKDIR -#define NEED_RMDIR - -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif /* MAXPATHLEN */ - -#define bcmp(b1,b2,len) memcmp(b1,b2,len) -#define bcopy(src,dst,len) memcpy(dst,src,len) -#define bzero(s,n) memset(s,0,n) diff --git a/bfd/hosts/nbsd.h b/bfd/hosts/nbsd.h index 1c7a779..dda5757 100644 --- a/bfd/hosts/nbsd.h +++ b/bfd/hosts/nbsd.h @@ -1,34 +1,9 @@ /* Architecture independant NetBSD host support */ -#ifndef hosts_nbsd_H_ -#define hosts_nbsd_H__ - -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <ctype.h> -#include <string.h> -#include <sys/file.h> #include <machine/param.h> #include <machine/vmparam.h> #include <machine/reg.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define POSIX_UTIME - -#include "fopen-same.h" - #define HOST_PAGE_SIZE NBPG #define HOST_TEXT_START_ADDR USRTEXT #define HOST_STACK_END_ADDR USRSTACK - -#endif diff --git a/bfd/hosts/ncr3000.h b/bfd/hosts/ncr3000.h deleted file mode 100644 index 3679c80..0000000 --- a/bfd/hosts/ncr3000.h +++ /dev/null @@ -1,50 +0,0 @@ -/* SVR4 Unix host system */ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.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 - -#define POSIX_UTIME -#define HAVE_PROCFS /* This host has /proc support */ - -extern void abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern void exit PARAMS ((int)); -extern int fclose PARAMS ((FILE*)); -extern void free PARAMS ((PTR)); -extern int fseek PARAMS ((FILE*, long, int)); -extern int getgid PARAMS (()); -extern int getuid PARAMS (()); -extern PTR malloc PARAMS ((unsigned)); -extern void perror PARAMS ((CONST char *)); -extern int qsort PARAMS ((void *data, int els, int siz, int func())); -extern PTR realloc PARAMS ((PTR, unsigned)); - -extern char *getenv(); -extern int chmod(); -extern int fstat(); -extern int stat(); -extern int strtol(); - -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern int fputc(); -extern int unlink(); - -#include "fopen-same.h" diff --git a/bfd/hosts/rs6000.h b/bfd/hosts/rs6000.h deleted file mode 100644 index 3a38968..0000000 --- a/bfd/hosts/rs6000.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This file is *really* for an RS6000 running AIX... */ - -#include <stddef.h> -#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> -#include <stdlib.h> /* for malloc() */ - -/* Defining this variable turns on AIX core file and archive support. */ -#define HOST_AIX - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#include "fopen-same.h" diff --git a/bfd/hosts/rs6000lynx.h b/bfd/hosts/rs6000lynx.h deleted file mode 100644 index 16d5a5a..0000000 --- a/bfd/hosts/rs6000lynx.h +++ /dev/null @@ -1,10 +0,0 @@ -/* RS6000 running LynxOS */ - -#ifndef hosts_rs6000lynx_h -#define hosts_rs6000lynx_h - -#include "hosts/lynx.h" - -#define HOST_MACHINE_ARCH bfd_arch_rs6000 - -#endif /* hosts_rs6000lynx_h */ diff --git a/bfd/hosts/rtbsd.h b/bfd/hosts/rtbsd.h deleted file mode 100644 index 957065f..0000000 --- a/bfd/hosts/rtbsd.h +++ /dev/null @@ -1,20 +0,0 @@ -#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 - -extern char *malloc(); -extern void free(); - -#include "fopen-same.h" diff --git a/bfd/hosts/solaris2.h b/bfd/hosts/solaris2.h deleted file mode 100644 index 90148f7..0000000 --- a/bfd/hosts/solaris2.h +++ /dev/null @@ -1 +0,0 @@ -#include "hosts/sysv4.h" diff --git a/bfd/hosts/sparc-ll.h b/bfd/hosts/sparc-ll.h deleted file mode 100644 index 23fc3bd..0000000 --- a/bfd/hosts/sparc-ll.h +++ /dev/null @@ -1,111 +0,0 @@ -/* Host definition file for Sun-4 running with gcc, using "long long" - for addresses, to handle 64-bit target systems. */ -#include <stddef.h> -#include <ansidecl.h> -#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> -#include <alloca.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 BFD_HOST_64_BIT long long - -extern int abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern int fcntl PARAMS ((int des, int cmd, int e)); -extern int fprintf PARAMS ((FILE *,char *,...)); -extern int printf PARAMS ((char *,...)); -extern int qsort PARAMS ((void *data, int els, int siz, int func())); -extern void exit PARAMS ((int)); -extern int fseek PARAMS ((FILE*, int, int)); -extern int fclose PARAMS ((FILE*)); -extern void bcopy PARAMS ((char*, char*, int)); -extern int bcmp PARAMS ((char *, char *, int)); -extern void bzero PARAMS ((char *, int)); -extern PTR memset PARAMS ((PTR, int, unsigned int)); -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -#endif - -#ifndef __GNUC__ - PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int)); -#else -/* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */ -#endif - -extern int getuid PARAMS (()); -extern int getgid PARAMS (()); -extern char * strchr(); -extern void perror PARAMS ((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(); - -extern int free PARAMS ((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(); - - -#ifdef __GNUC__ -typedef unsigned long long uint64e_type; - -#else -typedef struct { - unsigned long low, high; -} uint64e_type; - -#endif - -#ifdef __GNUC__ -typedef unsigned long long uint64_type; -typedef long long int64_type; -#else -typedef struct { - unsigned long low, high; -} uint64_type; - -typedef struct { - unsigned long low, high; -} int64_type; - -#endif - -#define BYTES_IN_PRINTF_INT 4 -#ifndef __GNUC__ -#define uint64_typeLOW(x) (unsigned long)(((x).low)) -#define uint64_typeHIGH(x) (unsigned long)(((x).high)) -#else -#define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff)) -#define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff) -#endif - -#include "fopen-same.h" diff --git a/bfd/hosts/sparc.h b/bfd/hosts/sparc.h deleted file mode 100644 index 08fce90..0000000 --- a/bfd/hosts/sparc.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef hosts_sparc_H -#define STDC_HEADERS -#define FILE_OFFSET_IS_CHAR_INDEX -#if defined(__STDC__) && __GNUC__ >= 2 -#define abort __hide_abort -#define exit __hide_exit -#endif -#include "hosts/std-host.h" -#include <alloca.h> -#include <memory.h> -#undef exit -#undef abort -#define hosts_sparc_H -#endif diff --git a/bfd/hosts/sparclynx.h b/bfd/hosts/sparclynx.h deleted file mode 100644 index 0a2f9f2..0000000 --- a/bfd/hosts/sparclynx.h +++ /dev/null @@ -1,10 +0,0 @@ -/* Sparc running LynxOS */ - -#ifndef hosts_sparclynx_h -#define hosts_sparclynx_h - -#include "hosts/lynx.h" - -#define HOST_MACHINE_ARCH bfd_arch_sparc - -#endif /* hosts_sparclynx_h */ diff --git a/bfd/hosts/std-host.h b/bfd/hosts/std-host.h deleted file mode 100644 index 6ce80da..0000000 --- a/bfd/hosts/std-host.h +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef hosts_std_host_H -#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> -#include "ansidecl.h" - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#ifndef SEEK_SET -#define SEEK_SET 0 -#endif -#ifndef SEEK_CUR -#define SEEK_CUR 1 -#endif -#ifdef STDC_HEADERS -#include <stdlib.h> -/*#include <string.h>*/ -#else -extern char *mktemp (); -extern PTR memset (); - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc (); -extern PTR realloc (); -#endif - -#ifndef __GNUC__ -extern PTR memcpy (); -#else -/* char * memcpy (); */ -#endif - -#ifdef __STDC__ -extern void free (); -#else -extern int free(); -#endif - -extern char * strchr(); -extern char *getenv(); -extern PTR memchr(); -extern char *strrchr(); - -extern char *strrchr(); -extern char *ctime(); -extern long atol(); -extern char *getenv(); -#endif /* STDC_HEADERS */ - -#ifndef BYTES_IN_PRINTF_INT -#define BYTES_IN_PRINTF_INT 4 -#endif - -#include "fopen-same.h" -#define hosts_std_host_H -#endif - -#ifdef STDC_HEADERS -#include <stddef.h> -#endif /* STDC_HEADERS */ diff --git a/bfd/hosts/stratus.h b/bfd/hosts/stratus.h deleted file mode 100644 index 1f8df76..0000000 --- a/bfd/hosts/stratus.h +++ /dev/null @@ -1,50 +0,0 @@ -/* Stratus FTX2 host system */ -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.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 - -#define POSIX_UTIME -#define HAVE_PROCFS /* This host has /proc support */ - -extern void abort PARAMS ((void)); -extern int close PARAMS ((int)); -extern void exit PARAMS ((int)); -extern int fclose PARAMS ((FILE*)); -extern void free PARAMS ((PTR)); -extern int fseek PARAMS ((FILE*, long, int)); -extern int getgid PARAMS (()); -extern int getuid PARAMS (()); -extern PTR malloc PARAMS ((unsigned)); -extern void perror PARAMS ((CONST char *)); -extern int qsort PARAMS ((void *data, int els, int siz, int func())); -extern PTR realloc PARAMS ((PTR, unsigned)); - -extern char *getenv(); -extern int chmod(); -extern int fstat(); -extern int stat(); -extern int strtol(); - -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern int fputc(); -extern int unlink(); - -#include "fopen-same.h" diff --git a/bfd/hosts/sun3.h b/bfd/hosts/sun3.h deleted file mode 100644 index 245eddb..0000000 --- a/bfd/hosts/sun3.h +++ /dev/null @@ -1,44 +0,0 @@ -#include <ansidecl.h> -#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> -#include <stdlib.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#define SEEK_SET 0 -#define SEEK_CUR 1 - -extern int close PARAMS ((int)); -extern int fprintf PARAMS ((FILE *,CONST char *,...)); -extern int fclose PARAMS ((FILE*)); -extern void bcopy PARAMS ((char*,char*,int)); -extern int bcmp PARAMS ((char *, char *, int)); -extern void bzero PARAMS ((char *, int)); -extern void perror PARAMS ((CONST char *)); -extern char * strchr(); -extern char *memchr(); -extern char *strrchr(); -extern int chmod(); -extern int fstat(); -extern int stat(); -extern int strtol(); - -extern char *strrchr(); -extern char *ctime(); -extern int _flsbuf(); -extern int fclose(); -extern int utimes(); -extern int vfprintf(); -extern long atol(); -extern char *getenv(); -extern int fputc(); -extern int unlink(); - - -#include "fopen-same.h" diff --git a/bfd/hosts/sysv4.h b/bfd/hosts/sysv4.h deleted file mode 100644 index 5880d33..0000000 --- a/bfd/hosts/sysv4.h +++ /dev/null @@ -1,37 +0,0 @@ -/* System V Release 4 Unix host system */ - -#include <stddef.h> -#include <ansidecl.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <utime.h> -#include <ctype.h> -#include <string.h> -#include <sys/file.h> -#include <unistd.h> -#include <stdlib.h> -#include <time.h> - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif -#ifndef SEEK_SET -#define SEEK_SET 0 -#endif -#ifndef SEEK_CUR -#define SEEK_CUR 1 -#endif - -#define POSIX_UTIME - -/* Note that we also use this for ptx4 (sequent). ptx4 does not - really have procfs, but it has the relevant headers for BFD to read - core files, so the proper thing to do for ptx4 is define - HAVE_PROCFS in BFD but not GDB. */ - -#define HAVE_PROCFS /* This host has /proc support */ - -#include "fopen-same.h" diff --git a/bfd/hosts/ultra3.h b/bfd/hosts/ultra3.h deleted file mode 100644 index cb3f82c..0000000 --- a/bfd/hosts/ultra3.h +++ /dev/null @@ -1,20 +0,0 @@ -#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> - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -extern char *malloc(); -extern void free(); - -#include "fopen-same.h" diff --git a/bfd/hosts/we32k.h b/bfd/hosts/we32k.h deleted file mode 100644 index 00b2878..0000000 --- a/bfd/hosts/we32k.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <ansidecl.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <time.h> -#include <ctype.h> -#include <string.h> -#include <sys/file.h> -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#ifndef DONTDECLARE_MALLOC -extern PTR malloc PARAMS ((unsigned)); -extern PTR realloc PARAMS ((PTR, unsigned)); -#endif -extern int abort PARAMS ((void)); -extern int free PARAMS ((PTR)); -extern void bcopy PARAMS ((char*, char*, int)); -extern void exit PARAMS ((int)); -extern void bzero PARAMS ((char *, int)); -extern int strtol(); -#define NO_STDARG 1 - -#include "fopen-same.h" |