From: <ro...@us...> - 2004-01-20 07:07:22
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/sigrelse In directory sc8-pr-cvs1:/tmp/cvs-serv20554/testcases/kernel/syscalls/sigrelse Modified Files: sigrelse01.c Log Message: Applied patch from Marcus Meissner: ===================================== Initial Comment: this patch has the necessary fixes to compile with gcc 3.4. Ciao, Marcus ===================================== Index: sigrelse01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/sigrelse/sigrelse01.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- sigrelse01.c 25 Sep 2003 15:44:20 -0000 1.4 +++ sigrelse01.c 20 Jan 2004 07:07:12 -0000 1.5 @@ -409,7 +409,6 @@ int sig; /* signal value */ int exit_val; /* exit value to send to parent */ char note[MAXMESG]; /* message buffer for pipe */ - extern int sig_caught; /* when TRUE, causes wait_a_while() to return */ int setup_sigs(), write_pipe(), set_timeout(); void handler(), wait_a_while(), clear_timeout(); char *str; @@ -592,10 +591,6 @@ { static int s = 0; /* semaphore so that we don't handle 2 */ /* sigs at once */ - extern int sig_array[]; /* array of counters for signals */ - extern int sig_caught; /* flag telling wait_a_while() to */ - /* stop waiting */ - #if DEBUG > 1 printf("child: handler phase%d: caught signal %d.\n", phase, sig); #endif @@ -744,8 +739,6 @@ wait_a_while() { long btime, time(); - extern int sig_caught; /* TRUE if we are done waiting */ - /* for sig to be caught */ btime = time((long *) 0); while (time((long *) 0) - btime < (long) TIMEOUT) { @@ -764,8 +757,6 @@ static void getout() { - extern int pid; /* process id of child */ - if ( pid > 0 ) { if (kill(pid, SIGKILL) < 0) { (void) sprintf(mesg, |