test37.c File Reference

#include <sys/types.h>
#include <sys/times.h>
#include <sys/wait.h>
#include <errno.h>
#include <signal.h>
#include <setjmp.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

Include dependency graph for test37.c:

Go to the source code of this file.

Defines

#define ITERATIONS   2
#define SIGS   14
#define MAX_ERROR   4

Functions

 _PROTOTYPE (int main,(int argc, char *argv[]))
 _PROTOTYPE (void test37a,(void))
 _PROTOTYPE (void func1,(int sig))
 _PROTOTYPE (void catch1,(int signo))
 _PROTOTYPE (void catch14,(int signo, int code, struct sigcontext *scp))
 _PROTOTYPE (void wait_for,(int pid))
 _PROTOTYPE (void e,(int n))
int main (int argc, argv)
void test37a ()
void func1 (int sig)
void func2 (int sig)
void test37b ()
void catch1 (int signo)
void catch2 (int signo)
void test37c ()
void catch3 (int signo)
void test37d ()
void catch4 (int signo)
void test37e ()
void catch5 (int signo)
void test37f ()
void sigint_handler (int signo)
void sigpipe_handler (int signo)
void test37g ()
void sighup8 (int signo)
void sigpip8 (int signo)
void sigter8 (int signo)
void test37h ()
void sighup9 (int signo)
void sigter9 (int signo)
void test37i ()
void sighup10 (int signo)
void sigalrm_handler10 (int signo)
void test37j ()
void test37k ()
void test37l ()
void test37m ()
void longjerr ()
void catch14 (int signo, int code, struct sigcontext *scp)
void test37n ()
void catch15 (int signo)
void test37o ()
void clearsigstate ()
void quit ()
void wait_for (pid_t pid)
void e (int n)

Variables

int iteration
int cumsig
int subtest
int errct = 0
int sig1
int sig2
int sigarray [SIGS]
int x
sigset_t glo_vol_set
static int y
static int z
jmp_buf glo_jb


Define Documentation

#define ITERATIONS   2
 

Definition at line 16 of file test37.c.

#define MAX_ERROR   4
 

Definition at line 18 of file test37.c.

#define SIGS   14
 

Definition at line 17 of file test37.c.

Referenced by test37b().


Function Documentation

_PROTOTYPE void  e,
(int n
 

_PROTOTYPE void  wait_for,
(int pid) 
 

_PROTOTYPE void  catch14,
(int signo, int code, struct sigcontext *scp) 
 

_PROTOTYPE void  catch1,
(int signo) 
 

_PROTOTYPE void  func1,
(int sig
 

_PROTOTYPE void  test37a,
(void) 
 

_PROTOTYPE int  main,
(int argc, char *argv[]) 
 

void catch1 int  signo  ) 
 

Definition at line 378 of file test37.c.

void catch14 int  signo,
int  code,
struct sigcontext scp
 

Definition at line 908 of file test37.c.

References e, setjmp, and sigreturn.

void catch15 int  signo  ) 
 

Definition at line 953 of file test37.c.

References e, and glo_jb.

void catch2 int  signo  ) 
 

Definition at line 384 of file test37.c.

References e, NULL, and sigprocmask.

void catch3 int  signo  ) 
 

Definition at line 472 of file test37.c.

References e, getpid, kill, and SIGHUP.

void catch4 int  signo  ) 
 

Definition at line 510 of file test37.c.

References e, NULL, set(), sigaddset, sigemptyset, SIGHUP, SIGINT, SIGPIPE, sigprocmask, and SIGTERM.

void catch5 int  signo  ) 
 

Definition at line 554 of file test37.c.

void clearsigstate  ) 
 

Definition at line 984 of file test37.c.

References _NSIG, i, NULL, SIG_DFL, SIG_IGN, sigfillset, signal(), and sigprocmask.

Referenced by test37a(), test37b(), test37c(), test37d(), test37e(), test37f(), test37g(), test37h(), test37i(), test37j(), test37m(), test37n(), and test37o().

void e int  n  ) 
 

