/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmglobal.c | 96 struct sigaction Sigalrm; /* SIGALRM */ 97 struct sigaction Sigcld; /* SIGCLD */ 98 struct sigaction Sigint; /* SIGINT */ 99 struct sigaction Sigpoll; /* SIGPOLL */ 100 struct sigaction Sigquit; /* SIGQUIT */ 101 struct sigaction Sigterm; /* SIGTERM */ 103 struct sigaction Sigusr1; /* SIGUSR1 */ 104 struct sigaction Sigusr2; /* SIGUSR2 */
|
H A D | tmsig.c | 46 struct sigaction sigact; in catch_signals() 65 (void) sigaction(SIGTERM, &sigact, NULL); in catch_signals() 69 (void) sigaction(SIGCLD, &sigact, NULL); in catch_signals() 74 (void) sigaction(SIGPOLL, &sigact, NULL); in catch_signals() 80 (void) sigaction(SIGUSR1, &sigact, NULL); in catch_signals() 85 (void) sigaction(SIGUSR2, &sigact, NULL); in catch_signals() 96 struct sigaction sigact; in child_sigcatch() 107 (void) sigaction(SIGPOLL, &sigact, NULL); in child_sigcatch() 112 (void) sigaction(SIGINT, &sigact, NULL); in child_sigcatch()
|
H A D | tmextern.h | 201 extern struct sigaction Sigalrm; /* SIGALRM */ 202 extern struct sigaction Sigcld; /* SIGCLD */ 203 extern struct sigaction Sigint; /* SIGINT */ 204 extern struct sigaction Sigpoll; /* SIGPOLL */ 205 extern struct sigaction Sigquit; /* SIGQUIT */ 206 extern struct sigaction Sigterm; /* SIGTERM */ 208 extern struct sigaction Sigusr1; /* SIGUSR1 */ 209 extern struct sigaction Sigusr2; /* SIGUSR2 */
|
H A D | tmchild.c | 65 struct sigaction sigact; in tmchild() 145 (void) sigaction(SIGALRM, &sigact, NULL); in tmchild() 166 (void) sigaction(SIGALRM, &sigact, NULL); in tmchild() 223 (void) sigaction(SIGALRM, &sigact, NULL); in tmchild() 494 struct sigaction sigact; in invoke_service() 524 (void) sigaction(SIGPOLL, &sigact, NULL); in invoke_service() 592 (void) sigaction(SIGINT, &sigact, NULL); in invoke_service() 609 (void) sigaction(SIGINT, &Sigint, NULL); in invoke_service() 610 (void) sigaction(SIGALRM, &Sigalrm, NULL); in invoke_service() 611 (void) sigaction(SIGPOLL, &Sigpoll, NULL); in invoke_service() [all …]
|
H A D | ttymon.c | 97 (void) sigaction(SIGINT, NULL, &Sigint); in main() 98 (void) sigaction(SIGALRM, NULL, &Sigalrm); in main() 99 (void) sigaction(SIGPOLL, NULL, &Sigpoll); in main() 100 (void) sigaction(SIGQUIT, NULL, &Sigquit); in main() 101 (void) sigaction(SIGCLD, NULL, &Sigcld); in main() 102 (void) sigaction(SIGTERM, NULL, &Sigterm); in main() 104 (void) sigaction(SIGUSR1, NULL, &Sigusr1); in main() 105 (void) sigaction(SIGUSR2, NULL, &Sigusr2); in main() 371 struct sigaction sigact; in open_device() 405 (void) sigaction(SIGALRM, &sigact, in open_device() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | signal.c | 65 struct sigaction nact; in signal() 66 struct sigaction oact; in signal() 87 if (sigaction(sig, &nact, &oact) < 0) in signal() 128 struct sigaction act; in sigignore() 149 if (sigaction(sig, &act, (struct sigaction *)0) < 0) in sigignore() 183 struct sigaction nact; in sigset() 184 struct sigaction oact; in sigset() 198 if (sigaction(sig, (struct sigaction *)0, &oact) < 0) in sigset() 217 if (sigaction(sig, &nact, &oact) < 0) in sigset()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop.c | 171 struct sigaction sigact; in main() 225 if (sigaction(SIGHUP, &sigact, (struct sigaction *)NULL) < 0) { in main() 229 if (sigaction(SIGINT, &sigact, (struct sigaction *)NULL) < 0) { in main() 233 if (sigaction(SIGQUIT, &sigact, (struct sigaction *)NULL) < 0) { in main() 237 if (sigaction(SIGILL, &sigact, (struct sigaction *)NULL) < 0) { in main() 241 if (sigaction(SIGTRAP, &sigact, (struct sigaction *)NULL) < 0) { in main() 245 if (sigaction(SIGIOT, &sigact, (struct sigaction *)NULL) < 0) { in main() 249 if (sigaction(SIGEMT, &sigact, (struct sigaction *)NULL) < 0) { in main() 253 if (sigaction(SIGFPE, &sigact, (struct sigaction *)NULL) < 0) { in main() 257 if (sigaction(SIGBUS, &sigact, (struct sigaction *)NULL) < 0) { in main() [all …]
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | myrcmd.c | 78 struct sigaction oldaction; in myrcmd() 79 struct sigaction newaction; in myrcmd() 132 (void) sigaction(SIGPIPE, &newaction, &oldaction); in myrcmd() 164 (void) sigaction(SIGPIPE, &oldaction, in myrcmd() 165 (struct sigaction *)0); in myrcmd() 207 (void) sigaction(SIGPIPE, &oldaction, in myrcmd() 208 (struct sigaction *)0); in myrcmd() 273 (void) sigaction(SIGPIPE, &oldaction, (struct sigaction *)0); in myrcmd() 281 (void) sigaction(SIGPIPE, &oldaction, (struct sigaction *)0); in myrcmd()
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgexecv.c | 144 struct sigaction nact; in pkgexecv() 145 struct sigaction oact; in pkgexecv() 228 if (sigaction(SIGINT, &nact, &oact) < 0) { in pkgexecv() 240 if (sigaction(SIGHUP, &nact, &oact) < 0) { in pkgexecv() 285 (void) sigaction(SIGINT, &nact, (struct sigaction *)NULL); in pkgexecv() 293 (void) sigaction(SIGHUP, &nact, (struct sigaction *)NULL); in pkgexecv()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | system.c | 55 static struct sigaction sys_ibuf; /* saved SIGINT sigaction */ 56 static struct sigaction sys_qbuf; /* saved SIGQUIT sigaction */ 57 static struct sigaction ignore = {0, {SIG_IGN}, {0}}; 111 (void) sigaction(SIGINT, &sys_ibuf, NULL); in cleanup() 112 (void) sigaction(SIGQUIT, &sys_qbuf, NULL); in cleanup() 216 (void) sigaction(SIGINT, &ignore, &sys_ibuf); in system() 217 (void) sigaction(SIGQUIT, &ignore, &sys_qbuf); in system()
|
H A D | getpass.c | 78 struct sigaction act, osigint, osigtstp; in __getpass() 89 (void) sigaction(SIGINT, &act, &osigint); /* trap interrupt */ in __getpass() 91 (void) sigaction(SIGTSTP, &act, &osigtstp); /* ignore stop */ in __getpass() 109 (void) sigaction(SIGINT, &osigint, NULL); in __getpass() 110 (void) sigaction(SIGTSTP, &osigtstp, NULL); in __getpass()
|
/illumos-gate/usr/src/cmd/sulogin/ |
H A D | sulogin.c | 111 static struct sigaction sa; 308 (void) sigaction(SIGTERM, &sa, NULL); in main() 309 (void) sigaction(SIGHUP, &sa, NULL); in main() 313 (void) sigaction(SIGUSR1, &sa, NULL); in main() 318 (void) sigaction(SIGCHLD, &sa, NULL); in main() 438 (void) sigaction(SIGINT, &sa, NULL); in setupsigs() 439 (void) sigaction(SIGQUIT, &sa, NULL); in setupsigs() 444 (void) sigaction(SIGTERM, &sa, NULL); in setupsigs() 445 (void) sigaction(SIGKILL, &sa, NULL); in setupsigs() 446 (void) sigaction(SIGHUP, &sa, NULL); in setupsigs() [all …]
|
/illumos-gate/usr/src/cmd/rmt/ |
H A D | rmt.c | 155 struct sigaction sa; in main() 195 (void) sigaction(RECV, &sa, (struct sigaction *)0); in main() 196 (void) sigaction(SEND, &sa, (struct sigaction *)0); in main() 197 (void) sigaction(TAPE, &sa, (struct sigaction *)0); in main() 198 (void) sigaction(OPEN, &sa, (struct sigaction *)0); in main() 199 (void) sigaction(CLOSE, &sa, (struct sigaction *)0); in main() 200 (void) sigaction(ERROR, &sa, (struct sigaction *)0); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | signal.c | 62 #undef sigaction 63 #define sigaction sigvec macro 77 struct sigaction na; in signal() 78 struct sigaction oa; in signal() 125 if (sigaction(sig, &na, &oa)) in signal()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | configd.c | 133 struct sigaction act; in abort_handler() 138 (void) sigaction(sig, &act, NULL); in abort_handler() 478 struct sigaction act; in daemonize_start() 484 (void) sigaction(SIGPIPE, &act, NULL); /* ignore SIGPIPE */ in daemonize_start() 567 struct sigaction act; in main() 680 (void) sigaction(SIGPIPE, &act, NULL); in main() 681 (void) sigaction(SIGALRM, &act, NULL); in main() 682 (void) sigaction(SIGUSR1, &act, NULL); in main() 683 (void) sigaction(SIGUSR2, &act, NULL); in main() 684 (void) sigaction(SIGPOLL, &act, NULL); in main() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_tag.c | 53 struct sigaction sa; in term_tag_init() 66 sigaction(SIGHUP, &sa, NULL); in term_tag_init() 67 sigaction(SIGINT, &sa, NULL); in term_tag_init() 68 sigaction(SIGTERM, &sa, NULL); in term_tag_init() 77 sigaction(SIGTTOU, &sa, NULL); in term_tag_init() 217 struct sigaction sa; in tag_signal() 223 sigaction(signum, &sa, NULL); in tag_signal()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv.c | 177 struct sigaction act; in ypinit() 259 sigaction(SIGTERM, &act, (struct sigaction *)NULL); in ypinit() 260 sigaction(SIGQUIT, &act, (struct sigaction *)NULL); in ypinit() 261 sigaction(SIGABRT, &act, (struct sigaction *)NULL); in ypinit() 262 sigaction(SIGBUS, &act, (struct sigaction *)NULL); in ypinit() 263 sigaction(SIGSEGV, &act, (struct sigaction *)NULL); in ypinit()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | exit.c | 94 struct sigaction nact; in handler() 106 (void) sigaction(sigs->signo, &nact, NULL); in handler() 138 struct sigaction nact, oact; in ld_init_sighandler() 166 if ((sigaction(sigs->signo, NULL, &oact) == 0) && in ld_init_sighandler() 171 (void) sigaction(sigs->signo, &nact, NULL); in ld_init_sighandler()
|
/illumos-gate/usr/src/cmd/syseventd/modules/devfsadmd_mod/ |
H A D | devfsadmd_mod.c | 86 struct sigaction cbuf, ibuf, qbuf, ignore, dfl; in system1() 118 (void) sigaction(SIGCHLD, &dfl, &cbuf); in system1() 124 (void) sigaction(SIGCHLD, &cbuf, NULL); in system1() 142 (void) sigaction(SIGINT, &ignore, &ibuf); in system1() 143 (void) sigaction(SIGQUIT, &ignore, &qbuf); in system1() 149 (void) sigaction(SIGINT, &ibuf, NULL); in system1() 150 (void) sigaction(SIGQUIT, &qbuf, NULL); in system1() 151 (void) sigaction(SIGCHLD, &cbuf, NULL); in system1()
|
/illumos-gate/usr/src/cmd/ptools/psig/ |
H A D | psig.c | 48 static uintptr_t deinterpose(int, void *, psinfo_t *, struct sigaction *); 179 struct sigaction *action = NULL; in look() 210 maxsig = statb.st_size / sizeof (struct sigaction); in look() 211 action = malloc(maxsig * sizeof (struct sigaction)); in look() 218 if (read(fd, (char *)action, maxsig * sizeof (struct sigaction)) != in look() 219 maxsig * sizeof (struct sigaction)) { in look() 275 struct sigaction *sp = &action[sig - 1]; in look() 408 deinterpose(int sig, void *aharr, psinfo_t *psinfo, struct sigaction *sp) in deinterpose() 425 struct sigaction *sa = (struct sigaction *) in deinterpose()
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 122 struct sigaction sa; in main() 148 (void) sigaction(SIGHUP, &sa, NULL); in main() 149 (void) sigaction(SIGINT, &sa, NULL); in main() 150 (void) sigaction(SIGQUIT, &sa, NULL); in main() 151 (void) sigaction(SIGTERM, &sa, NULL); in main() 159 (void) sigaction(SIGSEGV, &sa, NULL); in main() 160 (void) sigaction(SIGILL, &sa, NULL); in main() 161 (void) sigaction(SIGABRT, &sa, NULL); in main() 162 (void) sigaction(SIGBUS, &sa, NULL); in main() 660 struct sigaction sa; in fallbackdaemon() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 96 struct sigaction sa, osa1, osa2, osa3; in changepasswd() 185 memset(&sa, 0, sizeof (struct sigaction)); in changepasswd() 187 sigaction(SIGTSTP, &sa, (struct sigaction *)0); in changepasswd() 188 sigaction(SIGHUP, &sa, &osa1); in changepasswd() 189 sigaction(SIGINT, &sa, &osa2); in changepasswd() 190 sigaction(SIGQUIT, &sa, &osa3); in changepasswd() 797 sigaction(SIGHUP, &osa1, (struct sigaction *)0); in changepasswd() 798 sigaction(SIGINT, &osa2, (struct sigaction *)0); in changepasswd() 799 sigaction(SIGQUIT, &osa3, (struct sigaction *)0); in changepasswd()
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | sigaction.c | 79 struct sigaction uact; in call_user_handler() 80 volatile struct sigaction *sap; in call_user_handler() 272 struct sigaction tact = suap->sig_uaction; in take_deferred_signal() 365 #pragma weak _sigaction = sigaction 367 sigaction(int sig, const struct sigaction *nact, struct sigaction *oact) in sigaction() function 371 struct sigaction oaction; in sigaction() 372 struct sigaction tact; in sigaction() 373 struct sigaction *tactp = NULL; in sigaction() 699 struct sigaction *sap; in signal_init() 700 struct sigaction act; in signal_init() [all …]
|
/illumos-gate/usr/src/test/crypto-tests/tests/longhash/ |
H A D | longhash.c | 42 static struct sigaction trap_sa; 73 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_sha1() 97 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_sha1() 119 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_32() 143 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_32() 165 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_64() 189 (void) sigaction(SIGSEGV, &trap_sa, NULL); in test_update_64()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | sigflag.c | 39 struct sigaction sa; in sigflag() 42 if ((v = sigaction(sig, 0, &sa)) < 0) in sigflag() 48 return (sigaction(sig, &sa, 0)); in sigflag()
|