Add EPOLLRDHUP constant
[uclibc-ng.git] / librt / kernel-posix-timers.h
blobbf246c925bbfe2212d89600e45471ae156250cc0
1 /*
2 * kernel-posix-timers.h - kernel-dependent definitions for POSIX timers.
3 */
5 #include <features.h>
6 #include <setjmp.h>
7 #include <signal.h>
8 #include <sys/types.h>
9 #ifdef __UCLIBC_HAS_THREADS__
10 #include <pthread.h>
11 #endif
13 /* Type of timers in the kernel */
14 typedef int kernel_timer_t;
16 /* Internal representation of timer */
17 struct timer {
18 /* Notification mechanism */
19 int sigev_notify;
21 /* Timer ID returned by the kernel */
22 kernel_timer_t ktimerid;
25 * All new elements must be added after ktimerid. And if the thrfunc
26 * element is not the third element anymore the memory allocation in
27 * timer_create needs to be changed.
30 /* Parameters for the thread to be started for SIGEV_THREAD */
31 void (*thrfunc) (sigval_t);
32 sigval_t sival;
33 #ifdef __UCLIBC_HAS_THREADS__
34 pthread_attr_t attr;
35 #endif