Definition at line 1036 of file test37.c.

References chdir, errct, errno, exit(), fprintf(), MAX_ERROR, perror(), sprintf(), stderr, subtest, and system().

void func1 int  sig  ) 
 

Definition at line 206 of file test37.c.

References sig1.

void func2 int  sig  ) 
 

Definition at line 212 of file test37.c.

References sig2.

void longjerr  ) 
 

Definition at line 896 of file test37.c.

References e.

int main int  argc,
argv 
 

Definition at line 69 of file test37.c.

References atoi, chdir, fflush(), i, iteration, ITERATIONS, m, printf, stdout, sync, system(), test37a(), test37b(), test37c(), test37d(), test37e(), test37f(), test37g(), test37h(), test37i(), test37j(), test37k(), test37l(), test37m(), test37n(), and test37o().

void quit  ) 
 

Definition at line 996 of file test37.c.

References chdir, errct, exit(), printf, and system().

void sigalrm_handler10 int  signo  ) 
 

Definition at line 817 of file test37.c.

void sighup10 int  signo  ) 
 

Definition at line 811 of file test37.c.

void sighup8 int  signo  ) 
 

Definition at line 676 of file test37.c.

void sighup9 int  signo  ) 
 

Definition at line 752 of file test37.c.

void sigint_handler int  signo  ) 
 

Definition at line 606 of file test37.c.

void sigpip8 int  signo  ) 
 

Definition at line 683 of file test37.c.

void sigpipe_handler int  signo  ) 
 

Definition at line 613 of file test37.c.

void sigter8 int  signo  ) 
 

Definition at line 690 of file test37.c.

void sigter9 int  signo  ) 
 

Definition at line 758 of file test37.c.

void test37a  ) 
 

Definition at line 108 of file test37.c.

References clearsigstate(), e, s, SIGABRT, sigaddset, SIGALRM, sigdelset, sigemptyset, sigfillset, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIOT, sigismember, SIGKILL, SIGPIPE, SIGQUIT, SIGSEGV, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2, and subtest.

Referenced by main().

void test37b  ) 
 

Definition at line 218 of file test37.c.

References _NSIG, clearsigstate(), e, EINVAL, errno, getpid, i, kill, NULL, p, s, SIG_DFL, SIG_IGN, sigaction, sigaddset, sigdelset, sigemptyset, sigfillset, SIGHUP, SIGILL, SIGKILL, sigpending, SIGPIPE, sigprocmask, SIGS, SIGSTOP, and subtest.

Referenced by main().

void test37c  ) 
 

Definition at line 394 of file test37.c.

References _NSIG, clearsigstate(), e, errct, exit(), fork, kill, NULL, pid, SIG_DFL, SIG_ERR, SIG_IGN, SIGINT, sigismember, signal(), sigprocmask, SIGTERM, sleep, subtest, and wait_for().

Referenced by main().

void test37d  ) 
 

Definition at line 485 of file test37.c.

References clearsigstate(), e, getpid, kill, NULL, sigaction, SIGHUP, and subtest.

Referenced by main().

void test37e  ) 
 

Definition at line 525 of file test37.c.

References clearsigstate(), e, getpid, kill, NULL, set(), sigaction, sigaddset, sigemptyset, SIGHUP, SIGINT, SIGPIPE, sigprocmask, SIGTERM, and subtest.

Referenced by main().

void test37f  ) 
 

Definition at line 560 of file test37.c.

References clearsigstate(), e, EINTR, errct, errno, exit(), fork, getppid, kill, NULL, pid, r, set(), sigaction, sigemptyset, SIGINT, sigsuspend, sleep, subtest, and wait_for().

Referenced by main().

void test37g  ) 
 

Definition at line 620 of file test37.c.

References clearsigstate(), e, EINTR, errct, errno, exit(), fork, getppid, kill, NULL, pid, r, set(), sigaction, sigaddset, sigemptyset, SIGINT, SIGPIPE, sigsuspend, sleep, subtest, and wait_for().

Referenced by main().

void test37h  ) 
 

