summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_timer.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-05-01 06:42:39 +0000
committerdchagin <dchagin@FreeBSD.org>2017-05-01 06:42:39 +0000
commitb13bdd10aae1b3772574414ad11309354d8bba6f (patch)
treec31df49cc76014457a6b472296269932694fd113 /sys/compat/linux/linux_timer.h
parentebdc0abc89aed8dee01bd57e38e078ae868d5f33 (diff)
downloadFreeBSD-src-b13bdd10aae1b3772574414ad11309354d8bba6f.zip
FreeBSD-src-b13bdd10aae1b3772574414ad11309354d8bba6f.tar.gz
MFC r316426:
Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with the proper handling of the TIMER_ABSTIME flag.
Diffstat (limited to 'sys/compat/linux/linux_timer.h')
-rw-r--r--sys/compat/linux/linux_timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_timer.h b/sys/compat/linux/linux_timer.h
index 4092dc6..f06c216 100644
--- a/sys/compat/linux/linux_timer.h
+++ b/sys/compat/linux/linux_timer.h
@@ -72,6 +72,7 @@
#define LINUX_CPUCLOCK_PERTHREAD(clock) \
(((clock) & (clockid_t) LINUX_CPUCLOCK_PERTHREAD_MASK) != 0)
+#define LINUX_TIMER_ABSTIME 0x01
#define L_SIGEV_SIGNAL 0
#define L_SIGEV_NONE 1
@@ -120,5 +121,6 @@ int native_to_linux_itimerspec(struct l_itimerspec *,
struct itimerspec *);
int linux_to_native_itimerspec(struct itimerspec *,
struct l_itimerspec *);
+int linux_to_native_timerflags(int *, int);
#endif /* _LINUX_TIMER_H */
OpenPOWER on IntegriCloud