/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | siginterrupt.c | 37 struct sigaction act; local 47 (void) sigaction(sig, NULL, &act); 49 act.sa_flags &= ~SA_RESTART; 51 act.sa_flags |= SA_RESTART; 52 return (sigaction(sig, &act, NULL));
|
H A D | signal.c | 130 struct sigaction act; local 135 act.sa_handler = SIG_IGN; 136 act.sa_flags = 0; 137 (void) sigemptyset(&act.sa_mask); 144 act.sa_flags |= SA_NOCLDSTOP; 145 act.sa_flags |= SA_NOCLDWAIT; 149 act.sa_flags |= SA_RESTART; 151 if (sigaction(sig, &act, (struct sigaction *)0) < 0)
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | nsswitch_priv.h | 79 #define __NSW_COMMON_ACTION(act)\ 80 (((act) == __NSW_CONTINUE) || ((act) == __NSW_RETURN)) 82 #define __NSW_SUCCESS_ACTION(act) __NSW_COMMON_ACTION(act) 83 #define __NSW_NOTFOUND_ACTION(act) __NSW_COMMON_ACTION(act) 84 #define __NSW_UNAVAIL_ACTION(act) __NSW_COMMON_ACTION(act) 85 #define __NSW_TRYAGAIN_ACTION(act) \ [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | abort.c | 49 struct sigaction act; local 51 if (!sigaction(SIGABRT, NULL, &act) && 52 act.sa_handler != SIG_DFL && act.sa_handler != SIG_IGN) {
|
H A D | nsparse.c | 141 action_t act; local 225 act = __NSW_RETURN; 239 act = __NSW_TRYAGAIN_NTIMES; 241 act = __NSW_CONTINUE; 244 act = __NSW_TRYAGAIN_FOREVER; 246 act = __NSW_TRYAGAIN_NTIMES; 254 if (__NSW_SUCCESS_ACTION(act) && 257 lkp->actions[__NSW_SUCCESS] = act; 258 } else if (__NSW_NOTFOUND_ACTION(act) && 261 lkp->actions[__NSW_NOTFOUND] = act; 335 action_t act; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_signal.c | 48 struct sigaction act; local 57 act.sa_handler = handler; 58 act.sa_flags = SA_RESTART; 60 act.sa_handler = sig_stub; 61 act.sa_flags = SA_SIGINFO | SA_RESTART | SA_ONSTACK; 64 (void) sigemptyset(&act.sa_mask); 67 (void) sigaddset(&act.sa_mask, SIGWINCH); 68 (void) sigaddset(&act.sa_mask, SIGTSTP); 69 (void) sigaddset(&act.sa_mask, SIGHUP); 70 (void) sigaddset(&act [all...] |
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | sysevent_signal.c | 47 struct sigaction act; local 54 act.sa_handler = handler; 55 act.sa_flags = SA_RESTART; 57 act.sa_sigaction = sig_stub; 58 act.sa_flags = SA_SIGINFO | SA_RESTART; 61 (void) sigfillset(&act.sa_mask); 63 if ((status = sigaction(sig, &act, NULL)) == 0)
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | getpass.c | 78 struct sigaction act, osigint, osigtstp; local 86 act.sa_flags = 0; 87 act.sa_handler = catch; 88 (void) sigemptyset(&act.sa_mask); 89 (void) sigaction(SIGINT, &act, &osigint); /* trap interrupt */ 90 act.sa_handler = SIG_IGN; 91 (void) sigaction(SIGTSTP, &act, &osigtstp); /* ignore stop */
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 50 struct sigaction act; local 57 act.sa_handler = interrupt; 58 act.sa_flags = 0; 60 (void) sigemptyset(&act.sa_mask); 61 (void) sigaction(SIGUSR1, &act, NULL);
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | driver.c | 40 PTF_int act; member in struct:__anon3217 46 #define CALL(x, f) (x.class ? (*x.class) (x.act, f) : E_SYSTEM_ERROR) 121 _page_navigation(PTF_int act, FORM *f) argument 128 v = (*act) (f); 139 _field_navigation(PTF_int act, FORM *f) argument 145 v = (*act) (f); 155 _data_navigation(PTF_int act, FORM *f) argument 157 return ((*act) (f)); 162 _data_manipulation(PTF_int act, FORM *f) argument 168 if ((v = (*act) ( 174 _misc_request(PTF_int act, FORM *f) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | sigaction.c | 68 sigaction(sig, act, oact) 70 struct sigaction *act, *oact; 82 if (act == NULL) { 86 if (act->sa_flags & SA_ONSTACK) 88 if (act->sa_flags & SA_RESETHAND) 90 if (act->sa_flags & SA_NOCLDSTOP) 92 if (!(act->sa_flags & SA_INTERRUPT)) 100 handlers[newsig] = act->sa_handler; 102 if ((act->sa_handler == SIG_DFL) || 103 (act [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_sigaction.c | 45 int sig, const struct sigaction *act, struct sigaction *oact) 57 return (sigaction(sig, act, oact)); 66 adp++; /* act argument */ 68 if (act == NULL) { 78 sigaction_n_to_32(act, &act32); 82 adp->arg_object = (void *)act; 83 adp->arg_size = sizeof (*act); 86 adp->arg_object = (void *)act; 87 adp->arg_size = sizeof (*act); 44 pr_sigaction(struct ps_prochandle *Pr, int sig, const struct sigaction *act, struct sigaction *oact) argument
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 188 action_t act; local 272 act = __NSW_RETURN; 286 act = __NSW_TRYAGAIN_NTIMES; 288 act = __NSW_CONTINUE; 291 act = __NSW_TRYAGAIN_FOREVER; 293 act = __NSW_TRYAGAIN_NTIMES; 301 if (__NSW_SUCCESS_ACTION(act) && 304 lkp->actions[__NSW_SUCCESS] = act; 305 } else if (__NSW_NOTFOUND_ACTION(act) && 308 lkp->actions[__NSW_NOTFOUND] = act; [all...] |
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | configd.c | 132 struct sigaction act; local 134 (void) sigemptyset(&act.sa_mask); 135 act.sa_handler = SIG_DFL; 136 act.sa_flags = 0; 137 (void) sigaction(sig, &act, NULL); 477 struct sigaction act; local 479 act.sa_sigaction = SIG_DFL; 480 (void) sigemptyset(&act.sa_mask); 481 act.sa_flags = 0; 483 (void) sigaction(SIGPIPE, &act, NUL 566 struct sigaction act; local [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | fault.c | 136 struct sigaction act; local 139 sigaction(i, 0, &act); 140 if (act.sa_handler == SIG_IGN) { 250 struct sigaction act, oact; local 262 sigemptyset(&act.sa_mask); 263 act.sa_flags = (sig == SIGSEGV) ? (SA_ONSTACK | SA_SIGINFO) : 0; 264 act.sa_handler = func; 265 sigaction(sig, &act, &oact); 434 struct sigaction act, oact; local 449 sigemptyset(&act [all...] |
/illumos-gate/usr/src/test/os-tests/tests/secflags/ |
H A D | secflags_syscall.c | 12 secflagdelta_t act = {0}; local 51 if ((err = psecflags(P_LWPID, P_MYID, PSF_INHERIT, &act)) != 0) { 59 if ((err = psecflags(P_LWPID, P_MYID, PSF_EFFECTIVE, &act)) != 0) {
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_timerq.c | 250 struct sigaction act; local 255 act.sa_handler = fmd_timerq_alrm; 256 act.sa_flags = 0; 257 (void) sigemptyset(&act.sa_mask); 258 (void) sigaction(SIGALRM, &act, NULL); 270 struct sigaction act; local 297 act.sa_handler = SIG_DFL; 298 act.sa_flags = 0; 299 (void) sigemptyset(&act.sa_mask); 300 (void) sigaction(SIGALRM, &act, NUL [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | main.c | 88 struct sigaction act; local 148 act.sa_handler = cmdabort; 149 (void) memset(&act.sa_mask, 0, sizeof (sigset_t)); 150 act.sa_flags = SA_RESTART | SA_NODEFER; 151 if (sigaction(SIGINT, &act, (struct sigaction *)NULL) == -1) { 157 act.sa_handler = onsusp; 158 (void) memset(&act.sa_mask, 0, sizeof (sigset_t)); 159 act.sa_flags = SA_RESTART | SA_NODEFER; 160 if (sigaction(SIGTSTP, &act, (struct sigaction *)NULL) == -1) { 166 act [all...] |
/illumos-gate/usr/src/cmd/oplhpd/ |
H A D | oplhpd.c | 111 struct sigaction act, oact; local 113 act.sa_handler = handler; 114 act.sa_flags = 0; 116 act.sa_flags |= SA_NOCLDWAIT; 118 (void) sigemptyset(&act.sa_mask); 120 if (sigaction(sig, &act, &oact) < 0) {
|
/illumos-gate/usr/src/cmd/acpihpd/ |
H A D | acpihpd.c | 237 struct sigaction act; local 239 act.sa_handler = handler; 240 act.sa_flags = 0; 242 act.sa_flags |= SA_NOCLDWAIT; 245 (void) sigemptyset(&act.sa_mask); 246 if (sigaction(sig, &act, NULL) < 0) {
|
/illumos-gate/usr/src/head/ |
H A D | stdio_ext.h | 79 #define enable_extended_FILE_stdio(fd, act) (0)
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_main.c | 201 struct sigaction act; local 257 (void) sigfillset(&act.sa_mask); 258 act.sa_handler = ndmpd_sig_handler; 259 act.sa_flags = 0; 261 (void) sigaction(SIGTERM, &act, NULL); 262 (void) sigaction(SIGHUP, &act, NULL); 263 (void) sigaction(SIGINT, &act, NULL); 264 (void) sigaction(SIGUSR1, &act, NULL); 265 (void) sigaction(SIGPIPE, &act, NULL);
|
/illumos-gate/usr/src/cmd/intrstat/ |
H A D | intrstat.c | 360 struct sigaction act; local 373 (void) sigemptyset(&act.sa_mask); 374 act.sa_flags = 0; 375 act.sa_handler = set_width; 376 (void) sigaction(SIGWINCH, &act, NULL); 378 (void) sigemptyset(&act.sa_mask); 379 act.sa_flags = 0; 380 act.sa_handler = intr; 381 (void) sigaction(SIGUSR1, &act, NULL); 383 (void) sigemptyset(&act [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs_ses.c | 401 struct sigaction act; local 410 (void) memset(&act, 0, sizeof (act)); 411 act.sa_sigaction = exit_handler; 412 act.sa_flags = SA_SIGINFO; 414 (void) sigaction(SIGCHLD, &act, NULL); 549 struct sigaction act; local 584 (void) memset(&act, 0, sizeof (act)); 585 act [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_main.c | 296 struct sigaction act; local 372 act.sa_flags = 0; 373 act.sa_handler = catch_sighup; 374 (void) sigaction(SIGHUP, &act, NULL); 375 act.sa_handler = catch_sigusr1; 376 (void) sigaction(SIGUSR1, &act, NULL); 383 act.sa_handler = SIG_IGN; 384 (void) sigaction(SIGPIPE, &act, NULL);
|