Searched refs:nset (Results 1 - 25 of 26) sorted by relevance

12

/netbsd-6-1-5-RELEASE/tests/lib/libpthread/
H A Dt_siglongjmp.c76 sigset_t nset; local
85 sigemptyset(&nset);
86 sigaddset(&nset, SIGUSR1);
87 PTHREAD_REQUIRE(pthread_sigmask(SIG_SETMASK, &nset, NULL));
97 PTHREAD_REQUIRE(pthread_sigmask(0, NULL, &nset));
99 ATF_REQUIRE_EQ_MSG(sigismember(&nset, SIGSEGV), 0, "SIGSEGV set");
100 ATF_REQUIRE_EQ_MSG(sigismember(&nset, SIGUSR2), 0, "SIGUSR2 set");
101 ATF_REQUIRE_MSG(sigismember(&nset, SIGUSR1), "SIGUSR1 not set");
H A Dt_sigmask.c69 sigset_t nset; local
75 sigemptyset(&nset);
76 sigaddset(&nset, SIGFPE);
77 pthread_sigmask(SIG_BLOCK, &nset, NULL);
/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dmime_child.c96 prepare_pipe(sigset_t *nset, int p[2]) argument
107 (void)sigemptyset(nset);
108 (void)sigaddset(nset, SIGINT);
109 (void)sigaddset(nset, SIGPIPE);
110 (void)sigaddset(nset, SIGHUP);
111 (void)sigaddset(nset, SIGTSTP);
112 (void)sigaddset(nset, SIGTTOU);
113 (void)sigaddset(nset, SIGTTIN);
122 sigset_t nset; local
143 if (prepare_pipe(&nset,
180 sigset_t nset; local
[all...]
H A Dsig.c132 sigset_t nset; local
137 (void)sigfillset(&nset);
138 (void)sigprocmask(SIG_SETMASK, &nset, &oset);
158 (void)sigprocmask(SIG_SETMASK, &nset, NULL);
168 sigset_t nset; local
173 (void)sigemptyset(&nset);
174 (void)sigaddset(&nset, signo);
175 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
190 sigset_t nset; local
200 (void)sigemptyset(&nset);
217 sigset_t nset; local
257 sigset_t nset; local
343 sigset_t nset; local
372 sigset_t nset; local
[all...]
H A Ddotlock.c137 sigset_t nset, oset; local
140 (void)sigemptyset(&nset);
141 (void)sigaddset(&nset, SIGHUP);
142 (void)sigaddset(&nset, SIGINT);
143 (void)sigaddset(&nset, SIGQUIT);
144 (void)sigaddset(&nset, SIGTERM);
145 (void)sigaddset(&nset, SIGTTIN);
146 (void)sigaddset(&nset, SIGTTOU);
147 (void)sigaddset(&nset, SIGTSTP);
148 (void)sigaddset(&nset, SIGCHL
[all...]
H A Dpopen.c160 prepare_child(sigset_t *nset, int infd, int outfd) argument
179 if (nset != NULL) {
181 if (sigismember(nset, i))
184 if (!sigismember(nset, SIGINT))
196 * "nset" contains the signals to ignore in the new process.
197 * SIGINT is enabled unless it's in "nset".
200 start_commandv(const char *cmd, sigset_t *nset, int infd, int outfd, argument
219 prepare_child(nset, infd, outfd);
229 start_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...) argument
235 r = start_commandv(cmd, nset, inf
246 sigset_t nset; local
320 sigset_t nset, oset; local
361 sigset_t nset, oset; local
441 run_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...) argument
520 sigset_t nset, oset; local
[all...]
H A Dsend.c627 sigset_t nset; local
628 (void)sigemptyset(&nset);
629 (void)sigaddset(&nset, SIGHUP);
630 (void)sigaddset(&nset, SIGINT);
631 (void)sigaddset(&nset, SIGQUIT);
632 (void)sigaddset(&nset, SIGTSTP);
633 (void)sigaddset(&nset, SIGTTIN);
634 (void)sigaddset(&nset, SIGTTOU);
635 prepare_child(&nset, fileno(mtf), -1);
H A Dnames.c326 sigset_t nset; local
337 (void)sigemptyset(&nset);
338 (void)sigaddset(&nset, SIGHUP);
339 (void)sigaddset(&nset, SIGINT);
340 (void)sigaddset(&nset, SIGQUIT);
341 pid = start_command(shellcmd, &nset,
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dgetpass.c65 sigset_t oset, nset; local
73 sigemptyset(&nset);
74 sigaddset(&nset, SIGINT);
75 sigaddset(&nset, SIGTSTP);
76 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
H A Dsetmode.c446 BITCMD *nset; local
451 for (nset = set;;) {
453 while ((op = nset->cmd) != '+' && op != '-' && op != 'X') {
454 *set++ = *nset++;
459 for (setbits = clrbits = Xbits = 0;; nset++) {
460 if ((op = nset->cmd) == '-') {
461 clrbits |= nset->bits;
462 setbits &= ~nset->bits;
463 Xbits &= ~nset->bits;
465 setbits |= nset
[all...]
/netbsd-6-1-5-RELEASE/lib/libedit/
H A Dsig.c72 sigset_t nset, oset; local
74 (void) sigemptyset(&nset);
75 (void) sigaddset(&nset, signo);
76 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
117 sigset_t *nset, oset; local
123 nset = &el->el_signal->sig_set;
124 (void) sigemptyset(nset);
125 #define _DO(a) (void) sigaddset(nset, a);
128 (void) sigprocmask(SIG_BLOCK, nset, &oset);
H A Del.c566 sigset_t oset, nset; local
568 (void) sigemptyset(&nset);
569 (void) sigaddset(&nset, SIGWINCH);
570 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
H A Dterminal.c862 sigset_t oset, nset; local
865 (void) sigemptyset(&nset);
866 (void) sigaddset(&nset, SIGWINCH);
867 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
/netbsd-6-1-5-RELEASE/sys/net/npf/
H A Dnpf_conf.c80 npf_ruleset_t *rlset, *nset; local
92 nset = npf_ruleset_create(0);
93 npf_config_reload(dict, rlset, tset, nset, rpset, true);
122 npf_tableset_t *tset, npf_ruleset_t *nset, npf_rprocset_t *rpset,
130 nc->n_nat_rules = nset;
144 npf_ruleset_natreload(nset, onc->n_nat_rules);
121 npf_config_reload(prop_dictionary_t dict, npf_ruleset_t *rset, npf_tableset_t *tset, npf_ruleset_t *nset, npf_rprocset_t *rpset, bool flush) argument
H A Dnpf_ctl.c354 npf_mk_natlist(npf_ruleset_t *nset, prop_array_t natlist, argument
388 npf_ruleset_insert(nset, rl);
397 np = npf_nat_newpolicy(natdict, nset);
426 npf_ruleset_t *nset = NULL; local
453 nset = npf_ruleset_create(nitems);
454 error = npf_mk_natlist(nset, natlist, errdict);
491 npf_config_reload(npf_dict, rlset, tblset, nset, rpset, flush);
500 nset = NULL;
505 KASSERT(error == 0 || (nset || rpset || rlset || tblset));
506 if (nset) {
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dreadpassphrase.c55 sigset_t oset, nset; local
81 sigemptyset(&nset);
82 sigaddset(&nset, SIGINT);
83 sigaddset(&nset, SIGTSTP);
84 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
H A Dserverloop.c786 sigset_t oset, nset; local
790 sigemptyset(&nset);
791 sigaddset(&nset, SIGCHLD);
792 sigprocmask(SIG_BLOCK, &nset, &oset);
/netbsd-6-1-5-RELEASE/external/bsd/flex/dist/
H A Ddfa.c388 int *nset, *dset; local
411 nset = allocate_integer_array (current_max_dfa_size);
584 nset[numstates] = scset[(i / 2) + 1];
586 nset[numstates] =
589 nset = epsclosure (nset, &numstates, accset, &nacc,
592 if (snstods (nset, numstates, accset, nacc, hashval, &ds)) {
598 check_trailing_context (nset, numstates,
604 if (!snstods (nset, 0, accset, 0, 0, &end_of_buffer_state))
639 sym, nset);
[all...]
/netbsd-6-1-5-RELEASE/tests/lib/libc/sys/
H A Dt_select.c89 sigset_t set, oset, nset; local
90 char obuf[sizeof(oset) + 3], nbuf[sizeof(nset) + 3];
123 if (sigprocmask(SIG_BLOCK, NULL, &nset) == -1)
125 if (memcmp(&oset, &nset, sizeof(oset)) != 0)
128 prmask(&nset, nbuf, sizeof(nbuf)),
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/servers/slapd/
H A Dsets.c380 BerVarray vals, nset; local
396 nset = cp->set_op->o_tmpcalloc( 1, sizeof( struct berval ), cp->set_op->o_tmpmemctx );
397 if ( nset == NULL ) {
404 nset = slap_set_join( cp, nset, '|', vals );
410 for ( i = 0; !BER_BVISNULL( &nset[ i ] ); i++ ) {
411 vals = gatherer( cp, &nset[ i ], desc );
413 nset = slap_set_join( cp, nset, '|', vals );
414 if ( nset
430 BerVarray nset, vals; local
494 BerVarray nset; local
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/sup/source/
H A Dsupcmisc.c348 sigset_t nset; local
351 sigemptyset(&nset);
352 sigaddset(&nset, SIGHUP);
353 sigaddset(&nset, SIGINT);
354 sigaddset(&nset, SIGTERM);
355 sigaddset(&nset, SIGQUIT);
356 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
H A Dsupfilesrv.c381 sigset_t nset, oset; local
454 sigemptyset(&nset);
455 sigaddset(&nset, SIGCHLD);
456 sigprocmask(SIG_BLOCK, &nset, &oset);
/netbsd-6-1-5-RELEASE/lib/libutil/
H A Dttymsg.c71 sigset_t nset; local
183 sigfillset(&nset);
184 (void)sigprocmask(SIG_UNBLOCK, &nset, NULL);
/netbsd-6-1-5-RELEASE/usr.bin/rsh/
H A Drsh.c95 sigset_t oset, nset; local
262 (void)sigemptyset(&nset);
264 (void)sigaddset(&nset, sigs[i]);
266 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
/netbsd-6-1-5-RELEASE/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_proc.c954 sigset_t nset, oset; local
964 (void) sigfillset(&nset);
965 (void) sigdelset(&nset, SIGABRT); /* unblocked for assert() */
967 (void) sigdelset(&nset, SIGCANCEL); /* see dt_proc_destroy() */
969 (void) sigdelset(&nset, SIGUSR1); /* see dt_proc_destroy() */
975 (void) pthread_sigmask(SIG_SETMASK, &nset, &oset);

Completed in 235 milliseconds

12