blob: 57af36e158d822247485f404625f7cb7c21b2921 [file] [log] [blame]
Elliott Hughes82728372014-06-06 22:49:31 -07001/* Generated by ./xlat/gen.sh from ./xlat/timerfdflags.in; do not edit. */
2
3static const struct xlat timerfdflags[] = {
Elliott Hughescaca6ee2015-01-06 12:18:17 -08004/* The Linux userspace headers didn't export these for a long time. */
5
Elliott Hughes0328d0a2015-03-18 11:18:43 -07006#if !(defined(TFD_TIMER_ABSTIME) || (defined(HAVE_DECL_TFD_TIMER_ABSTIME) && HAVE_DECL_TFD_TIMER_ABSTIME))
Elliott Hughescaca6ee2015-01-06 12:18:17 -08007# define TFD_TIMER_ABSTIME (1 << 0)
8#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -07009 XLAT(TFD_TIMER_ABSTIME),
10#if !(defined(TFD_TIMER_CANCEL_ON_SET) || (defined(HAVE_DECL_TFD_TIMER_CANCEL_ON_SET) && HAVE_DECL_TFD_TIMER_CANCEL_ON_SET))
Elliott Hughescaca6ee2015-01-06 12:18:17 -080011# define TFD_TIMER_CANCEL_ON_SET (1 << 1)
12#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -070013 XLAT(TFD_TIMER_CANCEL_ON_SET),
14#ifdef O_CLOEXEC
15#if !(defined(TFD_CLOEXEC) || (defined(HAVE_DECL_TFD_CLOEXEC) && HAVE_DECL_TFD_CLOEXEC))
Elliott Hughescaca6ee2015-01-06 12:18:17 -080016# define TFD_CLOEXEC O_CLOEXEC
17#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -070018 XLAT(TFD_CLOEXEC),
Elliott Hughescaca6ee2015-01-06 12:18:17 -080019#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -070020#if !(defined(TFD_NONBLOCK) || (defined(HAVE_DECL_TFD_NONBLOCK) && HAVE_DECL_TFD_NONBLOCK))
Elliott Hughescaca6ee2015-01-06 12:18:17 -080021# define TFD_NONBLOCK O_NONBLOCK
22#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -070023 XLAT(TFD_NONBLOCK),
24 XLAT_END
Elliott Hughes82728372014-06-06 22:49:31 -070025};