summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/selfpipe_internal.c')
-rw-r--r--src/libstddjb/selfpipe_internal.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/libstddjb/selfpipe_internal.c b/src/libstddjb/selfpipe_internal.c
deleted file mode 100644
index 45063bc..0000000
--- a/src/libstddjb/selfpipe_internal.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* ISC license. */
-
-/* MT-unsafe */
-
-#include <signal.h>
-
-#include <skalibs/sysdeps.h>
-#include "selfpipe-internal.h"
-
-sigset_t selfpipe_caught ;
-
-#ifdef SKALIBS_HASSIGNALFD
-
-int selfpipe_fd = -1 ;
-
-#else
-
-#include <unistd.h>
-#include <errno.h>
-
-#include <skalibs/allreadwrite.h>
-
-int selfpipe[2] = { -1, -1 } ;
-
-void selfpipe_tophalf (int s)
-{
- int e = errno ;
- unsigned char c = (unsigned char)s ;
- write(selfpipe[1], (char *)&c, 1) ;
- errno = e ;
-}
-
-#endif