am 6fcdba7a: am a98fff25: Merge "Make <sys/timerfd.h> standalone."

* commit '6fcdba7a12eb1fdca200d725d09d27a69ee7b78a':
  Make <sys/timerfd.h> standalone.
This commit is contained in:
Elliott Hughes 2013-11-25 14:09:32 -08:00 committed by Android Git Automerger
commit 1c9d30540e

View File

@ -29,12 +29,18 @@
#ifndef _SYS_TIMERFD_H_
#define _SYS_TIMERFD_H_
#include <fcntl.h> /* For O_CLOEXEC and O_NONBLOCK. */
#include <time.h>
#include <sys/types.h>
#include <linux/timerfd.h>
__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*);