1827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes/* Generated by ./xlat/gen.sh from ./xlat/timerfdflags.in; do not edit. */
20328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes#if !(defined(TFD_TIMER_ABSTIME) || (defined(HAVE_DECL_TFD_TIMER_ABSTIME) && HAVE_DECL_TFD_TIMER_ABSTIME))
3caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes# define TFD_TIMER_ABSTIME (1 << 0)
4caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes#endif
50328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes#if !(defined(TFD_TIMER_CANCEL_ON_SET) || (defined(HAVE_DECL_TFD_TIMER_CANCEL_ON_SET) && HAVE_DECL_TFD_TIMER_CANCEL_ON_SET))
6caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes# define TFD_TIMER_CANCEL_ON_SET (1 << 1)
7caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes#endif
88948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#if defined TFD_CLOEXEC || defined O_CLOEXEC
90328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes#if !(defined(TFD_CLOEXEC) || (defined(HAVE_DECL_TFD_CLOEXEC) && HAVE_DECL_TFD_CLOEXEC))
10caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes# define TFD_CLOEXEC O_CLOEXEC
11caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes#endif
12caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes#endif
130328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes#if !(defined(TFD_NONBLOCK) || (defined(HAVE_DECL_TFD_NONBLOCK) && HAVE_DECL_TFD_NONBLOCK))
14caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes# define TFD_NONBLOCK O_NONBLOCK
15caca6eeed8d78749feb75013d5d0e0bdd5574961Elliott Hughes#endif
168948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
178948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#ifdef IN_MPERS
188948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
198948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes# error static const struct xlat timerfdflags in mpers mode
208948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
218948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#else
228948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
238948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughesstatic
248948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughesconst struct xlat timerfdflags[] = {
258948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes/* The Linux userspace headers didn't export these for a long time. */
268948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
278948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(TFD_TIMER_ABSTIME),
288948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(TFD_TIMER_CANCEL_ON_SET),
298948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#if defined TFD_CLOEXEC || defined O_CLOEXEC
308948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes XLAT(TFD_CLOEXEC),
318948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#endif
320328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes XLAT(TFD_NONBLOCK),
330328d0a8a4c8c60cb7e4651f45f62f06823d5acbElliott Hughes XLAT_END
34827283714cf6f0ff11f3b46a98203cb3c8fd920bElliott Hughes};
358948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes
368948469fa2b0466425995b7e843b1659eb2779e7Elliott Hughes#endif /* !IN_MPERS */
37