inclhack.def: Add missing declaration of getpagesize() to unistd.h on Solaris 2.5.1.
* fixinc/inclhack.def: Add missing declaration of getpagesize() to unistd.h on Solaris 2.5.1. Fix prototype of recv() and send() in sys/socket.h on Solaris 2.5.1 and 2.6. * fixinc/tests/base/unistd.h: Add solaris_unistd fix test. * fixinc/tests/base/sys/socket.h: Add solaris_socket test. * fixinc/check.tpl: Use 'diff -c', not 'diff -u'. * fixinc/fixincl.x: Regenerate. From-SVN: r67206
This commit is contained in:
parent
7101ac35a4
commit
6bf1ffe18c
@ -1,3 +1,16 @@
|
|||||||
|
2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
Bruce Korb <bkorb@gnu.org>
|
||||||
|
Arno Klaassen <arno@heho.snv.jussieu.fr>
|
||||||
|
|
||||||
|
* fixinc/inclhack.def: Add missing declaration of getpagesize()
|
||||||
|
to unistd.h on Solaris 2.5.1.
|
||||||
|
Fix prototype of recv() and send() in sys/socket.h on
|
||||||
|
Solaris 2.5.1 and 2.6.
|
||||||
|
* fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
|
||||||
|
* fixinc/tests/base/sys/socket.h: Add solaris_socket test.
|
||||||
|
* fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
|
||||||
|
* fixinc/fixincl.x: Regenerate.
|
||||||
|
|
||||||
2003-05-27 Jason Merrill <jason@redhat.com>
|
2003-05-27 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
* tree.c (expr_first, expr_length): New fns.
|
* tree.c (expr_first, expr_length): New fns.
|
||||||
@ -6,7 +19,7 @@
|
|||||||
* tree.c (iterative_hash_expr): Hash commutative expressions
|
* tree.c (iterative_hash_expr): Hash commutative expressions
|
||||||
consistently.
|
consistently.
|
||||||
|
|
||||||
2003-05027 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
* tree.h (contains_placeholder_p): Now returns bool.
|
* tree.h (contains_placeholder_p): Now returns bool.
|
||||||
(CONTAINS_PLACEHOLDER_P): New macro.
|
(CONTAINS_PLACEHOLDER_P): New macro.
|
||||||
|
@ -135,7 +135,7 @@ do
|
|||||||
:
|
:
|
||||||
|
|
||||||
else
|
else
|
||||||
${DIFF:-diff} -u $f ${TESTBASE}/$f >&2 || :
|
${DIFF:-diff} -c $f ${TESTBASE}/$f >&2 || :
|
||||||
exitok=false
|
exitok=false
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
*
|
*
|
||||||
* DO NOT EDIT THIS FILE (fixincl.x)
|
* DO NOT EDIT THIS FILE (fixincl.x)
|
||||||
*
|
*
|
||||||
* It has been AutoGen-ed Thursday May 22, 2003 at 10:03:21 AM PDT
|
* It has been AutoGen-ed Wednesday May 28, 2003 at 12:55:57 AM CDT
|
||||||
* 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 Thu May 22 10:03:21 PDT 2003
|
/* DO NOT CVS-MERGE THIS FILE, EITHER Wed May 28 00:55:57 CDT 2003
|
||||||
*
|
*
|
||||||
* You must regenerate it. Use the ./genfixes script.
|
* You must regenerate it. Use the ./genfixes script.
|
||||||
*
|
*
|
||||||
@ -15,7 +15,7 @@
|
|||||||
* certain ANSI-incompatible system header files which are fixed to work
|
* 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.
|
* correctly with ANSI C and placed in a directory that GNU C will search.
|
||||||
*
|
*
|
||||||
* This file contains 152 fixup descriptions.
|
* This file contains 154 fixup descriptions.
|
||||||
*
|
*
|
||||||
* See README for more information.
|
* See README for more information.
|
||||||
*
|
*
|
||||||
@ -3965,6 +3965,42 @@ static const char* apzSolaris_Mutex_Init_2Patch[] = {
|
|||||||
"(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
|
"(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
|
||||||
(char*)NULL };
|
(char*)NULL };
|
||||||
|
|
||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
*
|
||||||
|
* Description of Solaris_Socket fix
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_SocketName[] =
|
||||||
|
"solaris_socket";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* File name selection pattern
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_SocketList[] =
|
||||||
|
"|sys/socket.h|";
|
||||||
|
/*
|
||||||
|
* Machine/OS name selection pattern
|
||||||
|
*/
|
||||||
|
#define apzSolaris_SocketMachs (const char**)NULL
|
||||||
|
|
||||||
|
/*
|
||||||
|
* content selection pattern - do fix if pattern found
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_SocketSelect0[] =
|
||||||
|
"@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
|
||||||
|
|
||||||
|
#define SOLARIS_SOCKET_TEST_CT 1
|
||||||
|
static tTestDesc aSolaris_SocketTests[] = {
|
||||||
|
{ TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Fix Command Arguments for Solaris_Socket
|
||||||
|
*/
|
||||||
|
static const char* apzSolaris_SocketPatch[] = {
|
||||||
|
"format",
|
||||||
|
"extern int %1(int, %2void *, int, int);",
|
||||||
|
"^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
|
||||||
|
(char*)NULL };
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Description of Solaris_Stdio_Tag fix
|
* Description of Solaris_Stdio_Tag fix
|
||||||
@ -3999,6 +4035,50 @@ static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
|
|||||||
"-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
|
"-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
|
||||||
(char*)NULL };
|
(char*)NULL };
|
||||||
|
|
||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
*
|
||||||
|
* Description of Solaris_Unistd fix
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_UnistdName[] =
|
||||||
|
"solaris_unistd";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* File name selection pattern
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_UnistdList[] =
|
||||||
|
"|unistd.h|";
|
||||||
|
/*
|
||||||
|
* Machine/OS name selection pattern
|
||||||
|
*/
|
||||||
|
#define apzSolaris_UnistdMachs (const char**)NULL
|
||||||
|
|
||||||
|
/*
|
||||||
|
* content selection pattern - do fix if pattern found
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_UnistdSelect0[] =
|
||||||
|
"@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* content bypass pattern - skip fix if pattern found
|
||||||
|
*/
|
||||||
|
tSCC zSolaris_UnistdBypass0[] =
|
||||||
|
"getpagesize";
|
||||||
|
|
||||||
|
#define SOLARIS_UNISTD_TEST_CT 2
|
||||||
|
static tTestDesc aSolaris_UnistdTests[] = {
|
||||||
|
{ TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
|
||||||
|
{ TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Fix Command Arguments for Solaris_Unistd
|
||||||
|
*/
|
||||||
|
static const char* apzSolaris_UnistdPatch[] = {
|
||||||
|
"format",
|
||||||
|
"extern int getpagesize();\n\
|
||||||
|
%0",
|
||||||
|
"^extern (pid_t|int) getpgid\\(.*\\);",
|
||||||
|
(char*)NULL };
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Description of Solaris_Widec fix
|
* Description of Solaris_Widec fix
|
||||||
@ -6018,9 +6098,9 @@ static const char* apzX11_SprintfPatch[] = {
|
|||||||
*
|
*
|
||||||
* List of all fixes
|
* List of all fixes
|
||||||
*/
|
*/
|
||||||
#define REGEX_COUNT 168
|
#define REGEX_COUNT 171
|
||||||
#define MACH_LIST_SIZE_LIMIT 261
|
#define MACH_LIST_SIZE_LIMIT 261
|
||||||
#define FIX_COUNT 152
|
#define FIX_COUNT 154
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enumerate the fixes
|
* Enumerate the fixes
|
||||||
@ -6124,7 +6204,9 @@ typedef enum {
|
|||||||
SCO_UTIME_FIXIDX,
|
SCO_UTIME_FIXIDX,
|
||||||
SOLARIS_MUTEX_INIT_1_FIXIDX,
|
SOLARIS_MUTEX_INIT_1_FIXIDX,
|
||||||
SOLARIS_MUTEX_INIT_2_FIXIDX,
|
SOLARIS_MUTEX_INIT_2_FIXIDX,
|
||||||
|
SOLARIS_SOCKET_FIXIDX,
|
||||||
SOLARIS_STDIO_TAG_FIXIDX,
|
SOLARIS_STDIO_TAG_FIXIDX,
|
||||||
|
SOLARIS_UNISTD_FIXIDX,
|
||||||
SOLARIS_WIDEC_FIXIDX,
|
SOLARIS_WIDEC_FIXIDX,
|
||||||
STATSSWTCH_FIXIDX,
|
STATSSWTCH_FIXIDX,
|
||||||
STDIO_STDARG_H_FIXIDX,
|
STDIO_STDARG_H_FIXIDX,
|
||||||
@ -6671,11 +6753,21 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
|
|||||||
SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
||||||
aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
|
aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
|
||||||
|
|
||||||
|
{ zSolaris_SocketName, zSolaris_SocketList,
|
||||||
|
apzSolaris_SocketMachs,
|
||||||
|
SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
||||||
|
aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
|
||||||
|
|
||||||
{ zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
|
{ zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
|
||||||
apzSolaris_Stdio_TagMachs,
|
apzSolaris_Stdio_TagMachs,
|
||||||
SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
|
SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
|
||||||
aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
|
aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
|
||||||
|
|
||||||
|
{ zSolaris_UnistdName, zSolaris_UnistdList,
|
||||||
|
apzSolaris_UnistdMachs,
|
||||||
|
SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
||||||
|
aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
|
||||||
|
|
||||||
{ zSolaris_WidecName, zSolaris_WidecList,
|
{ zSolaris_WidecName, zSolaris_WidecList,
|
||||||
apzSolaris_WidecMachs,
|
apzSolaris_WidecMachs,
|
||||||
SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
|
||||||
|
@ -2199,6 +2199,26 @@ fix = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Solaris 2.5.1 and 2.6 use an outdated prototype for send & recv
|
||||||
|
* in sys/socket.h. This is corrected in Solaris 7 and up.
|
||||||
|
*/
|
||||||
|
fix = {
|
||||||
|
hackname = solaris_socket;
|
||||||
|
files = sys/socket.h;
|
||||||
|
select = '@\(#\)socket.h' "[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
|
||||||
|
c_fix = format;
|
||||||
|
c_fix_arg = "extern int %1(int, %2void *, int, int);";
|
||||||
|
c_fix_arg = '^extern int (recv|send)\(int,'
|
||||||
|
' (const )*char '
|
||||||
|
'\*, int, int\);';
|
||||||
|
|
||||||
|
test_text = '#ident "@(#)socket.h 1.30 97/01/20 SMI"'"\n"
|
||||||
|
"extern int recv(int, char *, int, int);\n"
|
||||||
|
"extern int send(int, const char *, int, int);";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Solaris 2.8 has what appears to be some gross workaround for
|
* Solaris 2.8 has what appears to be some gross workaround for
|
||||||
* some old version of their c++ compiler. G++ doesn't want it
|
* some old version of their c++ compiler. G++ doesn't want it
|
||||||
@ -2214,6 +2234,25 @@ fix = {
|
|||||||
test_text = "#if\tdefined(__cplusplus) && (__cplusplus < 54321L)";
|
test_text = "#if\tdefined(__cplusplus) && (__cplusplus < 54321L)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sun Solaris 2.5.1 doesn't define 'getpagesize' in <unistd.h>, as is done
|
||||||
|
* on Solaris 2.6 and up.
|
||||||
|
*/
|
||||||
|
fix = {
|
||||||
|
hackname = solaris_unistd;
|
||||||
|
files = unistd.h;
|
||||||
|
select = '@\(#\)unistd.h' "[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
|
||||||
|
bypass = "getpagesize";
|
||||||
|
c_fix = format;
|
||||||
|
c_fix_arg = "extern int getpagesize();\n%0";
|
||||||
|
c_fix_arg = '^extern (pid_t|int) getpgid\(.*\);';
|
||||||
|
test_text = '#ident "@(#)unistd.h 1.33 95/08/28 SMI"'"\n"
|
||||||
|
"extern pid_t getpgid(pid_t);\n"
|
||||||
|
"extern int getpgid();";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* <widec.h> until Solaris 2.5.1 defines macros for a couple of <wchar.h>
|
* <widec.h> until Solaris 2.5.1 defines macros for a couple of <wchar.h>
|
||||||
* functions, breaking their prototypes if that file is included afterwards.
|
* functions, breaking their prototypes if that file is included afterwards.
|
||||||
|
@ -17,3 +17,10 @@ typedef int socklen_t;
|
|||||||
typedef u_int32_t socklen_t;
|
typedef u_int32_t socklen_t;
|
||||||
#endif /* _NO_XOPEN4 && _NO_XOPEN5 */
|
#endif /* _NO_XOPEN4 && _NO_XOPEN5 */
|
||||||
#endif /* IRIX_SOCKLEN_T_CHECK */
|
#endif /* IRIX_SOCKLEN_T_CHECK */
|
||||||
|
|
||||||
|
|
||||||
|
#if defined( SOLARIS_SOCKET_CHECK )
|
||||||
|
#ident "@(#)socket.h 1.30 97/01/20 SMI"
|
||||||
|
extern int recv(int, void *, int, int);
|
||||||
|
extern int send(int, const void *, int, int);
|
||||||
|
#endif /* SOLARIS_SOCKET_CHECK */
|
||||||
|
@ -12,3 +12,12 @@
|
|||||||
#if defined( ALPHA_SBRK_CHECK )
|
#if defined( ALPHA_SBRK_CHECK )
|
||||||
extern void *sbrk(ptrdiff_t increment);
|
extern void *sbrk(ptrdiff_t increment);
|
||||||
#endif /* ALPHA_SBRK_CHECK */
|
#endif /* ALPHA_SBRK_CHECK */
|
||||||
|
|
||||||
|
|
||||||
|
#if defined( SOLARIS_UNISTD_CHECK )
|
||||||
|
#ident "@(#)unistd.h 1.33 95/08/28 SMI"
|
||||||
|
extern int getpagesize();
|
||||||
|
extern pid_t getpgid(pid_t);
|
||||||
|
extern int getpagesize();
|
||||||
|
extern int getpgid();
|
||||||
|
#endif /* SOLARIS_UNISTD_CHECK */
|
||||||
|
Loading…
Reference in New Issue
Block a user