123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef _SYS_TIMERFD_H
- #define _SYS_TIMERFD_H 1
- #include <time.h>
- enum
- {
- TFD_CLOEXEC = 02000000,
- #define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 04000
- #define TFD_NONBLOCK TFD_NONBLOCK
- };
- enum
- {
- TFD_TIMER_ABSTIME = 1 << 0
- #define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME
- };
- __BEGIN_DECLS
- extern int timerfd_create (clockid_t __clock_id, int __flags) __THROW;
- extern int timerfd_settime (int __ufd, int __flags,
- __const struct itimerspec *__utmr,
- struct itimerspec *__otmr) __THROW;
- extern int timerfd_gettime (int __ufd, struct itimerspec *__otmr) __THROW;
- __END_DECLS
- #endif
|