Home
last modified time | relevance | path

Searched refs:act (Results 1 – 25 of 164) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libc/inc/
H A Dnsswitch_priv.h79 #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 …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_signal.c48 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 …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_nswparse.c188 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()
312 lkp->actions[__NSW_UNAVAIL] = act; in _nsw_getoneconfig_v1()
321 = act; in _nsw_getoneconfig_v1()
[all …]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dconfigd.c133 struct sigaction act; in abort_handler() local
136 act.sa_handler = SIG_DFL; in abort_handler()
137 act.sa_flags = 0; in abort_handler()
478 struct sigaction act; in daemonize_start() local
480 act.sa_sigaction = SIG_DFL; in daemonize_start()
482 act.sa_flags = 0; in daemonize_start()
567 struct sigaction act; in main() local
678 act.sa_sigaction = SIG_IGN; in main()
679 act.sa_flags = 0; in main()
688 act.sa_flags = SA_SIGINFO; in main()
[all …]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Ddriver.c40 PTF_int act; member
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()
174 _misc_request(PTF_int act, FORM *f) in _misc_request() argument
[all …]
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsysevent_signal.c47 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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c1392 for (act = new; act; act = act->next) { in diffconf()
1417 for (act = old; act; act = act->next) { in diffconf()
2167 for (act = actions; act; act = act->next) { in add_items()
2448 for (act = actions; act; act = act->next) { in remove_items()
2598 for (act = actions; act; act = act->next) { in modify_items()
2682 for (act = nactions; act; act = act->next) { in undo_modifys()
8239 for (act = actions; act; act = act->next) { in validconf()
8367 for (act = actions; act; act = act->next) { in validconf()
9360 for (act = conf; act != NULL; act = act->next) { in writeconf()
9532 for (act = conf; act != NULL; act = act->next) {
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_sigaction.c45 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()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnsparse.c141 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()
246 act = __NSW_TRYAGAIN_NTIMES; in _nsw_getoneconfig_v1()
274 = act; in _nsw_getoneconfig_v1()
335 action_t act; in _nsw_getoneconfig() local
411 act = __NSW_RETURN; in _nsw_getoneconfig()
414 act = __NSW_CONTINUE; in _nsw_getoneconfig()
421 act = __NSW_RETURN; in _nsw_getoneconfig()
[all …]
H A Dabort.c49 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()
/illumos-gate/usr/src/cmd/sh/
H A Dfault.c136 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);
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()
450 act.sa_flags = 0; in sh_sleep()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dgetpass.c78 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()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsiginterrupt.c37 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 Dsignal.c130 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()
/illumos-gate/usr/src/cmd/fwflash/plugins/vendor/
H A Dsd-GENERIC.c58 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()
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsd.c334 struct sigaction act; in main() local
350 bzero(&act, sizeof (act)); in main()
528 act.sa_handler = exit_sig_handler; in main()
530 (void) sigemptyset(&act.sa_mask); in main()
531 (void) sigaction(SIGINT, &act, NULL); in main()
532 (void) sigaction(SIGTERM, &act, NULL); in main()
533 (void) sigaction(SIGHUP, &act, NULL); in main()
536 act.sa_handler = vntsd_sig_handler; in main()
537 (void) sigemptyset(&act.sa_mask); in main()
538 (void) sigaction(SIGUSR1, &act, NULL); in main()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsigaction.c690 struct sigaction act; in signal_init() local
703 act.sa_sigaction != SIG_DFL && in signal_init()
705 act = *sap; in signal_init()
706 act.sa_flags &= ~SA_NODEFER; in signal_init()
708 act.sa_mask = maskset; in signal_init()
750 struct sigaction act; in setup_cancelsig() local
756 if (act.sa_sigaction == SIG_DFL || in setup_cancelsig()
757 act.sa_sigaction == SIG_IGN) in setup_cancelsig()
758 act.sa_flags = SA_SIGINFO; in setup_cancelsig()
760 act.sa_flags |= SA_SIGINFO; in setup_cancelsig()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_main.c201 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()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspdsock.c770 bzero(act, sizeof (*act)); in spdsock_reset_act()
851 spdsock_reset_act(&act); in spdsock_ext_to_actvec()
860 spdsock_reset_act(&act); in spdsock_ext_to_actvec()
874 *actp++ = act; in spdsock_ext_to_actvec()
875 spdsock_reset_act(&act); in spdsock_ext_to_actvec()
1640 switch (act->ipa_type) { in spdsock_encode_action()
1712 act->spd_actions_len = 0; in spdsock_encode_action_list()
1718 offset += sizeof (*act); in spdsock_encode_action_list()
2320 cur += sizeof (*act); in spdsock_alglist()
2463 cur += sizeof (*act); in spdsock_dumpalgs()
[all …]
/illumos-gate/usr/src/cmd/intrstat/
H A Dintrstat.c360 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()
378 (void) sigemptyset(&act.sa_mask); in main()
379 act.sa_flags = 0; in main()
380 act.sa_handler = intr; in main()
383 (void) sigemptyset(&act.sa_mask); in main()
384 act.sa_flags = 0; in main()
385 act.sa_handler = status; in main()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Dmain.c114 struct sigaction act; in main() local
174 act.sa_handler = cmdabort; in main()
175 (void) memset(&act.sa_mask, 0, sizeof (sigset_t)); in main()
176 act.sa_flags = SA_RESTART | SA_NODEFER; in main()
177 if (sigaction(SIGINT, &act, NULL) == -1) { in main()
183 act.sa_handler = onsusp; in main()
185 act.sa_flags = SA_RESTART | SA_NODEFER; in main()
186 if (sigaction(SIGTSTP, &act, NULL) == -1) { in main()
192 act.sa_handler = onalarm; in main()
194 act.sa_flags = SA_RESTART; in main()
[all …]
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Ddcs_ses.c401 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()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c283 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()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c50 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()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_timerq.c250 struct sigaction act; in fmd_timerq_create() local
255 act.sa_handler = fmd_timerq_alrm; in fmd_timerq_create()
256 act.sa_flags = 0; in fmd_timerq_create()
257 (void) sigemptyset(&act.sa_mask); in fmd_timerq_create()
258 (void) sigaction(SIGALRM, &act, NULL); in fmd_timerq_create()
270 struct sigaction act; in fmd_timerq_destroy() local
297 act.sa_handler = SIG_DFL; in fmd_timerq_destroy()
298 act.sa_flags = 0; in fmd_timerq_destroy()
299 (void) sigemptyset(&act.sa_mask); in fmd_timerq_destroy()
300 (void) sigaction(SIGALRM, &act, NULL); in fmd_timerq_destroy()

1234567