• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1   /*
2      Test the definition of siginfo_t.
3    */
4 
5 #include <signal.h>
6 #include <sys/types.h>
7 
8 static siginfo_t this_type_should_exist, t;
9 static int tsigno;
10 static int terrno;
11 static int tcode;
12 static pid_t tpid;
13 static uid_t tuid;
14 static void *taddr;
15 static int tstatus;
16 static long tband;
17 static union sigval tvalue;
18 
dummyfcn(void)19 static int 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