27#if __has_include(<unistd.h>)
31void FC_FUNC_(block_signals, BLOCK_SIGNALS)() {
35 act.sa_handler = SIG_IGN;
36 sigemptyset(&act.sa_mask);
44void FC_FUNC_(unblock_signals, UNBLOCK_SIGNALS)() {
48 act.sa_handler = SIG_DFL;
49 sigemptyset(&act.sa_mask);
70void FC_FUNC_(trap_segfault, TRAP_SEGFAULT)() {
74 sigemptyset(&act.sa_mask);
76 act.sa_flags = SA_SIGINFO;
95 strcpy(signame, strsignal(*signum));
97 strcpy(signame,
"(description not available)");
void segv_handler(int signum, siginfo_t *si, void *vd)
void FC_FUNC_(unblock_signals, UNBLOCK_SIGNALS)()
__sighandler_t signal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
void get_signal_description(fint *signum, char *signame)
int kill(__pid_t __pid, int __sig) __attribute__((__nothrow__
int sigaction(int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) __attribute__((__nothrow__