Home | History | Annotate | Download | only in signal_h
      1   /*
      2      Test that 0 is reserved for the null signal.
      3      This test must be executed.
      4    */
      5 
      6 #include <signal.h>
      7 #include <stdio.h>
      8 
      9 int main()
     10 {
     11 	if ((0 == SIGABRT) ||
     12 	    (0 == SIGALRM) ||
     13 	    (0 == SIGBUS) ||
     14 	    (0 == SIGCHLD) ||
     15 	    (0 == SIGCONT) ||
     16 	    (0 == SIGFPE) ||
     17 	    (0 == SIGHUP) ||
     18 	    (0 == SIGILL) ||
     19 	    (0 == SIGINT) ||
     20 	    (0 == SIGKILL) ||
     21 	    (0 == SIGPIPE) ||
     22 	    (0 == SIGQUIT) ||
     23 	    (0 == SIGSEGV) ||
     24 	    (0 == SIGSTOP) ||
     25 	    (0 == SIGTERM) ||
     26 	    (0 == SIGTSTP) ||
     27 	    (0 == SIGTTIN) ||
     28 	    (0 == SIGTTOU) || (0 == SIGUSR1) || (0 == SIGUSR2) ||
     29 #ifdef SIGPOLL
     30 	    (0 == SIGPOLL) ||
     31 #endif
     32 #ifdef SIGPROF
     33 	    (0 == SIGPROF) ||
     34 #endif
     35 	    (0 == SIGSYS) ||
     36 	    (0 == SIGTRAP) ||
     37 	    (0 == SIGURG) ||
     38 	    (0 == SIGVTALRM) || (0 == SIGXCPU) || (0 == SIGXFSZ)) {
     39 		printf("Test FAILED\n");
     40 		return -1;
     41 	} else {
     42 		printf("Test PASSED\n");
     43 		return 0;
     44 	}
     45 }
     46