/*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been autogen-ed Thursday May 28, 1998 at 08:21:12 AM PDT
+ * It has been autogen-ed Tuesday June 02, 1998 at 06:45:43 AM PDT
* From the definitions inclhack.def
* and the template file fixincl.tpl
*
* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
- * This script contains 101 fixup scripts.
+ * This script contains 108 fixup scripts.
*
* See README-fixinc for more information.
*
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 13 - Broken_Assert_Stdio fix
+ * Description 13 - Bad_Lval fix
+ */
+tSCC zBad_LvalName[] =
+ "Bad_Lval";
+/*
+ * File name selection pattern
+ */
+tSCC zBad_LvalList[] =
+ "|" "libgen.h"
+ "|" "dirent.h"
+ "|" "ftw.h"
+ "|" "grp.h"
+ "|" "ndbm.h"
+ "|" "pthread.h"
+ "|" "pwd.h"
+ "|" "signal.h"
+ "|" "standards.h"
+ "|" "stdlib.h"
+ "|" "string.h"
+ "|" "stropts.h"
+ "|" "time.h"
+ "|" "unistd.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zBad_LvalSelect0[] =
+ "^[ \t]*#[ \t]*pragma[ \t]extern_prefix";
+
+#define BAD_LVAL_TEST_CT 1
+tTestDesc aBad_LvalTests[] = {
+ { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Bad_Lval
+ */
+const char* apzBad_LvalPatch[] = { "sed",
+ "-e" "s/^[ \t]*#[ \t]*define[ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 14 - Broken_Assert_Stdio fix
*/
tSCC zBroken_Assert_StdioName[] =
"Broken_Assert_Stdio";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 14 - Broken_Assert_Stdlib fix
+ * Description 15 - Broken_Assert_Stdlib fix
*/
tSCC zBroken_Assert_StdlibName[] =
"Broken_Assert_Stdlib";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 15 - Bsd43_Io_Macros fix
+ * Description 16 - Bsd43_Io_Macros fix
*/
tSCC zBsd43_Io_MacrosName[] =
"Bsd43_Io_Macros";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 16 - Cxx_Cmnt_Hpux fix
+ * Description 17 - Cxx_Cmnt_Hpux fix
*/
tSCC zCxx_Cmnt_HpuxName[] =
"Cxx_Cmnt_Hpux";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 17 - Cxx_Cmnt_Irix fix
+ * Description 18 - Cxx_Cmnt_Irix fix
*/
tSCC zCxx_Cmnt_IrixName[] =
"Cxx_Cmnt_Irix";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 18 - Cxx_Cmnt_Sunos fix
+ * Description 19 - Cxx_Cmnt_Sunos fix
*/
tSCC zCxx_Cmnt_SunosName[] =
"Cxx_Cmnt_Sunos";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 19 - Cxx_Cmnt_Vxworks fix
+ * Description 20 - Cxx_Cmnt_Vxworks fix
*/
tSCC zCxx_Cmnt_VxworksName[] =
"Cxx_Cmnt_Vxworks";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 20 - Ecd_Cursor fix
+ * Description 21 - Ecd_Cursor fix
*/
tSCC zEcd_CursorName[] =
"Ecd_Cursor";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 21 - Else_Label fix
+ * Description 22 - Else_Label fix
*/
tSCC zElse_LabelName[] =
"Else_Label";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 22 - Endif_Label fix
+ * Description 23 - Endif_Label fix
*/
tSCC zEndif_LabelName[] =
"Endif_Label";
* content selection pattern
*/
tSCC zEndif_LabelSelect0[] =
- "^[ \t]*#[ \t]*endif[ \t]+[!-.0-~]";
+ "^[ \t]*#[ \t]*endif[ \t]+[!-.0-z{|}~]";
#define ENDIF_LABEL_TEST_CT 1
tTestDesc aEndif_LabelTests[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 23 - Hp_Inline fix
+ * Description 24 - Hp_Inline fix
*/
tSCC zHp_InlineName[] =
"Hp_Inline";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 24 - Hp_Sysfile fix
+ * Description 25 - Hp_Sysfile fix
*/
tSCC zHp_SysfileName[] =
"Hp_Sysfile";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 25 - Hpux_Cxx_Unready fix
+ * Description 26 - Hpux_Cxx_Unready fix
*/
tSCC zHpux_Cxx_UnreadyName[] =
"Hpux_Cxx_Unready";
* File name selection pattern
*/
tSCC zHpux_Cxx_UnreadyList[] =
- "|" "assert.h"
"|" "sys/mman.h" "|";
/*
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 26 - Hpux_Maxint fix
+ * Description 27 - Hpux_Maxint fix
*/
tSCC zHpux_MaxintName[] =
"Hpux_Maxint";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 27 - Hpux_Systime fix
+ * Description 28 - Hpux_Systime fix
*/
tSCC zHpux_SystimeName[] =
"Hpux_Systime";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 28 - Interactv_Add1 fix
+ * Description 29 - Interactv_Add1 fix
*/
tSCC zInteractv_Add1Name[] =
"Interactv_Add1";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 29 - Interactv_Add2 fix
+ * Description 30 - Interactv_Add2 fix
*/
tSCC zInteractv_Add2Name[] =
"Interactv_Add2";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 30 - Interactv_Add3 fix
+ * Description 31 - Interactv_Add3 fix
*/
tSCC zInteractv_Add3Name[] =
"Interactv_Add3";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 31 - Io_Def_Quotes fix
+ * Description 32 - Io_Def_Quotes fix
*/
tSCC zIo_Def_QuotesName[] =
"Io_Def_Quotes";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 32 - Ioctl_Fix_Ctrl fix
+ * Description 33 - Ioctl_Fix_Ctrl fix
*/
tSCC zIoctl_Fix_CtrlName[] =
"Ioctl_Fix_Ctrl";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 33 - Ip_Missing_Semi fix
+ * Description 34 - Ip_Missing_Semi fix
*/
tSCC zIp_Missing_SemiName[] =
"Ip_Missing_Semi";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 34 - Irix_Bogus_Cxx_Cmnt fix
+ * Description 35 - Irix_Bogus_Cxx_Cmnt fix
*/
tSCC zIrix_Bogus_Cxx_CmntName[] =
"Irix_Bogus_Cxx_Cmnt";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 35 - Irix_Multiline_Cmnt fix
+ * Description 36 - Irix_Multiline_Cmnt fix
*/
tSCC zIrix_Multiline_CmntName[] =
"Irix_Multiline_Cmnt";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 36 - Irix_Sockaddr fix
+ * Description 37 - Irix_Sockaddr fix
*/
tSCC zIrix_SockaddrName[] =
"Irix_Sockaddr";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 37 - Irix_Struct__File fix
+ * Description 38 - Irix_Struct__File fix
*/
tSCC zIrix_Struct__FileName[] =
"Irix_Struct__File";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 38 - Isc_Fmod fix
+ * Description 39 - Isc_Fmod fix
*/
tSCC zIsc_FmodName[] =
"Isc_Fmod";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 39 - Isc_Sys_Limits fix
+ * Description 40 - Motorola_Nested fix
+ */
+tSCC zMotorola_NestedName[] =
+ "Motorola_Nested";
+/*
+ * File name selection pattern
+ */
+tSCC zMotorola_NestedList[] =
+ "|" "limits.h"
+ "|" "sys/limits.h" "|";
+#define MOTOROLA_NESTED_TEST_CT 0
+#define aMotorola_NestedTests (tTestDesc*)NULL
+
+/*
+ * Fix Command Arguments for Motorola_Nested
+ */
+const char* apzMotorola_NestedPatch[] = { "sed",
+ "-e" "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
+ "-e" "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 41 - Isc_Sys_Limits fix
*/
tSCC zIsc_Sys_LimitsName[] =
"Isc_Sys_Limits";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 40 - Kandr_Concat fix
+ * Description 42 - Kandr_Concat fix
*/
tSCC zKandr_ConcatName[] =
"Kandr_Concat";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 41 - Limits_Ifndefs fix
+ * Description 43 - Limits_Ifndefs fix
*/
tSCC zLimits_IfndefsName[] =
"Limits_Ifndefs";
"#ifndef DBL_DIG\n",
"-e" "/[ \t]DBL_DIG[ \t]/a\\\n"
"#endif\n",
+ "-e" "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 42 - Lynx_Void_Int fix
+ * Description 44 - Lynx_Void_Int fix
*/
tSCC zLynx_Void_IntName[] =
"Lynx_Void_Int";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 43 - Lynxos_Fcntl_Proto fix
+ * Description 45 - Lynxos_Fcntl_Proto fix
*/
tSCC zLynxos_Fcntl_ProtoName[] =
"Lynxos_Fcntl_Proto";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 44 - M88k_Bad_Hypot_Opt fix
+ * Description 46 - M88k_Bad_Hypot_Opt fix
*/
tSCC zM88k_Bad_Hypot_OptName[] =
"M88k_Bad_Hypot_Opt";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 45 - M88k_Bad_S_If fix
+ * Description 47 - M88k_Bad_S_If fix
*/
tSCC zM88k_Bad_S_IfName[] =
"M88k_Bad_S_If";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 46 - M88k_Multi_Incl fix
+ * Description 48 - M88k_Multi_Incl fix
*/
tSCC zM88k_Multi_InclName[] =
"M88k_Multi_Incl";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 47 - Machine_Name fix
+ * Description 49 - Machine_Name fix
*/
tSCC zMachine_NameName[] =
"Machine_Name";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 48 - Math_Exception fix
+ * Description 50 - Math_Exception fix
*/
tSCC zMath_ExceptionName[] =
"Math_Exception";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 49 - Math_Gcc_Ifndefs fix
+ * Description 51 - Math_Gcc_Ifndefs fix
*/
tSCC zMath_Gcc_IfndefsName[] =
"Math_Gcc_Ifndefs";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 50 - Motorola_Stupid_Opt fix
+ * Description 52 - Motorola_Stupid_Opt fix
*/
tSCC zMotorola_Stupid_OptName[] =
"Motorola_Stupid_Opt";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 51 - Nested_Comment fix
+ * Description 53 - Nested_Comment fix
*/
tSCC zNested_CommentName[] =
"Nested_Comment";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 52 - News_Os_Recursion fix
+ * Description 54 - News_Os_Recursion fix
*/
tSCC zNews_Os_RecursionName[] =
"News_Os_Recursion";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 53 - Next_Math_Prefix fix
+ * Description 55 - Next_Math_Prefix fix
*/
tSCC zNext_Math_PrefixName[] =
"Next_Math_Prefix";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 54 - Next_Template fix
+ * Description 56 - Next_Template fix
*/
tSCC zNext_TemplateName[] =
"Next_Template";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 55 - Next_Volitile fix
+ * Description 57 - Next_Volitile fix
*/
tSCC zNext_VolitileName[] =
"Next_Volitile";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 56 - Next_Wait_Union fix
+ * Description 58 - Next_Wait_Union fix
*/
tSCC zNext_Wait_UnionName[] =
"Next_Wait_Union";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 57 - No_Double_Slash fix
+ * Description 59 - No_Double_Slash fix
*/
tSCC zNo_Double_SlashName[] =
"No_Double_Slash";
* content test pattern. A shell will deal with it later.
*/
tSCC zNo_Double_SlashTest0[] =
- "-z \"`echo ${f}|grep ++`\"";
+ "-z \"`echo ${file}|egrep '++|\\.hh$|\\.H$'`\"";
#define NO_DOUBLE_SLASH_TEST_CT 2
tTestDesc aNo_Double_SlashTests[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 58 - Nodeent_Syntax fix
+ * Description 60 - Nodeent_Syntax fix
*/
tSCC zNodeent_SyntaxName[] =
"Nodeent_Syntax";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 59 - Osf_Namespace_A fix
+ * Description 61 - Osf_Namespace_A fix
*/
tSCC zOsf_Namespace_AName[] =
"Osf_Namespace_A";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 60 - Osf_Namespace_B fix
+ * Description 62 - Osf_Namespace_B fix
*/
tSCC zOsf_Namespace_BName[] =
"Osf_Namespace_B";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 61 - Pthread_Page_Size fix
+ * Description 63 - Pthread_Page_Size fix
*/
tSCC zPthread_Page_SizeName[] =
"Pthread_Page_Size";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 62 - Rs6000_Double fix
+ * Description 64 - Rs6000_Double fix
*/
tSCC zRs6000_DoubleName[] =
"Rs6000_Double";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 63 - Rs6000_Fchmod fix
+ * Description 65 - Rs6000_Fchmod fix
*/
tSCC zRs6000_FchmodName[] =
"Rs6000_Fchmod";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 64 - Rs6000_Param fix
+ * Description 66 - Rs6000_Param fix
*/
tSCC zRs6000_ParamName[] =
"Rs6000_Param";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 65 - Sony_Include fix
+ * Description 67 - Sony_Include fix
*/
tSCC zSony_IncludeName[] =
"Sony_Include";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 66 - Statsswtch fix
+ * Description 68 - Statsswtch fix
*/
tSCC zStatsswtchName[] =
"Statsswtch";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 67 - Stdio_Va_List fix
+ * Description 69 - Stdio_Va_List fix
*/
tSCC zStdio_Va_ListName[] =
"Stdio_Va_List";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 68 - Sun_Bogus_Ifdef fix
+ * Description 70 - Sun_Bogus_Ifdef fix
*/
tSCC zSun_Bogus_IfdefName[] =
"Sun_Bogus_Ifdef";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 69 - Sun_Bogus_Ifdef_Sun4c fix
+ * Description 71 - Sun_Bogus_Ifdef_Sun4c fix
*/
tSCC zSun_Bogus_Ifdef_Sun4cName[] =
"Sun_Bogus_Ifdef_Sun4c";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 70 - Sun_Catmacro fix
+ * Description 72 - Sun_Catmacro fix
*/
tSCC zSun_CatmacroName[] =
"Sun_Catmacro";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 71 - Sun_Malloc fix
+ * Description 73 - Sun_Malloc fix
*/
tSCC zSun_MallocName[] =
"Sun_Malloc";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 72 - Sun_Memcpy fix
+ * Description 74 - Sun_Memcpy fix
*/
tSCC zSun_MemcpyName[] =
"Sun_Memcpy";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 73 - Sun_Rusers_Semi fix
+ * Description 75 - Sun_Rusers_Semi fix
*/
tSCC zSun_Rusers_SemiName[] =
"Sun_Rusers_Semi";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 74 - Sun_Signal fix
+ * Description 76 - Sun_Signal fix
*/
tSCC zSun_SignalName[] =
"Sun_Signal";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 75 - Sun_Xdr_Proto fix
+ * Description 77 - Sun_Xdr_Proto fix
*/
tSCC zSun_Xdr_ProtoName[] =
"Sun_Xdr_Proto";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 76 - Sunos_Large_Macro fix
+ * Description 78 - Sunos_Large_Macro fix
*/
tSCC zSunos_Large_MacroName[] =
"Sunos_Large_Macro";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 77 - Sunos_Matherr_Decl fix
+ * Description 79 - Sunos_Matherr_Decl fix
*/
tSCC zSunos_Matherr_DeclName[] =
"Sunos_Matherr_Decl";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 78 - Sunos_Strlen fix
+ * Description 80 - Sunos_Strlen fix
*/
tSCC zSunos_StrlenName[] =
"Sunos_Strlen";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 79 - Systypes fix
+ * Description 81 - Systypes fix
*/
tSCC zSystypesName[] =
"Systypes";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 80 - Systypes_For_Aix fix
+ * Description 82 - Systypes_For_Aix fix
*/
tSCC zSystypes_For_AixName[] =
"Systypes_For_Aix";
tSCC zSystypes_For_AixSelect0[] =
"typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
-#define SYSTYPES_FOR_AIX_TEST_CT 1
+/*
+ * content bypass pattern
+ */
+tSCC zSystypes_For_AixBypass0[] =
+ "_GCC_SIZE_T";
+
+#define SYSTYPES_FOR_AIX_TEST_CT 2
tTestDesc aSystypes_For_AixTests[] = {
+ { TT_NEGREP, zSystypes_For_AixBypass0, (regex_t*)NULL },
{ TT_EGREP, zSystypes_For_AixSelect0, (regex_t*)NULL } };
/*
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 81 - Sysv68_String fix
+ * Description 83 - Sysv68_String fix
*/
tSCC zSysv68_StringName[] =
"Sysv68_String";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 82 - Sysz_Stdlib_For_Sun fix
+ * Description 84 - Sysz_Stdlib_For_Sun fix
*/
tSCC zSysz_Stdlib_For_SunName[] =
"Sysz_Stdlib_For_Sun";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 83 - Sysz_Stdtypes_For_Sun fix
+ * Description 85 - Sysz_Stdtypes_For_Sun fix
*/
tSCC zSysz_Stdtypes_For_SunName[] =
"Sysz_Stdtypes_For_Sun";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 84 - Tinfo_Cplusplus fix
+ * Description 86 - Tinfo_Cplusplus fix
*/
tSCC zTinfo_CplusplusName[] =
"Tinfo_Cplusplus";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 85 - Ultrix_Ansi_Compat fix
+ * Description 87 - Ultrix_Ansi_Compat fix
*/
tSCC zUltrix_Ansi_CompatName[] =
"Ultrix_Ansi_Compat";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 86 - Ultrix_Atof_Param fix
+ * Description 88 - Ultrix_Atof_Param fix
*/
tSCC zUltrix_Atof_ParamName[] =
"Ultrix_Atof_Param";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 87 - Ultrix_Const fix
+ * Description 89 - Ultrix_Const fix
*/
tSCC zUltrix_ConstName[] =
"Ultrix_Const";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 88 - Ultrix_Ifdef fix
+ * Description 90 - Ultrix_Ifdef fix
*/
tSCC zUltrix_IfdefName[] =
"Ultrix_Ifdef";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 89 - Ultrix_Nested_Cmnt fix
+ * Description 91 - Ultrix_Nested_Cmnt fix
*/
tSCC zUltrix_Nested_CmntName[] =
"Ultrix_Nested_Cmnt";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 90 - Ultrix_Static fix
+ * Description 92 - Ultrix_Static fix
*/
tSCC zUltrix_StaticName[] =
"Ultrix_Static";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 91 - Undefine_Null fix
+ * Description 93 - Undefine_Null fix
*/
tSCC zUndefine_NullName[] =
"Undefine_Null";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 92 - Va_I960_Macro fix
+ * Description 94 - Va_I960_Macro fix
*/
tSCC zVa_I960_MacroName[] =
"Va_I960_Macro";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 93 - Void_Null fix
+ * Description 95 - Void_Null fix
*/
tSCC zVoid_NullName[] =
"Void_Null";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 94 - Vxworks_Gcc_Problem fix
+ * Description 96 - Vxworks_Gcc_Problem fix
*/
tSCC zVxworks_Gcc_ProblemName[] =
"Vxworks_Gcc_Problem";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 95 - Vxworks_Needs_Vxtypes fix
+ * Description 97 - Vxworks_Needs_Vxtypes fix
*/
tSCC zVxworks_Needs_VxtypesName[] =
"Vxworks_Needs_Vxtypes";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 96 - Vxworks_Needs_Vxworks fix
+ * Description 98 - Vxworks_Needs_Vxworks fix
*/
tSCC zVxworks_Needs_VxworksName[] =
"Vxworks_Needs_Vxworks";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 97 - Vxworks_Time fix
+ * Description 99 - Vxworks_Time fix
*/
tSCC zVxworks_TimeName[] =
"Vxworks_Time";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 98 - X11_Class fix
+ * Description 100 - X11_Class fix
*/
tSCC zX11_ClassName[] =
"X11_Class";
* Fix Command Arguments for X11_Class
*/
const char* apzX11_ClassPatch[] = { "sed",
- "-e" "/char [*]class;/i\\\n"
+ "-e" "/char \\*class;/i\\\n"
"#ifdef __cplusplus\\\n"
"\tchar *c_class;\\\n"
"#else\n",
- "-e" "/char [*]class;/a\\\n"
+ "-e" "/char \\*class;/a\\\n"
"#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 99 - X11_Class_Usage fix
+ * Description 101 - X11_Class_Usage fix
*/
tSCC zX11_Class_UsageName[] =
"X11_Class_Usage";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 100 - X11_New fix
+ * Description 102 - X11_New fix
*/
tSCC zX11_NewName[] =
"X11_New";
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description 101 - X11_Sprintf fix
+ * Description 103 - X11_Sprintf fix
*/
tSCC zX11_SprintfName[] =
"X11_Sprintf";
"#endif /* !defined __STDC__ */,",
(char*)NULL };
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 104 - Zzz_Ki_Iface fix
+ */
+tSCC zZzz_Ki_IfaceName[] =
+ "Zzz_Ki_Iface";
+/*
+ * File name selection pattern
+ */
+tSCC zZzz_Ki_IfaceList[] =
+ "|" "sys/ki_iface.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zZzz_Ki_IfaceSelect0[] =
+ "These definitions are for HP Internal developers";
+
+#define ZZZ_KI_IFACE_TEST_CT 1
+tTestDesc aZzz_Ki_IfaceTests[] = {
+ { TT_EGREP, zZzz_Ki_IfaceSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Zzz_Ki_Iface
+ */
+const char* apzZzz_Ki_IfacePatch[] = { "sh", "-c",
+ "echo \"Removing incorrect fix to HP-UX <$file>\" >&2\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "cat > /dev/null",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 105 - Zzz_Ki fix
+ */
+tSCC zZzz_KiName[] =
+ "Zzz_Ki";
+/*
+ * File name selection pattern
+ */
+tSCC zZzz_KiList[] =
+ "|" "sys/ki.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zZzz_KiSelect0[] =
+ "11.00 HP-UX LP64";
+
+#define ZZZ_KI_TEST_CT 1
+tTestDesc aZzz_KiTests[] = {
+ { TT_EGREP, zZzz_KiSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Zzz_Ki
+ */
+const char* apzZzz_KiPatch[] = { "sh", "-c",
+ "echo \"Removing incorrect fix to HP-UX <$file>\" >&2\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "cat > /dev/null",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 106 - Zzz_Ki_Calls fix
+ */
+tSCC zZzz_Ki_CallsName[] =
+ "Zzz_Ki_Calls";
+/*
+ * File name selection pattern
+ */
+tSCC zZzz_Ki_CallsList[] =
+ "|" "sys/ki_calls.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zZzz_Ki_CallsSelect0[] =
+ "KI_MAX_PROCS is an arbitrary number";
+
+#define ZZZ_KI_CALLS_TEST_CT 1
+tTestDesc aZzz_Ki_CallsTests[] = {
+ { TT_EGREP, zZzz_Ki_CallsSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Zzz_Ki_Calls
+ */
+const char* apzZzz_Ki_CallsPatch[] = { "sh", "-c",
+ "echo \"Removing incorrect fix to HP-UX <$file>\" >&2\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "cat > /dev/null",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 107 - Zzz_Ki_Defs fix
+ */
+tSCC zZzz_Ki_DefsName[] =
+ "Zzz_Ki_Defs";
+/*
+ * File name selection pattern
+ */
+tSCC zZzz_Ki_DefsList[] =
+ "|" "sys/ki_defs.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zZzz_Ki_DefsSelect0[] =
+ "Kernel Instrumentation Definitions";
+
+#define ZZZ_KI_DEFS_TEST_CT 1
+tTestDesc aZzz_Ki_DefsTests[] = {
+ { TT_EGREP, zZzz_Ki_DefsSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Zzz_Ki_Defs
+ */
+const char* apzZzz_Ki_DefsPatch[] = { "sh", "-c",
+ "echo \"Removing incorrect fix to HP-UX <$file>\" >&2\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "cat > /dev/null",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * Description 108 - Zzz_Time fix
+ */
+tSCC zZzz_TimeName[] =
+ "Zzz_Time";
+/*
+ * File name selection pattern
+ */
+tSCC zZzz_TimeList[] =
+ "|" "sys/time.h" "|";
+
+/*
+ * content selection pattern
+ */
+tSCC zZzz_TimeSelect0[] =
+ "For CASPEC, look in";
+
+#define ZZZ_TIME_TEST_CT 1
+tTestDesc aZzz_TimeTests[] = {
+ { TT_EGREP, zZzz_TimeSelect0, (regex_t*)NULL } };
+
+/*
+ * Fix Command Arguments for Zzz_Time
+ */
+const char* apzZzz_TimePatch[] = { "sh", "-c",
+ "echo \"Removing incorrect fix to HP-UX <$file>\" >&2\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "cat > /dev/null",
+ (char*)NULL };
+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* List of all fixes
*/
-#define REGEX_COUNT 69
-#define FIX_COUNT 101
-tFixDesc fixDescList[ 101 ] = {
+#define REGEX_COUNT 76
+#define FIX_COUNT 108
+tFixDesc fixDescList[ 108 ] = {
{ zAix_SyswaitName, zAix_SyswaitList, (regex_t*)NULL,
AIX_SYSWAIT_TEST_CT, aAix_SyswaitTests,
apzAix_SyswaitPatch },
BADQUOTE_TEST_CT, aBadquoteTests,
apzBadquotePatch },
+ { zBad_LvalName, zBad_LvalList, (regex_t*)NULL,
+ BAD_LVAL_TEST_CT, aBad_LvalTests,
+ apzBad_LvalPatch },
+
{ zBroken_Assert_StdioName, zBroken_Assert_StdioList, (regex_t*)NULL,
BROKEN_ASSERT_STDIO_TEST_CT, aBroken_Assert_StdioTests,
apzBroken_Assert_StdioPatch },
ISC_FMOD_TEST_CT, aIsc_FmodTests,
apzIsc_FmodPatch },
+ { zMotorola_NestedName, zMotorola_NestedList, (regex_t*)NULL,
+ MOTOROLA_NESTED_TEST_CT, aMotorola_NestedTests,
+ apzMotorola_NestedPatch },
+
{ zIsc_Sys_LimitsName, zIsc_Sys_LimitsList, (regex_t*)NULL,
ISC_SYS_LIMITS_TEST_CT, aIsc_Sys_LimitsTests,
apzIsc_Sys_LimitsPatch },
{ zX11_SprintfName, zX11_SprintfList, (regex_t*)NULL,
X11_SPRINTF_TEST_CT, aX11_SprintfTests,
- apzX11_SprintfPatch }
+ apzX11_SprintfPatch },
+
+ { zZzz_Ki_IfaceName, zZzz_Ki_IfaceList, (regex_t*)NULL,
+ ZZZ_KI_IFACE_TEST_CT, aZzz_Ki_IfaceTests,
+ apzZzz_Ki_IfacePatch },
+
+ { zZzz_KiName, zZzz_KiList, (regex_t*)NULL,
+ ZZZ_KI_TEST_CT, aZzz_KiTests,
+ apzZzz_KiPatch },
+
+ { zZzz_Ki_CallsName, zZzz_Ki_CallsList, (regex_t*)NULL,
+ ZZZ_KI_CALLS_TEST_CT, aZzz_Ki_CallsTests,
+ apzZzz_Ki_CallsPatch },
+
+ { zZzz_Ki_DefsName, zZzz_Ki_DefsList, (regex_t*)NULL,
+ ZZZ_KI_DEFS_TEST_CT, aZzz_Ki_DefsTests,
+ apzZzz_Ki_DefsPatch },
+
+ { zZzz_TimeName, zZzz_TimeList, (regex_t*)NULL,
+ ZZZ_TIME_TEST_CT, aZzz_TimeTests,
+ apzZzz_TimePatch }
};
#
# DO NOT EDIT THIS FILE (inclhack.sh)
#
-# It has been autogen-ed Thursday May 28, 1998 at 08:21:14 AM PDT
+# It has been autogen-ed Tuesday June 02, 1998 at 06:45:50 AM PDT
# From the definitions inclhack.def
# and the template file inclhack.tpl
#
# files which are fixed to work correctly with ANSI C and placed in a
# directory that GNU C will search.
#
-# This script contains 101 fixup scripts.
+# This script contains 108 fixup scripts.
#
# See README-fixinc for more information.
#
#
- # Fix 13: Broken_Assert_Stdio
+ # Fix 13: Bad_Lval
+ #
+ case "$file" in ./libgen.h | \
+ ./dirent.h | \
+ ./ftw.h | \
+ ./grp.h | \
+ ./ndbm.h | \
+ ./pthread.h | \
+ ./pwd.h | \
+ ./signal.h | \
+ ./standards.h | \
+ ./stdlib.h | \
+ ./string.h | \
+ ./stropts.h | \
+ ./time.h | \
+ ./unistd.h )
+ if ( test -n "`egrep '^[ ]*#[ ]*pragma[ ]extern_prefix' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ bad_lval"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+
+ sed -e 's/^[ ]*#[ ]*define[ ]*\([^(]*\)\(([^)]*)\)[ ]*\(_.\)\1\2[ ]*$/#define \1 \3\1/' \
+ < $infile > ${DESTDIR}/$file.
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 14: Broken_Assert_Stdio
#
case "$file" in ./assert.h )
if ( test -n "`egrep 'stderr' $file`" -a \
#
- # Fix 14: Broken_Assert_Stdlib
+ # Fix 15: Broken_Assert_Stdlib
#
case "$file" in ./assert.h )
if ( test -n "`egrep 'exit *\\(|abort *\\(' $file`" -a \
#
- # Fix 15: Bsd43_Io_Macros
+ # Fix 16: Bsd43_Io_Macros
#
if ( test -n "`egrep 'BSD43__IO' $file`"
) > /dev/null 2>&1 ; then
#
- # Fix 16: Cxx_Cmnt_Hpux
+ # Fix 17: Cxx_Cmnt_Hpux
#
case "$file" in ./sys/pci.h )
if ( test -n "`egrep 'System Private Structures' $file`"
#
- # Fix 17: Cxx_Cmnt_Irix
+ # Fix 18: Cxx_Cmnt_Irix
#
case "$file" in ./fam.h )
if ( test -n "`egrep 'indigo.esd' $file`"
#
- # Fix 18: Cxx_Cmnt_Sunos
+ # Fix 19: Cxx_Cmnt_Sunos
#
case "$file" in ./sbusdev/audiovar.h | \
./sys/audiovar.h )
#
- # Fix 19: Cxx_Cmnt_Vxworks
+ # Fix 20: Cxx_Cmnt_Vxworks
#
case "$file" in ./drv/netif/if_med.h )
if ( test -n "`egrep 'Wind River' $file`"
#
- # Fix 20: Ecd_Cursor
+ # Fix 21: Ecd_Cursor
#
case "$file" in ./sunwindow/win_lock.h | \
./sunwindow/win_cursor.h )
#
- # Fix 21: Else_Label
+ # Fix 22: Else_Label
#
if ( test -n "`egrep '^[ ]*#[ ]*else[ ]+[!-.0-~]' $file`"
) > /dev/null 2>&1 ; then
#
- # Fix 22: Endif_Label
+ # Fix 23: Endif_Label
#
- if ( test -n "`egrep '^[ ]*#[ ]*endif[ ]+[!-.0-~]' $file`"
+ if ( test -n "`egrep '^[ ]*#[ ]*endif[ ]+[!-.0-z{|}~]' $file`"
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
endif_label"
#
- # Fix 23: Hp_Inline
+ # Fix 24: Hp_Inline
#
case "$file" in ./sys/spinlock.h )
if ( test -n "`egrep 'include.*\"\\.\\./machine/' $file`"
#
- # Fix 24: Hp_Sysfile
+ # Fix 25: Hp_Sysfile
#
case "$file" in ./sys/file.h )
if ( test -n "`egrep 'HPUX_SOURCE' $file`"
#
- # Fix 25: Hpux_Cxx_Unready
+ # Fix 26: Hpux_Cxx_Unready
#
- case "$file" in ./assert.h | \
- ./sys/mman.h )
+ case "$file" in ./sys/mman.h )
if ( test -z "`egrep '\"C\"|__BEGIN_DECLS' $file`"
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
#
- # Fix 26: Hpux_Maxint
+ # Fix 27: Hpux_Maxint
#
case "$file" in ./sys/param.h )
fixlist="${fixlist}
#
- # Fix 27: Hpux_Systime
+ # Fix 28: Hpux_Systime
#
case "$file" in ./sys/time.h )
if ( test -n "`egrep '^extern struct sigevent;' $file`"
#
- # Fix 28: Interactv_Add1
+ # Fix 29: Interactv_Add1
#
case "$file" in ./stdio.h | \
./math.h | \
#
- # Fix 29: Interactv_Add2
+ # Fix 30: Interactv_Add2
#
case "$file" in ./math.h )
if ( test '(' -d /etc/conf/kconfig.d ')' -a \
#
- # Fix 30: Interactv_Add3
+ # Fix 31: Interactv_Add3
#
case "$file" in ./sys/limits.h )
if ( test '(' -d /etc/conf/kconfig.d ')' -a \
#
- # Fix 31: Io_Def_Quotes
+ # Fix 32: Io_Def_Quotes
#
if ( test -n "`egrep '[ ]_IO[A-Z]*[ ]*\\([A-Za-z]' $file`"
) > /dev/null 2>&1 ; then
#
- # Fix 32: Ioctl_Fix_Ctrl
+ # Fix 33: Ioctl_Fix_Ctrl
#
if ( test -n "`egrep 'CTRL[ ]' $file`"
) > /dev/null 2>&1 ; then
#
- # Fix 33: Ip_Missing_Semi
+ # Fix 34: Ip_Missing_Semi
#
case "$file" in ./netinet/ip.h )
fixlist="${fixlist}
#
- # Fix 34: Irix_Bogus_Cxx_Cmnt
+ # Fix 35: Irix_Bogus_Cxx_Cmnt
#
case "$file" in ./elf_abi.h | \
./elf.h )
#
- # Fix 35: Irix_Multiline_Cmnt
+ # Fix 36: Irix_Multiline_Cmnt
#
case "$file" in ./sys/types.h )
fixlist="${fixlist}
#
- # Fix 36: Irix_Sockaddr
+ # Fix 37: Irix_Sockaddr
#
case "$file" in ./rpc/auth.h )
if ( test -n "`egrep 'authdes_create.*struct sockaddr' $file`"
#
- # Fix 37: Irix_Struct__File
+ # Fix 38: Irix_Struct__File
#
case "$file" in ./rpc/xdr.h )
fixlist="${fixlist}
#
- # Fix 38: Isc_Fmod
+ # Fix 39: Isc_Fmod
#
case "$file" in ./math.h )
if ( test -n "`egrep 'fmod\\(double\\)' $file`"
#
- # Fix 39: Isc_Sys_Limits
+ # Fix 40: Motorola_Nested
+ #
+ case "$file" in ./limits.h | \
+ ./sys/limits.h )
+ fixlist="${fixlist}
+ motorola_nested"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+
+ sed -e 's@^\(#undef[ ][ ]*PIPE_BUF[ ]*/\* max # bytes atomic in write to a\)$@\1 */@' \
+ -e 's@\(/\*#define HUGE_VAL 3.40282346638528860e+38 \)\(/\*error value returned by Math lib\*/\)$@\1*/ \2@' \
+ < $infile > ${DESTDIR}/$file.
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 41: Isc_Sys_Limits
#
case "$file" in ./sys/limits.h )
if ( test -n "`egrep 'CHILD_MAX' $file`"
#
- # Fix 40: Kandr_Concat
+ # Fix 42: Kandr_Concat
#
case "$file" in ./sparc/asm_linkage.h | \
./sun3/asm_linkage.h | \
#
- # Fix 41: Limits_Ifndefs
+ # Fix 43: Limits_Ifndefs
#
case "$file" in ./limits.h )
if ( test -z "`egrep 'ifndef[ ]+FLT_MIN' $file`"
-e '/[ ]DBL_DIG[ ]/a\
#endif
' \
+ -e '/^\(\/\*#define HUGE_VAL 3\.[0-9e+]* *\)\/\*/s//\1/' \
< $infile > ${DESTDIR}/$file.
mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
#
- # Fix 42: Lynx_Void_Int
+ # Fix 44: Lynx_Void_Int
#
case "$file" in ./curses.h )
if ( test -n "`egrep '#[ ]*define[ ]+void[ ]+int' $file`"
#
- # Fix 43: Lynxos_Fcntl_Proto
+ # Fix 45: Lynxos_Fcntl_Proto
#
case "$file" in ./fcntl.h )
fixlist="${fixlist}
#
- # Fix 44: M88k_Bad_Hypot_Opt
+ # Fix 46: M88k_Bad_Hypot_Opt
#
case "$file" in ./math.h )
case "$target_canonical" in m88k-motorola-sysv3* )
#
- # Fix 45: M88k_Bad_S_If
+ # Fix 47: M88k_Bad_S_If
#
case "$file" in ./sys/stat.h )
case "$target_canonical" in m88k-*-sysv3* )
#
- # Fix 46: M88k_Multi_Incl
+ # Fix 48: M88k_Multi_Incl
#
case "$file" in ./time.h )
case "$target_canonical" in m88k-tektronix-sysv3* )
#
- # Fix 47: Machine_Name
+ # Fix 49: Machine_Name
#
if ( test -n "`egrep '^#[ ]*(if|elif).*[^a-zA-Z0-9_](_*[MSRrhim]|[Mbimnpstuv])[a-zA-Z0-9_]' $file`"
) > /dev/null 2>&1 ; then
#
- # Fix 48: Math_Exception
+ # Fix 50: Math_Exception
#
case "$file" in ./math.h )
if ( test -n "`egrep 'struct exception' $file`"
#
- # Fix 49: Math_Gcc_Ifndefs
+ # Fix 51: Math_Gcc_Ifndefs
#
case "$file" in ./math.h )
fixlist="${fixlist}
#
- # Fix 50: Motorola_Stupid_Opt
+ # Fix 52: Motorola_Stupid_Opt
#
case "$file" in ./math.h )
case "$target_canonical" in m88k-motorola-sysv3* )
#
- # Fix 51: Nested_Comment
+ # Fix 53: Nested_Comment
#
case "$file" in ./rpc/rpc.h )
fixlist="${fixlist}
#
- # Fix 52: News_Os_Recursion
+ # Fix 54: News_Os_Recursion
#
case "$file" in ./stdlib.h )
if ( test -n "`egrep '#include <stdlib.h>' $file`"
#
- # Fix 53: Next_Math_Prefix
+ # Fix 55: Next_Math_Prefix
#
case "$file" in ./ansi/math.h )
if ( test -n "`egrep '^extern.*double.*__const__.*' $file`"
#
- # Fix 54: Next_Template
+ # Fix 56: Next_Template
#
case "$file" in ./bsd/libc.h )
if ( test -n "`egrep 'template' $file`"
#
- # Fix 55: Next_Volitile
+ # Fix 57: Next_Volitile
#
case "$file" in ./ansi/stdlib.h )
if ( test -n "`egrep 'volatile' $file`"
#
- # Fix 56: Next_Wait_Union
+ # Fix 58: Next_Wait_Union
#
case "$file" in ./sys/wait.h )
if ( test -n "`egrep 'wait\\(union wait' $file`"
#
- # Fix 57: No_Double_Slash
+ # Fix 59: No_Double_Slash
#
if ( test -n "`egrep '//[^*]' $file`" -a \
- '(' -z "`echo ${f}|grep ++`" ')'
+ '(' -z "`echo ${file}|egrep '++|\.hh$|\.H$'`" ')'
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
no_double_slash"
#
- # Fix 58: Nodeent_Syntax
+ # Fix 60: Nodeent_Syntax
#
case "$file" in ./netdnet/dnetdb.h )
fixlist="${fixlist}
#
- # Fix 59: Osf_Namespace_A
+ # Fix 61: Osf_Namespace_A
#
case "$file" in ./reg_types.h | \
./sys/lc_core.h )
#
- # Fix 60: Osf_Namespace_B
+ # Fix 62: Osf_Namespace_B
#
case "$file" in ./regex.h )
if ( test '(' -r reg_types.h-a -r sys/lc_core.h-a -n "`grep '} regex_t;' reg_types.h`"-a -z "`grep __regex_t regex.h`" ')'
#
- # Fix 61: Pthread_Page_Size
+ # Fix 63: Pthread_Page_Size
#
case "$file" in ./pthread.h )
if ( test -n "`egrep '^int __page_size' $file`"
#
- # Fix 62: Rs6000_Double
+ # Fix 64: Rs6000_Double
#
case "$file" in ./math.h )
if ( test -n "`egrep '[^a-zA-Z_]class\\(' $file`"
#
- # Fix 63: Rs6000_Fchmod
+ # Fix 65: Rs6000_Fchmod
#
case "$file" in ./sys/stat.h )
if ( test -n "`egrep 'fchmod\\(char' $file`"
#
- # Fix 64: Rs6000_Param
+ # Fix 66: Rs6000_Param
#
case "$file" in ./stdio.h | \
./unistd.h )
#
- # Fix 65: Sony_Include
+ # Fix 67: Sony_Include
#
case "$file" in ./machine/machparam.h )
if ( test -n "`egrep '\"\\.\\./machine/endian.h\"' $file`"
#
- # Fix 66: Statsswtch
+ # Fix 68: Statsswtch
#
case "$file" in ./rpcsvc/rstat.h )
if ( test -n "`egrep 'boottime$' $file`"
#
- # Fix 67: Stdio_Va_List
+ # Fix 69: Stdio_Va_List
#
case "$file" in ./stdio.h )
fixlist="${fixlist}
#
- # Fix 68: Sun_Bogus_Ifdef
+ # Fix 70: Sun_Bogus_Ifdef
#
case "$file" in ./hsfs/hsfs_spec.h | \
./hsfs/iso_spec.h )
#
- # Fix 69: Sun_Bogus_Ifdef_Sun4c
+ # Fix 71: Sun_Bogus_Ifdef_Sun4c
#
case "$file" in ./hsfs/hsnode.h )
if ( test -n "`egrep '#ifdef __i386__ || __sun4c__' $file`"
#
- # Fix 70: Sun_Catmacro
+ # Fix 72: Sun_Catmacro
#
case "$file" in ./pixrect/memvar.h )
if ( test -n "`egrep '^#define[ ]+CAT(a,b)' $file`"
#
- # Fix 71: Sun_Malloc
+ # Fix 73: Sun_Malloc
#
case "$file" in ./malloc.h )
fixlist="${fixlist}
#
- # Fix 72: Sun_Memcpy
+ # Fix 74: Sun_Memcpy
#
case "$file" in ./memory.h )
if ( test -n "`egrep '/\\* @\\(#\\)(head/memory.h 50.1 |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2 )\\*/' $file`"
#
- # Fix 73: Sun_Rusers_Semi
+ # Fix 75: Sun_Rusers_Semi
#
case "$file" in ./rpcsvc/rusers.h )
if ( test -n "`egrep '_cnt$' $file`"
#
- # Fix 74: Sun_Signal
+ # Fix 76: Sun_Signal
#
case "$file" in ./sys/signal.h | \
./signal.h )
#
- # Fix 75: Sun_Xdr_Proto
+ # Fix 77: Sun_Xdr_Proto
#
case "$file" in ./rpc/xdr.h )
fixlist="${fixlist}
#
- # Fix 76: Sunos_Large_Macro
+ # Fix 78: Sunos_Large_Macro
#
case "$file" in ./sundev/ipi_error.h )
fixlist="${fixlist}
#
- # Fix 77: Sunos_Matherr_Decl
+ # Fix 79: Sunos_Matherr_Decl
#
case "$file" in ./math.h )
if ( test '(' "`fgrep 'struct exception' $file | line`" != 'struct exception {' ')'
#
- # Fix 78: Sunos_Strlen
+ # Fix 80: Sunos_Strlen
#
case "$file" in ./strings.h )
fixlist="${fixlist}
#
- # Fix 79: Systypes
+ # Fix 81: Systypes
#
case "$file" in ./sys/types.h | \
./stdlib.h | \
#
- # Fix 80: Systypes_For_Aix
+ # Fix 82: Systypes_For_Aix
#
case "$file" in ./sys/types.h )
- if ( test -n "`egrep 'typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t' $file`"
+ if ( test -n "`egrep 'typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t' $file`" -a \
+ -z "`egrep '_GCC_SIZE_T' $file`"
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
systypes_for_aix"
#
- # Fix 81: Sysv68_String
+ # Fix 83: Sysv68_String
#
case "$file" in ./string.h )
fixlist="${fixlist}
#
- # Fix 82: Sysz_Stdlib_For_Sun
+ # Fix 84: Sysz_Stdlib_For_Sun
#
case "$file" in ./stdlib.h )
case "$target_canonical" in *-sun-* | \
#
- # Fix 83: Sysz_Stdtypes_For_Sun
+ # Fix 85: Sysz_Stdtypes_For_Sun
#
case "$file" in ./sys/stdtypes.h )
fixlist="${fixlist}
#
- # Fix 84: Tinfo_Cplusplus
+ # Fix 86: Tinfo_Cplusplus
#
case "$file" in ./tinfo.h )
fixlist="${fixlist}
#
- # Fix 85: Ultrix_Ansi_Compat
+ # Fix 87: Ultrix_Ansi_Compat
#
case "$file" in ./ansi_compat.h )
if ( test -n "`egrep 'ULTRIX' $file`"
#
- # Fix 86: Ultrix_Atof_Param
+ # Fix 88: Ultrix_Atof_Param
#
case "$file" in ./math.h )
fixlist="${fixlist}
#
- # Fix 87: Ultrix_Const
+ # Fix 89: Ultrix_Const
#
case "$file" in ./stdio.h )
fixlist="${fixlist}
#
- # Fix 88: Ultrix_Ifdef
+ # Fix 90: Ultrix_Ifdef
#
case "$file" in ./sys/file.h )
if ( test -n "`egrep '#ifdef KERNEL' $file`"
#
- # Fix 89: Ultrix_Nested_Cmnt
+ # Fix 91: Ultrix_Nested_Cmnt
#
case "$file" in ./rpc/svc.h )
fixlist="${fixlist}
#
- # Fix 90: Ultrix_Static
+ # Fix 92: Ultrix_Static
#
case "$file" in ./machine/cpu.h )
if ( test -n "`egrep '#include \"r[34]_cpu' $file`"
#
- # Fix 91: Undefine_Null
+ # Fix 93: Undefine_Null
#
if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[ ]' $file`" -a \
-z "`egrep '#[ ]*(ifn|un)def[ ]*[ ]NULL($|[ ])' $file`"
#
- # Fix 92: Va_I960_Macro
+ # Fix 94: Va_I960_Macro
#
case "$file" in ./arch/i960/archI960.h )
if ( test -n "`egrep '__(vsiz|vali|vpad|alignof__)' $file`"
#
- # Fix 93: Void_Null
+ # Fix 95: Void_Null
#
case "$file" in ./curses.h | \
./dbm.h | \
#
- # Fix 94: Vxworks_Gcc_Problem
+ # Fix 96: Vxworks_Gcc_Problem
#
case "$file" in ./types/vxTypesBase.h )
if ( test -n "`egrep '__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__' $file`"
#
- # Fix 95: Vxworks_Needs_Vxtypes
+ # Fix 97: Vxworks_Needs_Vxtypes
#
case "$file" in ./time.h )
if ( test -n "`egrep 'uint_t[ ][ ]*_clocks_per_sec' $file`"
#
- # Fix 96: Vxworks_Needs_Vxworks
+ # Fix 98: Vxworks_Needs_Vxworks
#
case "$file" in ./sys/stat.h )
if ( test -n "`egrep '#[ ]define[ ][ ]*__INCstath' $file`" -a \
#
- # Fix 97: Vxworks_Time
+ # Fix 99: Vxworks_Time
#
case "$file" in ./time.h )
if ( test -n "`egrep 'VOIDFUNCPTR' $file`" -a \
#
- # Fix 98: X11_Class
+ # Fix 100: X11_Class
#
case "$file" in ./X11/ShellP.h )
if ( test -z "`egrep '__cplusplus' $file`"
then infile=$file
else infile=${DESTDIR}/$file ; fi
- sed -e '/char [*]class;/i\
+ sed -e '/char \*class;/i\
#ifdef __cplusplus\
char *c_class;\
#else
' \
- -e '/char [*]class;/a\
+ -e '/char \*class;/a\
#endif
' \
< $infile > ${DESTDIR}/$file.
#
- # Fix 99: X11_Class_Usage
+ # Fix 101: X11_Class_Usage
#
case "$file" in ./Xm/BaseClassI.h )
if ( test -z "`egrep '__cplusplus' $file`"
#
- # Fix 100: X11_New
+ # Fix 102: X11_New
#
case "$file" in ./Xm/Traversal.h )
if ( test -z "`egrep '__cplusplus' $file`"
#
- # Fix 101: X11_Sprintf
+ # Fix 103: X11_Sprintf
#
case "$file" in ./X11*/Xmu.h )
fixlist="${fixlist}
mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
;; # case end for file name test
esac
+
+
+ #
+ # Fix 104: Zzz_Ki_Iface
+ #
+ case "$file" in ./sys/ki_iface.h )
+ if ( test -n "`egrep 'These definitions are for HP Internal developers' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ zzz_ki_iface"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+ ( echo "Removing incorrect fix to HP-UX <$file>" >&2
+rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+cat > /dev/null ) < $infile > ${DESTDIR}/$file.
+
+ # Shell scripts have the potential of removing the output
+ # We interpret that to mean the file is not to be altered
+ #
+ if test ! -f ${DESTDIR}/$file.
+ then continue ; fi
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 105: Zzz_Ki
+ #
+ case "$file" in ./sys/ki.h )
+ if ( test -n "`egrep '11.00 HP-UX LP64' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ zzz_ki"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+ ( echo "Removing incorrect fix to HP-UX <$file>" >&2
+rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+cat > /dev/null ) < $infile > ${DESTDIR}/$file.
+
+ # Shell scripts have the potential of removing the output
+ # We interpret that to mean the file is not to be altered
+ #
+ if test ! -f ${DESTDIR}/$file.
+ then continue ; fi
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 106: Zzz_Ki_Calls
+ #
+ case "$file" in ./sys/ki_calls.h )
+ if ( test -n "`egrep 'KI_MAX_PROCS is an arbitrary number' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ zzz_ki_calls"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+ ( echo "Removing incorrect fix to HP-UX <$file>" >&2
+rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+cat > /dev/null ) < $infile > ${DESTDIR}/$file.
+
+ # Shell scripts have the potential of removing the output
+ # We interpret that to mean the file is not to be altered
+ #
+ if test ! -f ${DESTDIR}/$file.
+ then continue ; fi
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 107: Zzz_Ki_Defs
+ #
+ case "$file" in ./sys/ki_defs.h )
+ if ( test -n "`egrep 'Kernel Instrumentation Definitions' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ zzz_ki_defs"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+ ( echo "Removing incorrect fix to HP-UX <$file>" >&2
+rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+cat > /dev/null ) < $infile > ${DESTDIR}/$file.
+
+ # Shell scripts have the potential of removing the output
+ # We interpret that to mean the file is not to be altered
+ #
+ if test ! -f ${DESTDIR}/$file.
+ then continue ; fi
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
+
+
+ #
+ # Fix 108: Zzz_Time
+ #
+ case "$file" in ./sys/time.h )
+ if ( test -n "`egrep 'For CASPEC, look in' $file`"
+ ) > /dev/null 2>&1 ; then
+ fixlist="${fixlist}
+ zzz_time"
+ if [ ! -r ${DESTDIR}/$file ]
+ then infile=$file
+ else infile=${DESTDIR}/$file ; fi
+ ( echo "Removing incorrect fix to HP-UX <$file>" >&2
+rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+cat > /dev/null ) < $infile > ${DESTDIR}/$file.
+
+ # Shell scripts have the potential of removing the output
+ # We interpret that to mean the file is not to be altered
+ #
+ if test ! -f ${DESTDIR}/$file.
+ then continue ; fi
+
+ mv -f ${DESTDIR}/$file. ${DESTDIR}/$file
+ fi # end of selection 'if'
+ ;; # case end for file name test
+ esac
# IF the output has been removed OR it is unchanged,
# THEN ensure the output is gone
# ELSE look for local directory include syntax