| /openbsd/src/lib/libedit/ |
| D | sig.c | 69 sigset_t nset, oset; in sig_handler() local 74 (void) sigprocmask(SIG_BLOCK, &nset, &oset); in sig_handler() 103 (void) sigprocmask(SIG_SETMASK, &oset, NULL); in sig_handler() 116 sigset_t *nset, oset; in sig_init() local 127 (void) sigprocmask(SIG_BLOCK, nset, &oset); in sig_init() 135 (void) sigprocmask(SIG_SETMASK, &oset, NULL); in sig_init() 160 sigset_t oset; in sig_set() local 167 (void) sigprocmask(SIG_BLOCK, &el->el_signal->sig_set, &oset); in sig_set() 176 (void) sigprocmask(SIG_SETMASK, &oset, NULL); in sig_set() 187 sigset_t oset; in sig_clr() local [all …]
|
| D | el.c | 571 sigset_t oset, nset; in el_resize() local 575 (void) sigprocmask(SIG_BLOCK, &nset, &oset); in el_resize() 581 (void) sigprocmask(SIG_SETMASK, &oset, NULL); in el_resize()
|
| /openbsd/src/regress/sys/kern/signal/sigsuspend/ |
| D | sigsuspend.c | 32 sigset_t set, oset; in main() local 55 if (sigprocmask(SIG_BLOCK, &set, &oset)) in main() 73 if (sigprocmask(SIG_SETMASK, NULL, &oset)) in main() 75 if (!sigismember(&oset, SIGUSR1) || in main() 76 !sigismember(&oset, SIGUSR2)) in main() 102 sigsuspend(&oset); in main() 107 if (sigprocmask(SIG_SETMASK, NULL, &oset)) in main() 109 if (!sigismember(&oset, SIGUSR1) || in main() 110 !sigismember(&oset, SIGUSR2)) in main()
|
| /openbsd/src/regress/lib/libc/sigthr/ |
| D | sigthr_test.c | 22 sigset_t set, oset; in main() local 34 if (sigprocmask(SIG_SETMASK, &set, &oset)) in main() 36 if (sigismember(&oset, SIGTHR)) in main() 38 if (sigprocmask(SIG_BLOCK, NULL, &oset)) in main() 40 if (sigismember(&oset, SIGTHR)) in main()
|
| /openbsd/src/regress/lib/libc/sys/ |
| D | t_select.c | 99 sigset_t set, oset, nset; in child() local 100 char obuf[sizeof(oset) + 3], nbuf[sizeof(nset) + 3]; in child() 115 if (sigprocmask(SIG_BLOCK, NULL, &oset) == -1) in child() 135 if (memcmp(&oset, &nset, sizeof(oset)) != 0) in child() 139 prmask(&oset, obuf, sizeof(obuf))); in child()
|
| /openbsd/src/usr.bin/mail/ |
| D | fio.c | 201 sigset_t oset; in readline() local 217 (void)sigprocmask(SIG_UNBLOCK, &intset, &oset); in readline() 241 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in readline() 332 static sigset_t nset, oset; variable 345 sigprocmask(SIG_BLOCK, &nset, &oset); in holdsigs() 357 sigprocmask(SIG_SETMASK, &oset, NULL); in relsesigs() 364 ignoresig(int sig, struct sigaction *oact, sigset_t *oset) in ignoresig() argument 378 (void)sigprocmask(SIG_UNBLOCK, &nset, oset); in ignoresig() 379 } else if (oset != NULL) in ignoresig() 380 (void)sigprocmask(SIG_BLOCK, NULL, oset); in ignoresig()
|
| D | popen.c | 135 sigset_t nset, oset; in Pclose() local 143 sigprocmask(SIG_BLOCK, &nset, &oset); in Pclose() 145 sigprocmask(SIG_SETMASK, &oset, NULL); in Pclose() 370 sigset_t nset, oset; in wait_child() local 375 sigprocmask(SIG_BLOCK, &nset, &oset); in wait_child() 388 sigprocmask(SIG_SETMASK, &oset, NULL); in wait_child() 402 sigset_t nset, oset; in free_child() local 406 sigprocmask(SIG_BLOCK, &nset, &oset); in free_child() 413 sigprocmask(SIG_SETMASK, &oset, NULL); in free_child()
|
| D | collect.c | 437 sigset_t oset; in mesedit() local 439 (void)ignoresig(SIGINT, &oact, &oset); in mesedit() 446 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in mesedit() 463 sigset_t oset; in mespipe() local 465 (void)ignoresig(SIGINT, &oact, &oset); in mespipe() 496 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in mespipe()
|
| D | cmd3.c | 54 sigset_t oset; in shell() local 56 (void)ignoresig(SIGINT, &oact, &oset); in shell() 62 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in shell() 76 sigset_t oset; in dosh() local 79 (void)ignoresig(SIGINT, &oact, &oset); in dosh() 81 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in dosh()
|
| D | edit.c | 82 sigset_t oset; in edit1() local 106 (void)ignoresig(SIGINT, &oact, &oset); in edit1() 135 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in edit1()
|
| D | cmd1.c | 57 sigset_t oset; in headers() local 80 (void)sigprocmask(SIG_UNBLOCK, &intset, &oset); in headers() 95 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in headers()
|
| D | tty.c | 176 sigset_t oset; in readtty() local 206 (void)sigprocmask(SIG_UNBLOCK, &intset, &oset); in readtty() 234 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in readtty()
|
| D | send.c | 67 sigset_t oset; in sendmessage() local 76 (void)sigprocmask(SIG_UNBLOCK, &intset, &oset); in sendmessage() 249 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in sendmessage()
|
| /openbsd/src/usr.bin/mg/ |
| D | spawn.c | 26 sigset_t oset; in spawncli() local 42 (void)sigprocmask(SIG_SETMASK, NULL, &oset); in spawncli() 44 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in spawncli()
|
| /openbsd/src/lib/libc/stdio/ |
| D | tmpfile.c | 45 sigset_t set, oset; in tmpfile() local 51 (void)sigprocmask(SIG_BLOCK, &set, &oset); in tmpfile() 57 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in tmpfile()
|
| /openbsd/src/lib/libcrypto/arch/arm/ |
| D | armcap.c | 40 sigset_t oset; in OPENSSL_cpuid_setup() local 62 sigprocmask(SIG_SETMASK, &ill_act.sa_mask, &oset); in OPENSSL_cpuid_setup() 86 sigprocmask(SIG_SETMASK, &oset, NULL); in OPENSSL_cpuid_setup()
|
| /openbsd/src/lib/libc/sys/ |
| D | pthread_sigmask.c | 23 pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) in pthread_sigmask() argument 25 return (WRAP(sigprocmask)(how, set, oset) ? errno : 0); in pthread_sigmask()
|
| D | w_sigprocmask.c | 26 WRAP(sigprocmask)(int how, const sigset_t *set, sigset_t *oset) in WRAP() 35 return (sigprocmask(how, set, oset)); in WRAP()
|
| /openbsd/src/regress/sys/kern/signal/sigpthread/ |
| D | sigpthread.c | 52 sigset_t set, oset; variable 141 if (sigprocmask(SIG_BLOCK, &set, &oset) == -1) in main() 145 if (sigaddset(&oset, SIGUSR2) == -1) in main() 267 if (sigsuspend(&oset) != -1 || errno != EINTR) in runner()
|
| /openbsd/src/usr.bin/find/ |
| D | find.c | 154 sigset_t fullset, oset; in find_execute() local 184 (void)sigprocmask(SIG_BLOCK, &fullset, &oset); in find_execute() 186 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in find_execute()
|
| /openbsd/src/usr.bin/lock/ |
| D | lock.c | 215 sigset_t set, oset; in main() local 217 sigprocmask(SIG_BLOCK, &set, &oset); in main() 219 sigprocmask(SIG_SETMASK, &oset, NULL); in main()
|
| /openbsd/src/usr.bin/bc/ |
| D | scan.l | 330 sigset_t oset, nset; 336 sigprocmask(SIG_BLOCK, &nset, &oset); 342 sigprocmask(SIG_SETMASK, &oset, NULL);
|
| /openbsd/src/lib/libc/db/btree/ |
| D | bt_open.c | 382 sigset_t set, oset; in tmp() local 397 (void)sigprocmask(SIG_BLOCK, &set, &oset); in tmp() 400 (void)sigprocmask(SIG_SETMASK, &oset, NULL); in tmp()
|
| /openbsd/src/usr.bin/rdist/ |
| D | child.c | 104 sigset_t set, oset; in removechild() local 108 sigprocmask(SIG_BLOCK, &set, &oset); in removechild() 115 sigprocmask(SIG_SETMASK, &oset, NULL); in removechild()
|
| /openbsd/src/sbin/fsck_ffs/ |
| D | utilities.c | 297 sigset_t oset, nset; in ckfini() local 302 sigprocmask(SIG_BLOCK, &nset, &oset); in ckfini() 307 sigprocmask(SIG_SETMASK, &oset, NULL); in ckfini() 373 sigprocmask(SIG_SETMASK, &oset, NULL); in ckfini()
|