inclhack.def (hpux11_extern_sendfile): New.

* inclhack.def (hpux11_extern_sendfile): New.
	(hpux11_extern_sendpath): New.
	* fixincl.x: Regenerate.

From-SVN: r118343
This commit is contained in:
Steve Ellcey 2006-10-31 22:28:18 +00:00 committed by Steve Ellcey
parent 8a7f7fb6de
commit be645fd97a
3 changed files with 121 additions and 5 deletions

View File

@ -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.

View File

@ -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.
*
@ -3039,6 +3039,84 @@ static const char* apzHpux_Spu_InfoPatch[] = {
#endif",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* 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
@ -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,

View File

@ -1780,6 +1780,26 @@ fix = {
test_text = "extern union mpinfou spu_info[];";
};
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.*";