summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe-internal.h
blob: 08d57389955eb4d4b8886662562128cec37066db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 sig_func_ref selfpipe_tophalf ;

#endif

#endif