OSDN Git Service

fix ARM types that are known to have MMU's to select ARCH_HAS_MMU
[uclinux-h8/uClibc.git] / librt / kernel-posix-timers.h
1 /*
2  * kernel-posix-timers.h - kernel-dependent definitions for POSIX timers.
3  */
4
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
12
13 /* Type of timers in the kernel */
14 typedef int kernel_timer_t;
15
16 /* Internal representation of timer */
17 struct timer {
18     /* Notification mechanism */
19     int sigev_notify;
20
21     /* Timer ID returned by the kernel */
22     kernel_timer_t ktimerid;
23
24     /*
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.
28      */
29
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
36 };