From e96d4bffe5eadd6f70eaefef1d6efcb00f6b23be Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 25 Nov 2013 13:58:38 -0800 Subject: [PATCH] Make standalone. There's no uapi timerfd.h. Bug: 11559337 Change-Id: I77a4b1365fdcf2c9f18673b11341a165e54b4bbd --- libc/include/sys/timerfd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libc/include/sys/timerfd.h b/libc/include/sys/timerfd.h index 0651f1ca6..1aa97b40c 100644 --- a/libc/include/sys/timerfd.h +++ b/libc/include/sys/timerfd.h @@ -29,12 +29,18 @@ #ifndef _SYS_TIMERFD_H_ #define _SYS_TIMERFD_H_ +#include /* For O_CLOEXEC and O_NONBLOCK. */ #include #include -#include __BEGIN_DECLS +#define TFD_TIMER_ABSTIME (1 << 0) +#define TFD_TIMER_CANCEL_ON_SET (1 << 1) + +#define TFD_CLOEXEC O_CLOEXEC +#define TFD_NONBLOCK O_NONBLOCK + extern int timerfd_create(clockid_t, int); extern int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*); -- 2.11.0