defer free of thread-local dlerror buffers from inconsistent context
[musl.git] / include / sys / timerfd.h
blob2794d36a6c2b2b37e8f7f2d4f28c02e85223de06
1 #ifndef _SYS_TIMERFD_H
2 #define _SYS_TIMERFD_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <time.h>
9 #include <fcntl.h>
11 #define TFD_NONBLOCK O_NONBLOCK
12 #define TFD_CLOEXEC O_CLOEXEC
14 #define TFD_TIMER_ABSTIME 1
15 #define TFD_TIMER_CANCEL_ON_SET (1 << 1)
17 struct itimerspec;
19 int timerfd_create(int, int);
20 int timerfd_settime(int, int, const struct itimerspec *, struct itimerspec *);
21 int timerfd_gettime(int, struct itimerspec *);
23 #ifdef __cplusplus
25 #endif
27 #endif