Searched defs:act (Results 1 - 25 of 118) sorted by relevance

12345

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dabort.c49 struct sigaction act; local
51 if (!sigaction(SIGABRT, NULL, &act) &&
52 act.sa_handler != SIG_DFL && act.sa_handler != SIG_IGN) {
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsiginterrupt.c37 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 Dsignal.c130 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/test/os-tests/tests/secflags/
H A Dsecflags_syscall.c12 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/lib/libproc/common/
H A Dpr_sigaction.c45 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/dtrace/test/tst/common/io/
H A Dtst.fds.c50 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/cmd/syseventd/daemons/syseventd/
H A Dsysevent_signal.c47 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/uts/common/syscall/
H A Dsigaction.c45 struct sigaction act; local
57 * act and oact might be the same address, so copyin act first.
63 if (copyin(actp, &act, sizeof (act)))
69 handler = act.sa_handler;
117 sigutok(&act.sa_mask, &set);
118 setsigact(sig, act.sa_handler, &set, act.sa_flags);
150 * act an
[all...]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Ddriver.c40 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/cmd/mdb/common/mdb/
H A Dmdb_signal.c48 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/format/
H A Dmain.c88 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/lib/libc/port/stdio/
H A Dgetpass.c78 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/ndmpd/ndmp/
H A Dndmpd_main.c201 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/fm/fmd/common/
H A Dfmd_timerq.c250 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...]
H A Dfmd_main.c243 struct sigaction act; local
334 (void) sigfillset(&act.sa_mask);
335 act.sa_handler = handler;
336 act.sa_flags = 0;
338 (void) sigaction(SIGTERM, &act, NULL);
342 (void) sigaction(SIGHUP, &act, NULL);
344 (void) sigaction(SIGINT, &act, NULL);
/illumos-gate/usr/src/cmd/syslogd/
H A Dconf.c48 struct sigaction act; local
70 act.sa_handler = SIG_IGN;
72 (void) sigaction(SIGHUP, &act, NULL);
73 (void) sigaction(SIGALRM, &act, NULL);
74 (void) sigaction(SIGUSR1, &act, NULL);
/illumos-gate/usr/src/lib/libinetutil/common/
H A Deh.c386 struct sigaction act; local
391 act.sa_flags = 0;
392 act.sa_handler = &post_signal;
393 (void) sigemptyset(&act.sa_mask);
394 (void) sigaddset(&act.sa_mask, sig); /* used for sigprocmask() */
396 if (sigaction(sig, &act, NULL) == -1)
399 (void) sigprocmask(SIG_BLOCK, &act.sa_mask, NULL);
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_nswparse.c188 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/oplhpd/
H A Doplhpd.c111 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/rcm_daemon/common/
H A Drcm_main.c296 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);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_stubs.c115 sigaction(int sig, const struct sigaction *act, struct sigaction *oact) argument
/illumos-gate/usr/src/cmd/acpihpd/
H A Dacpihpd.c237 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/cmd/fs.d/ufs/fsck/
H A Dpass2.c402 int act, update_lncntp; local
742 act = -1;
754 act = (reply(PASS2B_PROMPT, idesc->id_number) == 1);
763 act = (reply(PASS2B_PROMPT, idesc->id_number) == 1);
810 if ((act = reply(PASS2B_PROMPT, idesc->id_number)) == 1)
863 else if ((act = reply(PASS2B_PROMPT,
892 act = -1;
931 if ((act = reply("FIX")) == 1) {
959 if (act > 0)
984 if ((act
[all...]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c283 struct sigaction act; local
289 (void) sigfillset(&act.sa_mask);
290 act.sa_handler = signal_handler;
291 act.sa_flags = 0;
293 (void) sigaction(SIGTERM, &act, NULL);
294 (void) sigaction(SIGHUP, &act, NULL);
295 (void) sigaction(SIGINT, &act, NULL);
296 (void) sigaction(SIGPIPE, &act, NULL);
/illumos-gate/usr/src/cmd/sh/
H A Dfault.c136 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...]

Completed in 65 milliseconds

12345