Definition at line 697 of file test37.c.

References clearsigstate(), e, EINTR, errct, errno, exit(), fork, getppid, kill, NULL, pid, r, set(), sigaction, sigaddset, sigemptyset, SIGHUP, SIGPIPE, sigsuspend, SIGTERM, sleep, subtest, and wait_for().

Referenced by main().

void test37i  ) 
 

Definition at line 764 of file test37.c.

References clearsigstate(), e, getpid, kill, NULL, set(), sigaction, sigaddset, sigemptyset, SIGHUP, sigprocmask, SIGTERM, and subtest.

Referenced by main().

void test37j  ) 
 

Definition at line 823 of file test37.c.

References alarm, clearsigstate(), e, getpid, kill, NULL, set(), sigaction, sigaddset, SIGALRM, sigemptyset, SIGHUP, sigpending, sigprocmask, sleep, and subtest.

Referenced by main().

void test37k  ) 
 

Definition at line 861 of file test37.c.

References subtest.

Referenced by main().

void test37l  ) 
 

Definition at line 865 of file test37.c.

References subtest.

Referenced by main().

void test37m  ) 
 

Definition at line 876 of file test37.c.

References clearsigstate(), e, NULL, setjmp, sigprocmask, and subtest.

Referenced by main().

void test37n  ) 
 

Definition at line 925 of file test37.c.

References _PROTOTYPE, clearsigstate(), e, getpid, kill, NULL, sigaction, SIGSEGV, and subtest.

Referenced by main().

void test37o  ) 
 

Definition at line 962 of file test37.c.

References clearsigstate(), e, getpid, glo_jb, k, kill, NULL, setjmp, sigaction, SIGALRM, and subtest.

Referenced by main().

void wait_for pid_t  pid  ) 
 

Definition at line 1011 of file test37.c.

References e, errno, r, status, and wait.

Referenced by test37c(), test37f(), test37g(), and test37h().


Variable Documentation

int cumsig
 

Definition at line 20 of file test37.c.

int errct = 0
 

Definition at line 20 of file test37.c.

jmp_buf glo_jb
 

Definition at line 951 of file test37.c.

Referenced by catch15(), and test37o().

sigset_t glo_vol_set
 

Definition at line 376 of file test37.c.

int iteration
 

Definition at line 20 of file test37.c.

int sig1
 

Definition at line 20 of file test37.c.

Referenced by func1().

int sig2
 

Definition at line 20 of file test37.c.

Referenced by func2().

int sigarray[SIGS]
 

Initial value:

Definition at line 22 of file test37.c.

int subtest
 

Definition at line 20 of file test37.c.

int x
 

Definition at line 375 of file test37.c.

Referenced by _ext_str_cvt(), add(), add_exponent(), add_ext(), Arith(), Assign(), bottom_line(), change(), Cond(), delete(), DN(), Do(), DPC(), encrypt(), escape(), f(), file_insert(), For(), format(), getfval(), getLong(), GOTO(), inindex(), initialize(), LF(), lookup(), main(), makepathtables(), Mathfun(), move(), option(), P1stat(), P2stat(), print_cycle(), pushname(), RD(), read_string(), RT(), S(), SD(), show(), source(), Strfun(), SU(), timing_dmp(), topo(), transformline(), transpose(), unzlocal_getLong(), unzlocal_getShort(), UP(), upd_curs(), update(), user_interface(), v_popup(), waddch(), wclrtoeol(), wdelch(), While(), winsch(), ziplocal_getLong(), and ziplocal_getShort().

int y [static]
 

Definition at line 469 of file test37.c.

int z [static]
 

Definition at line 470 of file test37.c.

Referenced by _log(), alloc_zone(), cxsize(), eat_dir(), eat_file(), ed_case(), enter_dir(), get_fileblock(), log(), main(), new_block(), r_vir2abs(), read_map(), readline(), rootdir(), sinh_cosh(), update(), and write_map().


Generated on Fri Apr 14 23:22:23 2006 for minix by  doxygen 1.4.6