Commit d635c707 by Adam Nemet Committed by Adam Nemet

inclhack.def (lynx_void_int): Remove.

	* inclhack.def (lynx_void_int): Remove.
	(lynxos_fcntl_proto): Remove.
	(lynxos_no_warning_in_sys_time_h): New fix.
	(lynxos_missing_putenv): New fix.
	* fixincl.x: Regenerate.
	* tests/base/fcntl.h: Remove.
	* tests/base/sys/time.h: Update from test area.
	* tests/base/curses.h: Likewise.
	* tests/base/stdlib.h: Likewise.

From-SVN: r87298
parent 85d62520
2004-09-10 Adam Nemet <anemet@lnxw.com>
* inclhack.def (lynx_void_int): Remove.
(lynxos_fcntl_proto): Remove.
(lynxos_no_warning_in_sys_time_h): New fix.
(lynxos_missing_putenv): New fix.
* fixincl.x: Regenerate.
* tests/base/fcntl.h: Remove.
* tests/base/sys/time.h: Update from test area.
* tests/base/curses.h: Likewise.
* tests/base/stdlib.h: Likewise.
2004-09-03 Jan Beulich <jbeulich@novell.com> 2004-09-03 Jan Beulich <jbeulich@novell.com>
* inclhack.def: Suppress exception_structure and math_exception * inclhack.def: Suppress exception_structure and math_exception
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* *
* DO NOT EDIT THIS FILE (fixincl.x) * DO NOT EDIT THIS FILE (fixincl.x)
* *
* It has been AutoGen-ed Saturday August 14, 2004 at 05:48:43 PM EDT * It has been AutoGen-ed Thursday September 9, 2004 at 08:07:32 PM PDT
* From the definitions inclhack.def * From the definitions inclhack.def
* and the template file fixincl * and the template file fixincl
*/ */
/* DO NOT CVS-MERGE THIS FILE, EITHER Sat Aug 14 17:48:43 EDT 2004 /* DO NOT CVS-MERGE THIS FILE, EITHER Thu Sep 9 20:07:32 PDT 2004
* *
* You must regenerate it. Use the ./genfixes script. * You must regenerate it. Use the ./genfixes script.
* *
...@@ -3333,73 +3333,83 @@ static const char* apzLimits_IfndefsPatch[] = { ...@@ -3333,73 +3333,83 @@ static const char* apzLimits_IfndefsPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Description of Lynx_Void_Int fix * Description of Lynxos_No_Warning_In_Sys_Time_H fix
*/ */
tSCC zLynx_Void_IntName[] = tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
"lynx_void_int"; "lynxos_no_warning_in_sys_time_h";
/* /*
* File name selection pattern * File name selection pattern
*/ */
tSCC zLynx_Void_IntList[] = tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
"|curses.h|"; "|sys/time.h|";
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzLynx_Void_IntMachs (const char**)NULL #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
/* /*
* content selection pattern - do fix if pattern found * content selection pattern - do fix if pattern found
*/ */
tSCC zLynx_Void_IntSelect0[] = tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
"#[ \t]*define[ \t]+void[ \t]+int[ \t]*"; "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
#define LYNX_VOID_INT_TEST_CT 1 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
static tTestDesc aLynx_Void_IntTests[] = { static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
{ TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, }; { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Lynx_Void_Int * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
*/ */
static const char* apzLynx_Void_IntPatch[] = { static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
"format", "format",
"", "",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Description of Lynxos_Fcntl_Proto fix * Description of Lynxos_Missing_Putenv fix
*/ */
tSCC zLynxos_Fcntl_ProtoName[] = tSCC zLynxos_Missing_PutenvName[] =
"lynxos_fcntl_proto"; "lynxos_missing_putenv";
/* /*
* File name selection pattern * File name selection pattern
*/ */
tSCC zLynxos_Fcntl_ProtoList[] = tSCC zLynxos_Missing_PutenvList[] =
"|fcntl.h|"; "|stdlib.h|";
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzLynxos_Fcntl_ProtoMachs (const char**)NULL tSCC* apzLynxos_Missing_PutenvMachs[] = {
"*-*-lynxos*",
(const char*)NULL };
/* /*
* content selection pattern - do fix if pattern found * content selection pattern - do fix if pattern found
*/ */
tSCC zLynxos_Fcntl_ProtoSelect0[] = tSCC zLynxos_Missing_PutenvSelect0[] =
"fcntl[ \t]*\\(int, int, int\\)"; "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
#define LYNXOS_FCNTL_PROTO_TEST_CT 1 /*
static tTestDesc aLynxos_Fcntl_ProtoTests[] = { * content bypass pattern - skip fix if pattern found
{ TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, }; */
tSCC zLynxos_Missing_PutenvBypass0[] =
"putenv[ \\t]*\\(";
#define LYNXOS_MISSING_PUTENV_TEST_CT 2
static tTestDesc aLynxos_Missing_PutenvTests[] = {
{ TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
{ TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Lynxos_Fcntl_Proto * Fix Command Arguments for Lynxos_Missing_Putenv
*/ */
static const char* apzLynxos_Fcntl_ProtoPatch[] = { static const char* apzLynxos_Missing_PutenvPatch[] = {
"format", "format",
"%1...)", "%0\n\
"(fcntl[ \t]*\\(int, int, )int\\)", extern int putenv\t\t\t\t_AP((char *));",
"extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -7018,7 +7028,7 @@ static const char* apzX11_SprintfPatch[] = { ...@@ -7018,7 +7028,7 @@ static const char* apzX11_SprintfPatch[] = {
* *
* List of all fixes * List of all fixes
*/ */
#define REGEX_COUNT 199 #define REGEX_COUNT 200
#define MACH_LIST_SIZE_LIMIT 261 #define MACH_LIST_SIZE_LIMIT 261
#define FIX_COUNT 177 #define FIX_COUNT 177
...@@ -7107,8 +7117,8 @@ typedef enum { ...@@ -7107,8 +7117,8 @@ typedef enum {
LIBC1_G_VA_LIST_FIXIDX, LIBC1_G_VA_LIST_FIXIDX,
LIBC1_IFDEFD_MEMX_FIXIDX, LIBC1_IFDEFD_MEMX_FIXIDX,
LIMITS_IFNDEFS_FIXIDX, LIMITS_IFNDEFS_FIXIDX,
LYNX_VOID_INT_FIXIDX, LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
LYNXOS_FCNTL_PROTO_FIXIDX, LYNXOS_MISSING_PUTENV_FIXIDX,
MACHINE_ANSI_H_VA_LIST_FIXIDX, MACHINE_ANSI_H_VA_LIST_FIXIDX,
MACHINE_NAME_FIXIDX, MACHINE_NAME_FIXIDX,
MATH_EXCEPTION_FIXIDX, MATH_EXCEPTION_FIXIDX,
...@@ -7611,15 +7621,15 @@ tFixDesc fixDescList[ FIX_COUNT ] = { ...@@ -7611,15 +7621,15 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 }, aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
{ zLynx_Void_IntName, zLynx_Void_IntList, { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
apzLynx_Void_IntMachs, apzLynxos_No_Warning_In_Sys_Time_HMachs,
LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 }, aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
{ zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList, { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
apzLynxos_Fcntl_ProtoMachs, apzLynxos_Missing_PutenvMachs,
LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 }, aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
{ zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
apzMachine_Ansi_H_Va_ListMachs, apzMachine_Ansi_H_Va_ListMachs,
......
...@@ -1870,31 +1870,35 @@ fix = { ...@@ -1870,31 +1870,35 @@ fix = {
}; };
#endif #endif
/* /*
* Delete the '#define void int' line from curses.h on Lynx * Remove header file warning from sys/time.h. Autoconf's
* AC_HEADER_TIME recommends to include both sys/time.h and time.h
* which causes warning on LynxOS. Remove the warning.
*/ */
fix = { fix = {
hackname = lynx_void_int; hackname = lynxos_no_warning_in_sys_time_h;
files = curses.h; files = sys/time.h;
select = "#[ \t]*define[ \t]+void[ \t]+int[ \t]*"; select = "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
c_fix = format; c_fix = format;
c_fix_arg = ""; c_fix_arg = "";
test_text = "# define\tvoid\tint \t/* curses foiled again */"; test_text = "#warning Using <time.h> instead of <sys/time.h>";
}; };
/* /*
* Fix fcntl prototype in fcntl.h on LynxOS. * Add missing declaration for putenv.
*/ */
fix = { fix = {
hackname = lynxos_fcntl_proto; hackname = lynxos_missing_putenv;
files = fcntl.h; mach = '*-*-lynxos*';
select = "fcntl[ \t]*" '\(int, int, int\)'; files = stdlib.h;
bypass = 'putenv[ \t]*\\(';
select = "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
c_fix = format; c_fix = format;
c_fix_arg = '%1...)'; c_fix_arg = "%0\n"
c_fix_arg = "(fcntl[ \t]*" '\(int, int, )int\)'; "extern int putenv _AP((char *));";
test_text = "extern int fcntl(int, int, int);"; c_fix_arg = "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
test_text = "extern char *getenv _AP((const char *));";
}; };
......
...@@ -30,11 +30,6 @@ struct term; ...@@ -30,11 +30,6 @@ struct term;
#endif /* BAD_STRUCT_TERM_CHECK */ #endif /* BAD_STRUCT_TERM_CHECK */
#if defined( LYNX_VOID_INT_CHECK )
/* curses foiled again */
#endif /* LYNX_VOID_INT_CHECK */
#if defined( VOID_NULL_CHECK ) #if defined( VOID_NULL_CHECK )
#ifndef NULL #ifndef NULL
#define NULL 0 /* typed NULL */ #define NULL 0 /* typed NULL */
......
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/fcntl.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( LYNXOS_FCNTL_PROTO_CHECK )
extern int fcntl(int, int, ...);
#endif /* LYNXOS_FCNTL_PROTO_CHECK */
...@@ -27,6 +27,12 @@ extern void exit(void*); ...@@ -27,6 +27,12 @@ extern void exit(void*);
#endif /* INT_ABORT_FREE_AND_EXIT_CHECK */ #endif /* INT_ABORT_FREE_AND_EXIT_CHECK */
#if defined( LYNX_MISSING_PUTENV_CHECK )
extern char *getenv _AP((const char *));
extern int putenv _AP((char *));
#endif /* LYNX_MISSING_PUTENV_CHECK */
#if defined( SVR4_GETCWD_CHECK ) #if defined( SVR4_GETCWD_CHECK )
extern char* getcwd(char *, size_t); extern char* getcwd(char *, size_t);
#endif /* SVR4_GETCWD_CHECK */ #endif /* SVR4_GETCWD_CHECK */
......
...@@ -14,6 +14,11 @@ struct sigevent; ...@@ -14,6 +14,11 @@ struct sigevent;
#endif /* HPUX_SYSTIME_CHECK */ #endif /* HPUX_SYSTIME_CHECK */
#if defined( LYNX_NO_WARNING_IN_SYS_TIME_H_CHECK )
#endif /* LYNX_NO_WARNING_IN_SYS_TIME_H_CHECK */
#if defined( ULTRIX_SYS_TIME_CHECK ) #if defined( ULTRIX_SYS_TIME_CHECK )
@(#)time.h 6.1 (ULTRIX) @(#)time.h 6.1 (ULTRIX)
extern time_t time( time_t *__tloc ); extern time_t time( time_t *__tloc );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment