Home
last modified time | relevance | path

Searched refs:sigact (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtilPosix.cpp63 struct sigaction sigact = {}; in SetSigaction() local
64 if (sigaction(signum, nullptr, &sigact)) { in SetSigaction()
68 if (sigact.sa_flags & SA_SIGINFO) { in SetSigaction()
69 if (sigact.sa_sigaction) { in SetSigaction()
72 upstream_segv_handler = sigact.sa_sigaction; in SetSigaction()
75 if (sigact.sa_handler != SIG_DFL && sigact.sa_handler != SIG_IGN && in SetSigaction()
76 sigact.sa_handler != SIG_ERR) in SetSigaction()
84 new_sigact.sa_flags = SA_SIGINFO | (sigact.sa_flags & SA_ONSTACK); in SetSigaction()
/freebsd/bin/sh/
H A Dtrap.c254 sig_t sigact = SIG_DFL; in setsignal() local
295 if (!getsigaction(signo, &sigact)) { in setsignal()
303 if (sigact == SIG_IGN) { in setsignal()
316 case S_DFL: sigact = SIG_DFL; break; in setsignal()
317 case S_CATCH: sigact = onsig; break; in setsignal()
318 case S_IGN: sigact = SIG_IGN; break; in setsignal()
321 sa.sa_handler = sigact; in setsignal()
332 getsigaction(int signo, sig_t *sigact) in getsigaction() argument
338 *sigact = (sig_t) sa.sa_handler; in getsigaction()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp156 struct sigaction sigact; in Abort() local
157 internal_memset(&sigact, 0, sizeof(sigact)); in Abort()
158 sigact.sa_handler = SIG_DFL; in Abort()
159 internal_sigaction(SIGABRT, &sigact, nullptr); in Abort()
217 struct sigaction sigact; in MaybeInstallSigaction() local
218 internal_memset(&sigact, 0, sizeof(sigact)); in MaybeInstallSigaction()
219 sigact.sa_sigaction = (sa_sigaction_t)handler; in MaybeInstallSigaction()
222 sigact.sa_flags = SA_SIGINFO | SA_NODEFER; in MaybeInstallSigaction()
223 if (common_flags()->use_sigaltstack) sigact.sa_flags |= SA_ONSTACK; in MaybeInstallSigaction()
224 CHECK_EQ(0, internal_sigaction(signum, &sigact, nullptr)); in MaybeInstallSigaction()
/freebsd/contrib/llvm-project/compiler-rt/lib/stats/
H A Dstats.cpp124 struct sigaction sigact; in WriteReportOnExitOrSignal() local
125 internal_memset(&sigact, 0, sizeof(sigact)); in WriteReportOnExitOrSignal()
126 sigact.sa_handler = USR2Handler; in WriteReportOnExitOrSignal()
127 internal_sigaction(SIGUSR2, &sigact, nullptr); in WriteReportOnExitOrSignal()
/freebsd/crypto/openssh/openbsd-compat/
H A Dsigact.c49 sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact) in sigaction() argument
51 return sigvec(sig, sigact ? &sigact->sv : NULL, in sigaction()
H A Dsigact.h81 int sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact);
H A DMakefile.in53 sigact.o \
/freebsd/lib/libthr/thread/
H A Dthr_sig.c54 struct sigaction sigact; member
222 act = usa->sigact; in thr_sighandler()
471 usa->sigact = oact; in _thr_signal_init()
473 remove_thr_signals(&usa->sigact.sa_mask); in _thr_signal_init()
510 actp = &usa->sigact; in _thr_sigact_unload()
590 oldact2 = usa->sigact; in __thr_sigaction()
602 usa->sigact = newact; in __thr_sigaction()
603 remove_thr_signals(&usa->sigact.sa_mask); in __thr_sigaction()
612 usa->sigact = oldact2; in __thr_sigaction()
623 oldact = usa->sigact; in __thr_sigaction()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c280 struct sigaction sigact; in init() local
286 sigact.sa_handler = SIG_IGN; in init()
287 sigact.sa_flags = 0; in init()
288 sigemptyset(&sigact.sa_mask); in init()
289 if (sigaction(SIGPIPE, &sigact, (struct sigaction *)NULL) < 0) { in init()
/freebsd/crypto/openssh/
H A D.depend5 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
6 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
7 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
8 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
9 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
10 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
11 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
12 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
13 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
14 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r…
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dsigaction.c42 _nc_sigaction(int sig, sigaction_t * sigact, sigaction_t * osigact) in _nc_sigaction() argument
44 return sigvec(sig, sigact, osigact); in _nc_sigaction()
/freebsd/tools/test/gpioevents/
H A Dgpioevents.c438 struct sigaction sigact; in run_sigio() local
442 bzero(&sigact, sizeof(sigact)); in run_sigio()
443 sigact.sa_handler = sigio_handler; in run_sigio()
444 if (sigaction(SIGIO, &sigact, NULL) < 0) in run_sigio()
/freebsd/tests/sys/netlink/
H A Dnetlink_socket.c59 static struct sigaction sigact = { variable
129 ATF_REQUIRE(sigaction(SIGALRM, &sigact, NULL) == 0); in ATF_TC_BODY()
/freebsd/lib/libc/gen/
H A Dposix_spawn.c94 struct sigaction sigact = { .sa_flags = 0, .sa_handler = SIG_DFL }; in process_spawnattr() local
138 if (__sys_sigaction(i, &sigact, NULL) != 0) in process_spawnattr()
/freebsd/tests/sys/kern/
H A Dunix_dgram.c58 static struct sigaction sigact = { variable
141 ATF_REQUIRE(sigaction(SIGALRM, &sigact, NULL) == 0); in ATF_TC_BODY()
/freebsd/contrib/bmake/
H A DFILES62 sigact.h
H A DChangeLog1146 sigact.c
1148 * Add sigact.c as sigaction.c so this "just works".
1150 sigaction (I only just noticed that sigact.c wasn't here ;-)