summaryrefslogtreecommitdiffstats
path: root/fixincludes
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 22:28:18 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 22:28:18 +0000
commit1cb3e86dd7e2322e27ac8c4b08985df1273d9d76 (patch)
treedcd4679316b92d86ced228466cfc2939f2249030 /fixincludes
parentc0e176b512da73574d671c8d1454f5fabd2ba54e (diff)
downloadppe42-gcc-1cb3e86dd7e2322e27ac8c4b08985df1273d9d76.tar.gz
ppe42-gcc-1cb3e86dd7e2322e27ac8c4b08985df1273d9d76.zip
* inclhack.def (hpux11_extern_sendfile): New.
(hpux11_extern_sendpath): New. * fixincl.x: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118343 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/ChangeLog6
-rw-r--r--fixincludes/fixincl.x100
-rw-r--r--fixincludes/inclhack.def20
3 files changed, 121 insertions, 5 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 51a66abcdd9..f0e677c10cd 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-31 Steve Ellcey <sje@cup.hp.com>
+
+ * inclhack.def (hpux11_extern_sendfile): New.
+ (hpux11_extern_sendpath): New.
+ * fixincl.x: Regenerate.
+
2006-10-29 Joseph Myers <joseph@codesourcery.com>
* inclhack.def (AAB_fd_zero_asm_posix_types_h): Bypass on x86_64.
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
index 23ffffd154e..e5994a269d6 100644
--- a/fixincludes/fixincl.x
+++ b/fixincludes/fixincl.x
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed Sunday October 29, 2006 at 04:32:11 PM UTC
+ * It has been AutoGen-ed Tuesday October 31, 2006 at 08:47:53 AM PST
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT CVS-MERGE THIS FILE, EITHER Sun Oct 29 16:32:11 UTC 2006
+/* DO NOT CVS-MERGE THIS FILE, EITHER Tue Oct 31 08:47:53 PST 2006
*
* You must regenerate it. Use the ./genfixes script.
*
@@ -15,7 +15,7 @@
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
- * This file contains 201 fixup descriptions.
+ * This file contains 203 fixup descriptions.
*
* See README for more information.
*
@@ -3041,6 +3041,84 @@ static const char* apzHpux_Spu_InfoPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Hpux11_Extern_Sendfile fix
+ */
+tSCC zHpux11_Extern_SendfileName[] =
+ "hpux11_extern_sendfile";
+
+/*
+ * File name selection pattern
+ */
+tSCC zHpux11_Extern_SendfileList[] =
+ "|sys/socket.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+tSCC* apzHpux11_Extern_SendfileMachs[] = {
+ "*-hp-hpux11.[12]*",
+ (const char*)NULL };
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zHpux11_Extern_SendfileSelect0[] =
+ "^[ \t]*extern sbsize_t sendfile.*\n\
+.*, int\\)\\);\n";
+
+#define HPUX11_EXTERN_SENDFILE_TEST_CT 1
+static tTestDesc aHpux11_Extern_SendfileTests[] = {
+ { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Hpux11_Extern_Sendfile
+ */
+static const char* apzHpux11_Extern_SendfilePatch[] = {
+ "format",
+ "#ifndef _APP32_64BIT_OFF_T\n\
+%0#endif\n",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description of Hpux11_Extern_Sendpath fix
+ */
+tSCC zHpux11_Extern_SendpathName[] =
+ "hpux11_extern_sendpath";
+
+/*
+ * File name selection pattern
+ */
+tSCC zHpux11_Extern_SendpathList[] =
+ "|sys/socket.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+tSCC* apzHpux11_Extern_SendpathMachs[] = {
+ "*-hp-hpux11.[12]*",
+ (const char*)NULL };
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zHpux11_Extern_SendpathSelect0[] =
+ "^[ \t]*extern sbsize_t sendpath.*\n\
+.*, int\\)\\);\n";
+
+#define HPUX11_EXTERN_SENDPATH_TEST_CT 1
+static tTestDesc aHpux11_Extern_SendpathTests[] = {
+ { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Hpux11_Extern_Sendpath
+ */
+static const char* apzHpux11_Extern_SendpathPatch[] = {
+ "format",
+ "#ifndef _APP32_64BIT_OFF_T\n\
+%0#endif\n",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Hpux_Extern_Errno fix
*/
tSCC zHpux_Extern_ErrnoName[] =
@@ -8187,9 +8265,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
-#define REGEX_COUNT 244
+#define REGEX_COUNT 246
#define MACH_LIST_SIZE_LIMIT 261
-#define FIX_COUNT 201
+#define FIX_COUNT 203
/*
* Enumerate the fixes
@@ -8266,6 +8344,8 @@ typedef enum {
HPUX_LONG_DOUBLE_FIXIDX,
HPUX_SYSTIME_FIXIDX,
HPUX_SPU_INFO_FIXIDX,
+ HPUX11_EXTERN_SENDFILE_FIXIDX,
+ HPUX11_EXTERN_SENDPATH_FIXIDX,
HPUX_EXTERN_ERRNO_FIXIDX,
HPUX_PTHREAD_INITIALIZERS_FIXIDX,
HUGE_VAL_HEX_FIXIDX,
@@ -8754,6 +8834,16 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
+ { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
+ apzHpux11_Extern_SendfileMachs,
+ HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
+
+ { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
+ apzHpux11_Extern_SendpathMachs,
+ HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
+
{ zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
apzHpux_Extern_ErrnoMachs,
HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index b36a8f5b4dd..becae874e63 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -1781,6 +1781,26 @@ fix = {
};
fix = {
+ hackname = hpux11_extern_sendfile;
+ mach = "*-hp-hpux11.[12]*";
+ files = sys/socket.h;
+ select = "^[ \t]*extern sbsize_t sendfile.*\n.*, int\\)\\);\n";
+ c_fix = format;
+ c_fix_arg = "#ifndef _APP32_64BIT_OFF_T\n%0#endif\n";
+ test_text = " extern sbsize_t sendfile __((int, int, off_t, bsize_t,\n const struct iovec *, int));\n";
+};
+
+fix = {
+ hackname = hpux11_extern_sendpath;
+ mach = "*-hp-hpux11.[12]*";
+ files = sys/socket.h;
+ select = "^[ \t]*extern sbsize_t sendpath.*\n.*, int\\)\\);\n";
+ c_fix = format;
+ c_fix_arg = "#ifndef _APP32_64BIT_OFF_T\n%0#endif\n";
+ test_text = " extern sbsize_t sendpath __((int, int, off_t, bsize_t,\n const struct iovec *, int));\n";
+};
+
+fix = {
hackname = hpux_extern_errno;
mach = "*-hp-hpux10.*";
mach = "*-hp-hpux11.[0-2]*";
OpenPOWER on IntegriCloud