blob: 86cb0501d3e20428b749eb2156bf5abc301e1c20 [file] [log] [blame]
Davide Libenzib215e282007-05-10 22:23:16 -07001/*
2 * include/linux/timerfd.h
3 *
4 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
5 *
6 */
7
8#ifndef _LINUX_TIMERFD_H
9#define _LINUX_TIMERFD_H
10
Ulrich Drepper6b1ef0e2008-07-23 21:29:39 -070011/* For O_CLOEXEC and O_NONBLOCK */
Ulrich Drepper11fcb6c2008-07-23 21:29:26 -070012#include <linux/fcntl.h>
Davide Libenzib215e282007-05-10 22:23:16 -070013
Ulrich Drepper11fcb6c2008-07-23 21:29:26 -070014/* Flags for timerfd_settime. */
Davide Libenzib215e282007-05-10 22:23:16 -070015#define TFD_TIMER_ABSTIME (1 << 0)
16
Ulrich Drepper11fcb6c2008-07-23 21:29:26 -070017/* Flags for timerfd_create. */
18#define TFD_CLOEXEC O_CLOEXEC
Ulrich Drepper6b1ef0e2008-07-23 21:29:39 -070019#define TFD_NONBLOCK O_NONBLOCK
Davide Libenzib215e282007-05-10 22:23:16 -070020
21
22#endif /* _LINUX_TIMERFD_H */
23