Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 1 | /* Generated by ./xlat/gen.sh from ./xlat/timerfdflags.in; do not edit. */ |
| 2 | |
| 3 | static const struct xlat timerfdflags[] = { |
Elliott Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 4 | /* The Linux userspace headers didn't export these for a long time. */ |
| 5 | |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 6 | #if !(defined(TFD_TIMER_ABSTIME) || (defined(HAVE_DECL_TFD_TIMER_ABSTIME) && HAVE_DECL_TFD_TIMER_ABSTIME)) |
Elliott Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 7 | # define TFD_TIMER_ABSTIME (1 << 0) |
| 8 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 9 | 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 Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 11 | # define TFD_TIMER_CANCEL_ON_SET (1 << 1) |
| 12 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 13 | 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 Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 16 | # define TFD_CLOEXEC O_CLOEXEC |
| 17 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 18 | XLAT(TFD_CLOEXEC), |
Elliott Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 19 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 20 | #if !(defined(TFD_NONBLOCK) || (defined(HAVE_DECL_TFD_NONBLOCK) && HAVE_DECL_TFD_NONBLOCK)) |
Elliott Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 21 | # define TFD_NONBLOCK O_NONBLOCK |
| 22 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 23 | XLAT(TFD_NONBLOCK), |
| 24 | XLAT_END |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 25 | }; |