diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:36:41 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:36:41 -0500 |
| commit | f4f929b02eaed8ef8b798780ee5640bdd6809867 (patch) | |
| tree | 2a3b559ed1184b3a585201f820ffc7a249fe0d05 /src/signal/bsd_signal.c | |
| parent | 635f3167091b5f7419cef9b24810f24269f40a37 (diff) | |
update standard and safety checks
Diffstat (limited to 'src/signal/bsd_signal.c')
| -rw-r--r-- | src/signal/bsd_signal.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/signal/bsd_signal.c b/src/signal/bsd_signal.c deleted file mode 100644 index 7f87b4e1..00000000 --- a/src/signal/bsd_signal.c +++ /dev/null @@ -1,26 +0,0 @@ -#if 0 - -#include <signal.h> - -void (*bsd_signal(int sig, void (*func)(int)))(int) -{ - struct sigaction act, oact; - act.sa_handler = func; - act.sa_flags = SA_RESTART; - - sigemptyset(&act.sa_mask); - sigaddset(&act.sa_mask, sig); - - if (sigaction(sig, &act, &oact) == -1) { - return SIG_ERR; - } - - return oact.sa_handler; -} - -/* -XOPEN(400,700) -*/ - - -#endif |
