/titanic_50/usr/src/lib/libc/inc/ |
H A D | nsswitch_priv.h | 79 #define __NSW_COMMON_ACTION(act)\ argument 80 (((act) == __NSW_CONTINUE) || ((act) == __NSW_RETURN)) 82 #define __NSW_SUCCESS_ACTION(act) __NSW_COMMON_ACTION(act) argument 83 #define __NSW_NOTFOUND_ACTION(act) __NSW_COMMON_ACTION(act) argument 84 #define __NSW_UNAVAIL_ACTION(act) __NSW_COMMON_ACTION(act) argument 85 #define __NSW_TRYAGAIN_ACTION(act) \ argument 86 (__NSW_COMMON_ACTION(act) || \ 87 ((act) == __NSW_TRYAGAIN_FOREVER) || \ 88 ((act) == __NSW_TRYAGAIN_NTIMES)) 89 #define __NSW_UNPAUSE_ACTION(act)\ argument [all …]
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_signal.c | 48 struct sigaction act; in mdb_signal_sethandler() local 57 act.sa_handler = handler; in mdb_signal_sethandler() 58 act.sa_flags = SA_RESTART; in mdb_signal_sethandler() 60 act.sa_handler = sig_stub; in mdb_signal_sethandler() 61 act.sa_flags = SA_SIGINFO | SA_RESTART | SA_ONSTACK; in mdb_signal_sethandler() 64 (void) sigemptyset(&act.sa_mask); in mdb_signal_sethandler() 67 (void) sigaddset(&act.sa_mask, SIGWINCH); in mdb_signal_sethandler() 68 (void) sigaddset(&act.sa_mask, SIGTSTP); in mdb_signal_sethandler() 69 (void) sigaddset(&act.sa_mask, SIGHUP); in mdb_signal_sethandler() 70 (void) sigaddset(&act.sa_mask, SIGTERM); in mdb_signal_sethandler() [all …]
|
/titanic_50/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 188 action_t act; in _nsw_getoneconfig_v1() local 272 act = __NSW_RETURN; in _nsw_getoneconfig_v1() 286 act = __NSW_TRYAGAIN_NTIMES; in _nsw_getoneconfig_v1() 288 act = __NSW_CONTINUE; in _nsw_getoneconfig_v1() 291 act = __NSW_TRYAGAIN_FOREVER; in _nsw_getoneconfig_v1() 293 act = __NSW_TRYAGAIN_NTIMES; in _nsw_getoneconfig_v1() 301 if (__NSW_SUCCESS_ACTION(act) && in _nsw_getoneconfig_v1() 304 lkp->actions[__NSW_SUCCESS] = act; in _nsw_getoneconfig_v1() 305 } else if (__NSW_NOTFOUND_ACTION(act) && in _nsw_getoneconfig_v1() 308 lkp->actions[__NSW_NOTFOUND] = act; in _nsw_getoneconfig_v1() [all …]
|
/titanic_50/usr/src/cmd/svc/configd/ |
H A D | configd.c | 132 struct sigaction act; in abort_handler() local 134 (void) sigemptyset(&act.sa_mask); in abort_handler() 135 act.sa_handler = SIG_DFL; in abort_handler() 136 act.sa_flags = 0; in abort_handler() 137 (void) sigaction(sig, &act, NULL); in abort_handler() 477 struct sigaction act; in daemonize_start() local 479 act.sa_sigaction = SIG_DFL; in daemonize_start() 480 (void) sigemptyset(&act.sa_mask); in daemonize_start() 481 act.sa_flags = 0; in daemonize_start() 483 (void) sigaction(SIGPIPE, &act, NULL); /* ignore SIGPIPE */ in daemonize_start() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | sigaction.c | 68 sigaction(sig, act, oact) in sigaction() argument 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->sa_handler == SIG_IGN)) [all …]
|
/titanic_50/usr/src/lib/libeti/form/common/ |
H A D | driver.c | 40 PTF_int act; member 46 #define CALL(x, f) (x.class ? (*x.class) (x.act, f) : E_SYSTEM_ERROR) 121 _page_navigation(PTF_int act, FORM *f) in _page_navigation() argument 128 v = (*act) (f); in _page_navigation() 139 _field_navigation(PTF_int act, FORM *f) in _field_navigation() argument 145 v = (*act) (f); in _field_navigation() 155 _data_navigation(PTF_int act, FORM *f) in _data_navigation() argument 157 return ((*act) (f)); in _data_navigation() 162 _data_manipulation(PTF_int act, FORM *f) in _data_manipulation() argument 168 if ((v = (*act) (f)) == E_OK) in _data_manipulation() [all …]
|
/titanic_50/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | sysevent_signal.c | 47 struct sigaction act; in se_signal_sethandler() local 54 act.sa_handler = handler; in se_signal_sethandler() 55 act.sa_flags = SA_RESTART; in se_signal_sethandler() 57 act.sa_sigaction = sig_stub; in se_signal_sethandler() 58 act.sa_flags = SA_SIGINFO | SA_RESTART; in se_signal_sethandler() 61 (void) sigfillset(&act.sa_mask); in se_signal_sethandler() 63 if ((status = sigaction(sig, &act, NULL)) == 0) in se_signal_sethandler()
|
/titanic_50/usr/src/lib/libproc/common/ |
H A D | pr_sigaction.c | 45 int sig, const struct sigaction *act, struct sigaction *oact) in pr_sigaction() argument 57 return (sigaction(sig, act, oact)); in pr_sigaction() 68 if (act == NULL) { in pr_sigaction() 78 sigaction_n_to_32(act, &act32); in pr_sigaction() 82 adp->arg_object = (void *)act; in pr_sigaction() 83 adp->arg_size = sizeof (*act); in pr_sigaction() 86 adp->arg_object = (void *)act; in pr_sigaction() 87 adp->arg_size = sizeof (*act); in pr_sigaction()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 235 static int add_action(ipqos_conf_action_t *act); 1385 ipqos_conf_action_t *act; in diffconf() local 1392 for (act = new; act; act = act->next) { in diffconf() 1396 if ((tmp = actionexist(act->name, old)) == NULL) { in diffconf() 1397 IPQOSCDBG1(DIFF, "marking act %s as new\n", act->name); in diffconf() 1399 act->new = B_TRUE; in diffconf() 1400 mark_classes_filters_new(act); in diffconf() 1406 res = diffaction(tmp, act); in diffconf() 1417 for (act = old; act; act = act->next) { in diffconf() 1418 if (act->params->originator == IPP_CONFIG_IPQOSCONF && in diffconf() [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | nsparse.c | 141 action_t act; in _nsw_getoneconfig_v1() local 225 act = __NSW_RETURN; in _nsw_getoneconfig_v1() 239 act = __NSW_TRYAGAIN_NTIMES; in _nsw_getoneconfig_v1() 241 act = __NSW_CONTINUE; in _nsw_getoneconfig_v1() 244 act = __NSW_TRYAGAIN_FOREVER; in _nsw_getoneconfig_v1() 246 act = __NSW_TRYAGAIN_NTIMES; in _nsw_getoneconfig_v1() 254 if (__NSW_SUCCESS_ACTION(act) && in _nsw_getoneconfig_v1() 257 lkp->actions[__NSW_SUCCESS] = act; in _nsw_getoneconfig_v1() 258 } else if (__NSW_NOTFOUND_ACTION(act) && in _nsw_getoneconfig_v1() 261 lkp->actions[__NSW_NOTFOUND] = act; in _nsw_getoneconfig_v1() [all …]
|
H A D | abort.c | 49 struct sigaction act; in abort() local 51 if (!sigaction(SIGABRT, NULL, &act) && in abort() 52 act.sa_handler != SIG_DFL && act.sa_handler != SIG_IGN) { in abort()
|
/titanic_50/usr/src/cmd/sh/ |
H A D | fault.c | 136 struct sigaction act; in ignoring() local 139 sigaction(i, 0, &act); in ignoring() 140 if (act.sa_handler == SIG_IGN) { in ignoring() 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; in sh_sleep() local 449 sigemptyset(&act.sa_mask); in sh_sleep() [all …]
|
/titanic_50/usr/src/lib/libc/port/sys/ |
H A D | siginterrupt.c | 37 struct sigaction act; in siginterrupt() local 47 (void) sigaction(sig, NULL, &act); in siginterrupt() 49 act.sa_flags &= ~SA_RESTART; in siginterrupt() 51 act.sa_flags |= SA_RESTART; in siginterrupt() 52 return (sigaction(sig, &act, NULL)); in siginterrupt()
|
H A D | signal.c | 130 struct sigaction act; in sigignore() local 135 act.sa_handler = SIG_IGN; in sigignore() 136 act.sa_flags = 0; in sigignore() 137 (void) sigemptyset(&act.sa_mask); in sigignore() 144 act.sa_flags |= SA_NOCLDSTOP; in sigignore() 145 act.sa_flags |= SA_NOCLDWAIT; in sigignore() 149 act.sa_flags |= SA_RESTART; in sigignore() 151 if (sigaction(sig, &act, (struct sigaction *)0) < 0) in sigignore()
|
/titanic_50/usr/src/lib/libc/port/stdio/ |
H A D | getpass.c | 78 struct sigaction act, osigint, osigtstp; in __getpass() local 86 act.sa_flags = 0; in __getpass() 87 act.sa_handler = catch; in __getpass() 88 (void) sigemptyset(&act.sa_mask); in __getpass() 89 (void) sigaction(SIGINT, &act, &osigint); /* trap interrupt */ in __getpass() 90 act.sa_handler = SIG_IGN; in __getpass() 91 (void) sigaction(SIGTSTP, &act, &osigtstp); /* ignore stop */ in __getpass()
|
/titanic_50/usr/src/cmd/fwflash/plugins/vendor/ |
H A D | sd-GENERIC.c | 58 libscsi_action_t *act = NULL; in vendorvrfy() local 81 if ((act = libscsi_action_alloc(hdl, SPC3_CMD_READ_BUFFER, in vendorvrfy() 88 rb_cdb = (spc3_read_buffer_cdb_t *)libscsi_action_get_cdb(act); in vendorvrfy() 104 if (libscsi_exec(act, targ) != 0) { in vendorvrfy() 111 if (libscsi_action_get_status(act) != SAM4_STATUS_GOOD) { in vendorvrfy() 142 if (act != NULL) in vendorvrfy() 143 libscsi_action_free(act); in vendorvrfy()
|
/titanic_50/usr/src/cmd/vntsd/ |
H A D | vntsd.c | 331 struct sigaction act; in main() local 347 bzero(&act, sizeof (act)); in main() 525 act.sa_handler = exit_sig_handler; in main() 527 (void) sigemptyset(&act.sa_mask); in main() 528 (void) sigaction(SIGINT, &act, NULL); in main() 529 (void) sigaction(SIGTERM, &act, NULL); in main() 530 (void) sigaction(SIGHUP, &act, NULL); in main() 533 act.sa_handler = vntsd_sig_handler; in main() 534 (void) sigemptyset(&act.sa_mask); in main() 535 (void) sigaction(SIGUSR1, &act, NULL); in main() [all …]
|
/titanic_50/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_main.c | 201 struct sigaction act; in main() local 257 (void) sigfillset(&act.sa_mask); in main() 258 act.sa_handler = ndmpd_sig_handler; in main() 259 act.sa_flags = 0; in main() 261 (void) sigaction(SIGTERM, &act, NULL); in main() 262 (void) sigaction(SIGHUP, &act, NULL); in main() 263 (void) sigaction(SIGINT, &act, NULL); in main() 264 (void) sigaction(SIGUSR1, &act, NULL); in main() 265 (void) sigaction(SIGPIPE, &act, NULL); in main()
|
/titanic_50/usr/src/lib/libc/port/threads/ |
H A D | sigaction.c | 690 struct sigaction act; in signal_init() local 702 __sigaction(sig, NULL, &act) == 0 && in signal_init() 703 act.sa_sigaction != SIG_DFL && in signal_init() 704 act.sa_sigaction != SIG_IGN) { in signal_init() 705 act = *sap; in signal_init() 706 act.sa_flags &= ~SA_NODEFER; in signal_init() 707 act.sa_sigaction = udp->sigacthandler; in signal_init() 708 act.sa_mask = maskset; in signal_init() 709 (void) __sigaction(sig, &act, NULL); in signal_init() 750 struct sigaction act; in setup_cancelsig() local [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 50 struct sigaction act; in main() local 57 act.sa_handler = interrupt; in main() 58 act.sa_flags = 0; in main() 60 (void) sigemptyset(&act.sa_mask); in main() 61 (void) sigaction(SIGUSR1, &act, NULL); in main()
|
/titanic_50/usr/src/uts/common/inet/ip/ |
H A D | spdsock.c | 732 spd_convert_type(uint32_t type, ipsec_act_t *act) in spd_convert_type() argument 736 act->ipa_type = IPSEC_ACT_DISCARD; in spd_convert_type() 740 act->ipa_type = IPSEC_ACT_CLEAR; in spd_convert_type() 744 act->ipa_type = IPSEC_ACT_APPLY; in spd_convert_type() 751 spd_convert_flags(uint32_t flags, ipsec_act_t *act) in spd_convert_flags() argument 756 act->ipa_apply.ipp_use_ah = !!(flags & SPD_APPLY_AH); in spd_convert_flags() 757 act->ipa_apply.ipp_use_esp = !!(flags & SPD_APPLY_ESP); in spd_convert_flags() 758 act->ipa_apply.ipp_use_espa = !!(flags & SPD_APPLY_ESPA); in spd_convert_flags() 759 act->ipa_apply.ipp_use_se = !!(flags & SPD_APPLY_SE); in spd_convert_flags() 760 act->ipa_apply.ipp_use_unique = !!(flags & SPD_APPLY_UNIQUE); in spd_convert_flags() [all …]
|
/titanic_50/usr/src/cmd/hotplugd/ |
H A D | hotplugd.c | 283 struct sigaction act; in init_signals() local 289 (void) sigfillset(&act.sa_mask); in init_signals() 290 act.sa_handler = signal_handler; in init_signals() 291 act.sa_flags = 0; in init_signals() 293 (void) sigaction(SIGTERM, &act, NULL); in init_signals() 294 (void) sigaction(SIGHUP, &act, NULL); in init_signals() 295 (void) sigaction(SIGINT, &act, NULL); in init_signals() 296 (void) sigaction(SIGPIPE, &act, NULL); in init_signals()
|
/titanic_50/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs_ses.c | 401 struct sigaction act; in ses_init_signals() local 410 (void) memset(&act, 0, sizeof (act)); in ses_init_signals() 411 act.sa_sigaction = exit_handler; in ses_init_signals() 412 act.sa_flags = SA_SIGINFO; in ses_init_signals() 414 (void) sigaction(SIGCHLD, &act, NULL); in ses_init_signals() 549 struct sigaction act; in ses_handler() local 584 (void) memset(&act, 0, sizeof (act)); in ses_handler() 585 act.sa_handler = abort_handler; in ses_handler() 586 (void) sigaction(SIGINT, &act, NULL); in ses_handler()
|
/titanic_50/usr/src/cmd/format/ |
H A D | main.c | 88 struct sigaction act; in main() local 148 act.sa_handler = cmdabort; in main() 149 (void) memset(&act.sa_mask, 0, sizeof (sigset_t)); in main() 150 act.sa_flags = SA_RESTART | SA_NODEFER; in main() 151 if (sigaction(SIGINT, &act, (struct sigaction *)NULL) == -1) { in main() 157 act.sa_handler = onsusp; in main() 158 (void) memset(&act.sa_mask, 0, sizeof (sigset_t)); in main() 159 act.sa_flags = SA_RESTART | SA_NODEFER; in main() 160 if (sigaction(SIGTSTP, &act, (struct sigaction *)NULL) == -1) { in main() 166 act.sa_handler = onalarm; in main() [all …]
|
/titanic_50/usr/src/cmd/intrstat/ |
H A D | intrstat.c | 360 struct sigaction act; in main() local 373 (void) sigemptyset(&act.sa_mask); in main() 374 act.sa_flags = 0; in main() 375 act.sa_handler = set_width; in main() 376 (void) sigaction(SIGWINCH, &act, NULL); in main() 378 (void) sigemptyset(&act.sa_mask); in main() 379 act.sa_flags = 0; in main() 380 act.sa_handler = intr; in main() 381 (void) sigaction(SIGUSR1, &act, NULL); in main() 383 (void) sigemptyset(&act.sa_mask); in main() [all …]
|