diff options
author | John Gilmore <gnu@cygnus> | 1991-12-13 05:03:17 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-12-13 05:03:17 +0000 |
commit | a5431adc977782329a63afcc9fad5baa5b13c423 (patch) | |
tree | 47679c83d4e5a16a32ea794757b6382a9ba52068 | |
parent | c0fcc20765b95b454e90f241a334aedef736a434 (diff) | |
download | gdb-a5431adc977782329a63afcc9fad5baa5b13c423.zip gdb-a5431adc977782329a63afcc9fad5baa5b13c423.tar.gz gdb-a5431adc977782329a63afcc9fad5baa5b13c423.tar.bz2 |
* hosts/h-*.h: Configure fopen using ../include/fopen-*.h
rather than N copies of the same lines.
-rw-r--r-- | bfd/hosts/amix.h | 18 | ||||
-rw-r--r-- | bfd/hosts/delta88.h | 16 | ||||
-rw-r--r-- | bfd/hosts/dgux.h | 16 | ||||
-rw-r--r-- | bfd/hosts/dose.h | 17 | ||||
-rw-r--r-- | bfd/hosts/go32.h | 16 | ||||
-rw-r--r-- | bfd/hosts/harris.h | 16 | ||||
-rw-r--r-- | bfd/hosts/hp9000.h | 16 | ||||
-rw-r--r-- | bfd/hosts/i386mach.h | 16 | ||||
-rw-r--r-- | bfd/hosts/i386v.h | 16 | ||||
-rw-r--r-- | bfd/hosts/i386v4.h | 16 | ||||
-rw-r--r-- | bfd/hosts/irix3.h | 16 | ||||
-rw-r--r-- | bfd/hosts/rs6000.h | 16 | ||||
-rw-r--r-- | bfd/hosts/rtbsd.h | 16 | ||||
-rw-r--r-- | bfd/hosts/sparc-ll.h | 16 | ||||
-rw-r--r-- | bfd/hosts/sparc.h | 16 | ||||
-rw-r--r-- | bfd/hosts/sun3.h | 16 | ||||
-rw-r--r-- | bfd/hosts/ultra3.h | 16 |
17 files changed, 19 insertions, 256 deletions
diff --git a/bfd/hosts/amix.h b/bfd/hosts/amix.h index f17e391..ce5ce6b2 100644 --- a/bfd/hosts/amix.h +++ b/bfd/hosts/amix.h @@ -1,4 +1,5 @@ /* Amiga Unix host system */ + #include <fcntl.h> #include <errno.h> #include <stdio.h> @@ -9,22 +10,7 @@ #include <string.h> #include <sys/file.h> -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" - +#include "fopen-same.h" #ifndef O_ACCMODE #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) diff --git a/bfd/hosts/delta88.h b/bfd/hosts/delta88.h index 6e92549..beb33ec 100644 --- a/bfd/hosts/delta88.h +++ b/bfd/hosts/delta88.h @@ -79,18 +79,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/dgux.h b/bfd/hosts/dgux.h index 5c29c8e..09aea10 100644 --- a/bfd/hosts/dgux.h +++ b/bfd/hosts/dgux.h @@ -25,18 +25,4 @@ extern PROTO(void, bzero,(char *, int)); -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/dose.h b/bfd/hosts/dose.h index ccab2ac..359d15b 100644 --- a/bfd/hosts/dose.h +++ b/bfd/hosts/dose.h @@ -27,18 +27,5 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "rb" -#define FOPEN_WB "wb" -#define FOPEN_AB "ab" -#define FOPEN_RUB "r+b" -#define FOPEN_WUB "w+b" -#define FOPEN_AUB "a+b" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" + +#include "fopen-bin.h" diff --git a/bfd/hosts/go32.h b/bfd/hosts/go32.h index f0b86ff..a5de5f9 100644 --- a/bfd/hosts/go32.h +++ b/bfd/hosts/go32.h @@ -31,18 +31,4 @@ typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "rb" -#define FOPEN_WB "wb" -#define FOPEN_AB "ab" -#define FOPEN_RUB "r+b" -#define FOPEN_WUB "w+b" -#define FOPEN_AUB "a+b" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-bin.h" diff --git a/bfd/hosts/harris.h b/bfd/hosts/harris.h index 431c7ae0..e09ed42 100644 --- a/bfd/hosts/harris.h +++ b/bfd/hosts/harris.h @@ -36,18 +36,4 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/hp9000.h b/bfd/hosts/hp9000.h index a6b48dc..e1c8bb7 100644 --- a/bfd/hosts/hp9000.h +++ b/bfd/hosts/hp9000.h @@ -63,18 +63,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/i386mach.h b/bfd/hosts/i386mach.h index ce11dd6..03b06da 100644 --- a/bfd/hosts/i386mach.h +++ b/bfd/hosts/i386mach.h @@ -43,18 +43,4 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/i386v.h b/bfd/hosts/i386v.h index d2b5daa..f2cf6ef 100644 --- a/bfd/hosts/i386v.h +++ b/bfd/hosts/i386v.h @@ -65,18 +65,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/i386v4.h b/bfd/hosts/i386v4.h index 5112632..d622fd8 100644 --- a/bfd/hosts/i386v4.h +++ b/bfd/hosts/i386v4.h @@ -60,18 +60,4 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/irix3.h b/bfd/hosts/irix3.h index 64f5933..1ae0a58 100644 --- a/bfd/hosts/irix3.h +++ b/bfd/hosts/irix3.h @@ -38,18 +38,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/rs6000.h b/bfd/hosts/rs6000.h index 0fd01cd..b41ed5f 100644 --- a/bfd/hosts/rs6000.h +++ b/bfd/hosts/rs6000.h @@ -33,18 +33,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/rtbsd.h b/bfd/hosts/rtbsd.h index 94e900b..071ee04 100644 --- a/bfd/hosts/rtbsd.h +++ b/bfd/hosts/rtbsd.h @@ -33,18 +33,4 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/sparc-ll.h b/bfd/hosts/sparc-ll.h index 493b559..14ca8ad 100644 --- a/bfd/hosts/sparc-ll.h +++ b/bfd/hosts/sparc-ll.h @@ -121,18 +121,4 @@ typedef struct { #define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff)) #define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff) #endif -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/sparc.h b/bfd/hosts/sparc.h index b541922..fa1f5c4 100644 --- a/bfd/hosts/sparc.h +++ b/bfd/hosts/sparc.h @@ -131,18 +131,4 @@ typedef struct { #endif -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/sun3.h b/bfd/hosts/sun3.h index 49aba2f..3036ff1 100644 --- a/bfd/hosts/sun3.h +++ b/bfd/hosts/sun3.h @@ -68,18 +68,4 @@ typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" diff --git a/bfd/hosts/ultra3.h b/bfd/hosts/ultra3.h index b84e79f..17aad5a 100644 --- a/bfd/hosts/ultra3.h +++ b/bfd/hosts/ultra3.h @@ -32,18 +32,4 @@ typedef short int16_type; typedef unsigned short uint16_type; typedef int int32_type; typedef unsigned int uint32_type; -/* Macros for the 'type' part of an fopen, freopen or fdopen. - <Read|Write>[Update]<Binary file><text file> - */ -#define FOPEN_RB "r" -#define FOPEN_WB "w" -#define FOPEN_AB "a" -#define FOPEN_RUB "r+" -#define FOPEN_WUB "w+" -#define FOPEN_AUB "a+" -#define FOPEN_RT "r" -#define FOPEN_WT "w" -#define FOPEN_AT "a" -#define FOPEN_RUT "r+" -#define FOPEN_WUT "w+" -#define FOPEN_AUT "a+" +#include "fopen-same.h" |