1 /* 2 Test the definition of siginfo_t. 3 */ 4 5 #include <signal.h> 6 #include <sys/types.h> 7 8 siginfo_t this_type_should_exist, t; 9 int tsigno; 10 int terrno; 11 int tcode; 12 pid_t tpid; 13 uid_t tuid; 14 void *taddr; 15 int tstatus; 16 long tband; 17 union sigval tvalue; 18 dummyfcn(void)19int dummyfcn(void) 20 { 21 tsigno = t.si_signo; 22 terrno = t.si_errno; 23 tcode = t.si_code; 24 tpid = t.si_pid; 25 tuid = t.si_uid; 26 taddr = t.si_addr; 27 tstatus = t.si_status; 28 tband = t.si_band; 29 tvalue = t.si_value; 30 31 return 0; 32 } 33