Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git] / regress / lib / libpthread / sigmask1 / sigmask1.c
blob7f60ff12afe0e4e3a82b6503d446b4331bd18bb7
1 /* $NetBSD:$ */
3 /*
4 * Regression test for pthread_sigmask when SA upcalls aren't started yet.
6 * Written by Christian Limpach <cl@NetBSD.org>, December 2003.
7 * Public domain.
8 */
10 #include <pthread.h>
11 #include <signal.h>
12 #include <unistd.h>
14 #include <sys/resource.h>
16 int
17 main(int argc, char **argv)
19 sigset_t nset;
20 struct rlimit rlim;
22 rlim.rlim_cur = rlim.rlim_max = 0;
23 (void)setrlimit(RLIMIT_CORE, &rlim);
25 sigemptyset(&nset);
26 sigaddset(&nset, SIGFPE);
27 pthread_sigmask(SIG_BLOCK, &nset, NULL);
29 kill(getpid(), SIGFPE);
31 return 0;