From f2aed5195f2dfeb1aa72883f231f6a2036302cc5 Mon Sep 17 00:00:00 2001 From: rms Date: Wed, 7 Oct 1992 21:58:26 +0000 Subject: [PATCH] (): Fix types of SIG_DFL, SIG_ERR, SIG_IGN, and SIG_HOLD. (): Turn definitions of stat, lstat, fstat, and mknod into ANSI syntax and add __ to variables used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2362 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fixinc.svr4 | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index fa0bae0144b..cf04a2c4761 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -501,6 +501,7 @@ EOF fi # Add a #define of _SIGACTION_ into . +# Also fix types of SIG_DFL, SIG_ERR, SIG_IGN, and SIG_HOLD. file=sys/signal.h base=`basename $file` @@ -522,6 +523,7 @@ if [ \! -z "$file_to_fix" ]; then #define _SIGACTION_ struct sigaction { . + 1,\$s/(void *(\*)())/(void (*)(int))/ wq EOF if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ @@ -860,6 +862,64 @@ if [ \! -z "$file_to_fix" ]; then fi fi +# Convert functions to prototype form, and fix arg names in . + +file=sys/stat.h +base=`basename $file` +if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file +else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi +fi +if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + cp $file_to_fix /tmp/$base + chmod +w /tmp/$base + ex /tmp/$base <