Home
last modified time | relevance | path

Searched refs:nact (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsignal.c65 struct sigaction nact; in signal() local
70 nact.sa_handler = func; in signal()
71 nact.sa_flags = SA_RESETHAND|SA_NODEFER; in signal()
72 (void) sigemptyset(&nact.sa_mask); in signal()
79 nact.sa_flags |= SA_NOCLDSTOP; in signal()
81 nact.sa_flags |= SA_NOCLDWAIT; in signal()
85 nact.sa_flags |= SA_RESTART; in signal()
87 if (sigaction(sig, &nact, &oact) < 0) in signal()
183 struct sigaction nact; in sigset() local
201 nact.sa_handler = func; in sigset()
[all …]
H A Dbsd_signal.c47 struct sigaction nact; in bsd_signal() local
52 nact.sa_handler = func; in bsd_signal()
53 nact.sa_flags = SA_RESTART; in bsd_signal()
54 (void) sigemptyset(&nact.sa_mask); in bsd_signal()
55 (void) sigaddset(&nact.sa_mask, sig); in bsd_signal()
57 if (sigaction(sig, &nact, &oact) == -1) in bsd_signal()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgexecv.c144 struct sigaction nact; in pkgexecv() local
224 nact.sa_handler = sig_trap; in pkgexecv()
225 nact.sa_flags = SA_RESTART; in pkgexecv()
226 (void) sigemptyset(&nact.sa_mask); in pkgexecv()
228 if (sigaction(SIGINT, &nact, &oact) < 0) { in pkgexecv()
236 nact.sa_handler = sig_trap; in pkgexecv()
237 nact.sa_flags = SA_RESTART; in pkgexecv()
238 (void) sigemptyset(&nact.sa_mask); in pkgexecv()
240 if (sigaction(SIGHUP, &nact, &oact) < 0) { in pkgexecv()
281 nact.sa_handler = funcSigint; in pkgexecv()
[all …]
H A Dpkgtrans.c494 struct sigaction nact; in pkgtrans() local
508 nact.sa_handler = sigtrap; in pkgtrans()
509 nact.sa_flags = SA_RESTART; in pkgtrans()
510 (void) sigemptyset(&nact.sa_mask); in pkgtrans()
512 if (sigaction(SIGINT, &nact, &oact) < 0) { in pkgtrans()
520 nact.sa_handler = sigtrap; in pkgtrans()
521 nact.sa_flags = SA_RESTART; in pkgtrans()
522 (void) sigemptyset(&nact.sa_mask); in pkgtrans()
524 if (sigaction(SIGHUP, &nact, &oact) < 0) { in pkgtrans()
556 nact.sa_handler = sigintHandler; in pkgtrans()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dexit.c94 struct sigaction nact; in handler() local
100 nact.sa_handler = SIG_IGN; in handler()
101 nact.sa_flags = 0; in handler()
102 (void) sigemptyset(&nact.sa_mask); in handler()
106 (void) sigaction(sigs->signo, &nact, NULL); in handler()
138 struct sigaction nact, oact; in ld_init_sighandler() local
162 nact.sa_sigaction = handler; in ld_init_sighandler()
163 (void) sigemptyset(&nact.sa_mask); in ld_init_sighandler()
168 nact.sa_flags = SA_SIGINFO; in ld_init_sighandler()
170 nact.sa_flags |= (SA_RESETHAND | SA_NODEFER); in ld_init_sighandler()
[all …]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c676 struct sigaction nact; in _z_zone_exec() local
876 nact.sa_handler = _z_sig_trap; in _z_zone_exec()
877 nact.sa_flags = SA_RESTART; in _z_zone_exec()
878 (void) sigemptyset(&nact.sa_mask); in _z_zone_exec()
880 if (sigaction(SIGINT, &nact, &oact) < 0) { in _z_zone_exec()
888 nact.sa_handler = _z_sig_trap; in _z_zone_exec()
889 nact.sa_flags = SA_RESTART; in _z_zone_exec()
890 (void) sigemptyset(&nact.sa_mask); in _z_zone_exec()
892 if (sigaction(SIGHUP, &nact, &oact) < 0) { in _z_zone_exec()
1030 nact.sa_handler = funcSigint; in _z_zone_exec()
[all …]
H A Dzones.c2043 struct sigaction nact; in z_zone_exec() local
2188 nact.sa_handler = _z_sig_trap; in z_zone_exec()
2189 nact.sa_flags = SA_RESTART; in z_zone_exec()
2190 (void) sigemptyset(&nact.sa_mask); in z_zone_exec()
2192 if (sigaction(SIGINT, &nact, &oact) < 0) { in z_zone_exec()
2200 nact.sa_handler = _z_sig_trap; in z_zone_exec()
2201 nact.sa_flags = SA_RESTART; in z_zone_exec()
2202 (void) sigemptyset(&nact.sa_mask); in z_zone_exec()
2204 if (sigaction(SIGHUP, &nact, &oact) < 0) { in z_zone_exec()
2274 nact.sa_handler = funcSigint; in z_zone_exec()
[all …]
/illumos-gate/usr/src/cmd/csh/i386/
H A Dsignal.c159 struct sigaction nact; in sigvec() local
172 _sigaction(sig, (struct sigaction *)0, &nact); in sigvec()
176 nact.sa_handler = (void (*)())sigvechandler; in sigvec()
178 nact.sa_handler = nhandler; in sigvec()
179 mask2set(nvec->sv_mask, &nact.sa_mask); in sigvec()
183 nact.sa_flags = SA_SIGINFO; in sigvec()
185 nact.sa_flags |= SA_RESTART; in sigvec()
187 nact.sa_flags |= SA_RESETHAND; in sigvec()
189 nact.sa_flags |= SA_ONSTACK; in sigvec()
190 nactp = &nact; in sigvec()
/illumos-gate/usr/src/cmd/csh/sparc/
H A Dsignal.c183 struct sigaction nact; in sigvec() local
196 _sigaction(sig, (struct sigaction *)0, &nact); in sigvec()
200 nact.sa_handler = (void (*)())sigvechandler; in sigvec()
202 nact.sa_handler = nhandler; in sigvec()
203 mask2set(nvec->sv_mask, &nact.sa_mask); in sigvec()
207 nact.sa_flags = SA_SIGINFO; in sigvec()
209 nact.sa_flags |= SA_RESTART; in sigvec()
211 nact.sa_flags |= SA_RESETHAND; in sigvec()
213 nact.sa_flags |= SA_ONSTACK; in sigvec()
214 nactp = &nact; in sigvec()
/illumos-gate/usr/src/ucblib/libucb/i386/sys/
H A Dsignal.c258 struct sigaction nact; in ucbsigvec() local
276 _sigaction(sig, (struct sigaction *)0, &nact); in ucbsigvec()
287 nact.sa_handler = (void (*)())ucbsigvechandler; in ucbsigvec()
289 nact.sa_handler = nhandler; in ucbsigvec()
291 mask2set(nvec->sv_mask, &nact.sa_mask); in ucbsigvec()
293 nact.sa_handler = SIG_DFL; in ucbsigvec()
294 nact.sa_flags = SA_SIGINFO; in ucbsigvec()
296 nact.sa_flags |= SA_RESTART; in ucbsigvec()
298 nact.sa_flags |= SA_RESETHAND; in ucbsigvec()
300 nact.sa_flags |= SA_ONSTACK; in ucbsigvec()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Drfc931.c88 struct sigaction nact, oact; local
120 nact.sa_handler = timeout;
121 nact.sa_flags = 0;
122 (void) sigemptyset(&nact.sa_mask);
123 (void) sigaction(SIGALRM, &nact, &oact);
/illumos-gate/usr/src/ucblib/libucb/sparc/sys/
H A Dsignal.c451 struct sigaction nact; in ucbsigvec() local
470 (void) _sigaction(sig, (struct sigaction *)0, &nact); in ucbsigvec()
482 nact.sa_handler = in ucbsigvec()
485 nact.sa_handler = (void (*)(int))(uintptr_t)nhandler; in ucbsigvec()
487 mask2set(nvec->sv_mask, &nact.sa_mask); in ucbsigvec()
489 nact.sa_handler = SIG_DFL; in ucbsigvec()
490 nact.sa_flags = SA_SIGINFO; in ucbsigvec()
492 nact.sa_flags |= SA_RESTART; in ucbsigvec()
494 nact.sa_flags |= SA_RESETHAND; in ucbsigvec()
496 nact.sa_flags |= SA_ONSTACK; in ucbsigvec()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c178 struct sigaction nact; in main() local
528 nact.sa_handler = quitGetTrapHandler(); in main()
529 nact.sa_flags = SA_RESTART; in main()
530 (void) sigemptyset(&nact.sa_mask); in main()
532 (void) sigaction(SIGINT, &nact, &oact); in main()
536 nact.sa_handler = quitGetTrapHandler(); in main()
537 nact.sa_flags = SA_RESTART; in main()
538 (void) sigemptyset(&nact.sa_mask); in main()
540 (void) sigaction(SIGHUP, &nact, &oact); in main()
/illumos-gate/usr/src/cmd/svr4pkg/pkgadm/
H A Dlock.c244 struct sigaction nact; in admin_lock() local
506 nact.sa_handler = sigint_handler; in admin_lock()
507 nact.sa_flags = SA_RESTART; in admin_lock()
508 (void) sigemptyset(&nact.sa_mask); in admin_lock()
510 (void) sigaction(SIGINT, &nact, &oact); in admin_lock()
514 nact.sa_handler = sighup_handler; in admin_lock()
515 nact.sa_flags = SA_RESTART; in admin_lock()
516 (void) sigemptyset(&nact.sa_mask); in admin_lock()
518 (void) sigaction(SIGHUP, &nact, &oact); in admin_lock()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dmain.c272 struct sigaction nact; in main() local
996 nact.sa_handler = quitGetTrapHandler(); in main()
997 nact.sa_flags = SA_RESTART; in main()
998 (void) sigemptyset(&nact.sa_mask); in main()
1000 (void) sigaction(SIGINT, &nact, &oact); in main()
1004 nact.sa_handler = quitGetTrapHandler(); in main()
1005 nact.sa_flags = SA_RESTART; in main()
1006 (void) sigemptyset(&nact.sa_mask); in main()
1008 (void) sigaction(SIGHUP, &nact, &oact); in main()
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/
H A Dns-disc.c335 uint32_t nbd = 0, nni = 0, nact = 0, nalloc = 0, nns = 0; in main() local
356 nact++; in main()
390 if (!ns_disc_count(ctrl, NVME_NS_DISC_F_ACTIVE, nact)) { in main()
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dmain.c251 struct sigaction nact; in main() local
585 nact.sa_handler = quitGetTrapHandler(); in main()
586 nact.sa_flags = SA_RESTART; in main()
587 (void) sigemptyset(&nact.sa_mask); in main()
589 (void) sigaction(SIGINT, &nact, &oact); in main()
593 nact.sa_handler = quitGetTrapHandler(); in main()
594 nact.sa_flags = SA_RESTART; in main()
595 (void) sigemptyset(&nact.sa_mask); in main()
597 (void) sigaction(SIGHUP, &nact, &oact); in main()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspdsock.c817 int nact; in spdsock_ext_to_actvec() local
836 nact = sactp->spd_actions_count; in spdsock_ext_to_actvec()
842 actp = kmem_alloc(sizeof (*actp) * nact, KM_NOSLEEP); in spdsock_ext_to_actvec()
848 *nactp = nact; in spdsock_ext_to_actvec()
849 endactp = actp + nact; in spdsock_ext_to_actvec()
973 ipsec_actvec_free(*actpp, nact); in spdsock_ext_to_actvec()
986 ipsec_selkey_t *sel, ipsec_act_t *actp, int nact, uint_t dir, uint_t af, in mkrule() argument
994 pol = ipsec_policy_create(sel, actp, nact, rule->spd_rule_priority, in mkrule()
1012 ipsec_selkey_t *sel, ipsec_act_t *actp, int nact, uint_t dir, uint_t afs, in mkrulepair() argument
1018 error = mkrule(iph, rule, sel, actp, nact, dir, IPSL_IPV4, rp, in mkrulepair()
[all …]
H A Dspd.c1215 ipsec_act_wildcard_expand(ipsec_act_t *act, uint_t *nact, netstack_t *ns) in ipsec_act_wildcard_expand() argument
1228 *nact = 1; in ipsec_act_wildcard_expand()
1333 *nact = action_count; in ipsec_act_wildcard_expand()
1490 ipsec_actvec_free(ipsec_act_t *act, uint_t nact) in ipsec_actvec_free() argument
1492 kmem_free(act, nact * sizeof (*act)); in ipsec_actvec_free()
3881 ipsec_polhead_insert(ipsec_policy_head_t *ph, ipsec_act_t *actp, uint_t nact, in ipsec_polhead_insert() argument
3890 if ((pol = ipsec_policy_create(&sel, actp, nact, IPSEC_PRIO_SOCKET, in ipsec_polhead_insert()
H A Dip.c6171 uint_t nact; in ipsec_set_req() local
6283 ipsec_actvec_from_req(req, &actp, &nact, ipst->ips_netstack); in ipsec_set_req()
6291 if (!ipsec_polhead_insert(ph, actp, nact, IPSEC_AF_V4, in ipsec_set_req()
6295 if (!ipsec_polhead_insert(ph, actp, nact, IPSEC_AF_V4, in ipsec_set_req()
6304 if (!ipsec_polhead_insert(ph, actp, nact, IPSEC_AF_V6, in ipsec_set_req()
6307 if (!ipsec_polhead_insert(ph, actp, nact, IPSEC_AF_V6, in ipsec_set_req()
6312 ipsec_actvec_free(actp, nact); in ipsec_set_req()
6340 ipsec_actvec_free(actp, nact); in ipsec_set_req()
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dmain.c304 struct sigaction nact; in main() local
876 nact.sa_handler = quitGetTrapHandler(); in main()
877 nact.sa_flags = SA_RESTART; in main()
878 (void) sigemptyset(&nact.sa_mask); in main()
880 (void) sigaction(SIGINT, &nact, &oact); in main()
884 nact.sa_handler = quitGetTrapHandler(); in main()
885 nact.sa_flags = SA_RESTART; in main()
886 (void) sigemptyset(&nact.sa_mask); in main()
888 (void) sigaction(SIGHUP, &nact, &oact); in main()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsigaction.c367 sigaction(int sig, const struct sigaction *nact, struct sigaction *oact) in sigaction() argument
386 if (nact != NULL) { in sigaction()
387 tact = *nact; /* make a copy so we can modify it */ in sigaction()
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun.c961 uint_t nact; in iptun_set_sec_simple() local
995 ipsec_actvec_from_req(ipsr, &actp, &nact, ns); in iptun_set_sec_simple()
1040 if (iptun_insert_simple_policies(itp->itp_policy, actp, nact, ns)) { in iptun_set_sec_simple()
1071 ipsec_actvec_free(actp, nact); in iptun_set_sec_simple()