aboutsummaryrefslogtreecommitdiff
path: root/xlat/timerfdflags.h
blob: 2483df8978aa09d6fc9dfcf08e7d32b7f9a28529 (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
29
30
31
32
33
34
35
36
/* Generated by ./xlat/gen.sh from ./xlat/timerfdflags.in; do not edit. */
#if !(defined(TFD_TIMER_ABSTIME) || (defined(HAVE_DECL_TFD_TIMER_ABSTIME) && HAVE_DECL_TFD_TIMER_ABSTIME))
# define TFD_TIMER_ABSTIME (1 << 0)
#endif
#if !(defined(TFD_TIMER_CANCEL_ON_SET) || (defined(HAVE_DECL_TFD_TIMER_CANCEL_ON_SET) && HAVE_DECL_TFD_TIMER_CANCEL_ON_SET))
# define TFD_TIMER_CANCEL_ON_SET (1 << 1)
#endif
#if defined TFD_CLOEXEC || defined O_CLOEXEC
#if !(defined(TFD_CLOEXEC) || (defined(HAVE_DECL_TFD_CLOEXEC) && HAVE_DECL_TFD_CLOEXEC))
# define TFD_CLOEXEC O_CLOEXEC
#endif
#endif
#if !(defined(TFD_NONBLOCK) || (defined(HAVE_DECL_TFD_NONBLOCK) && HAVE_DECL_TFD_NONBLOCK))
# define TFD_NONBLOCK O_NONBLOCK
#endif

#ifdef IN_MPERS

# error static const struct xlat timerfdflags in mpers mode

#else

static
const struct xlat timerfdflags[] = {
/* The Linux userspace headers didn't export these for a long time. */

 XLAT(TFD_TIMER_ABSTIME),
 XLAT(TFD_TIMER_CANCEL_ON_SET),
#if defined TFD_CLOEXEC || defined O_CLOEXEC
 XLAT(TFD_CLOEXEC),
#endif
 XLAT(TFD_NONBLOCK),
 XLAT_END
};

#endif /* !IN_MPERS */