diff options
Diffstat (limited to 'src/libstddjb/selfpipe-internal.h')
-rw-r--r-- | src/libstddjb/selfpipe-internal.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libstddjb/selfpipe-internal.h b/src/libstddjb/selfpipe-internal.h new file mode 100644 index 0000000..994c179 --- /dev/null +++ b/src/libstddjb/selfpipe-internal.h @@ -0,0 +1,28 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#ifndef SELFPIPE_INTERNAL_H +#define SELFPIPE_INTERNAL_H + +#include <signal.h> +#include <skalibs/sysdeps.h> + +extern sigset_t selfpipe_caught ; + +#ifdef SKALIBS_HASSIGNALFD + +extern int selfpipe_fd ; + +#else + +#include <skalibs/sig.h> + +extern int selfpipe[2] ; +#define selfpipe_fd selfpipe[0] + +extern struct skasigaction const selfpipe_ssa ; + +#endif + +#endif |