/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerUtilPosix.cpp | 63 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 D | trap.c | 254 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 D | sanitizer_posix_libcdep.cpp | 156 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 D | stats.cpp | 124 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 D | sigact.c | 49 sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact) in sigaction() argument 51 return sigvec(sig, sigact ? &sigact->sv : NULL, in sigaction()
|
H A D | sigact.h | 81 int sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact);
|
H A D | Makefile.in | 53 sigact.o \
|
/freebsd/lib/libthr/thread/ |
H A D | thr_sig.c | 54 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 D | unix_cmsg.c | 280 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 | .depend | 5 …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 D | sigaction.c | 42 _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 D | gpioevents.c | 438 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 D | netlink_socket.c | 59 static struct sigaction sigact = { variable 129 ATF_REQUIRE(sigaction(SIGALRM, &sigact, NULL) == 0); in ATF_TC_BODY()
|
/freebsd/lib/libc/gen/ |
H A D | posix_spawn.c | 94 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 D | unix_dgram.c | 58 static struct sigaction sigact = { variable 141 ATF_REQUIRE(sigaction(SIGALRM, &sigact, NULL) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/bmake/ |
H A D | FILES | 62 sigact.h
|
H A D | ChangeLog | 1146 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 ;-)
|