summaryrefslogtreecommitdiff
path: root/src/signal/bsd_signal.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 13:36:41 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 13:36:41 -0500
commitf4f929b02eaed8ef8b798780ee5640bdd6809867 (patch)
tree2a3b559ed1184b3a585201f820ffc7a249fe0d05 /src/signal/bsd_signal.c
parent635f3167091b5f7419cef9b24810f24269f40a37 (diff)
update standard and safety checks
Diffstat (limited to 'src/signal/bsd_signal.c')
-rw-r--r--src/signal/bsd_signal.c26
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