aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_timer.h
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2022-05-04 10:06:48 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-06-17 19:34:21 +0000
commitda266f693ccc7ce7fe2da97866a031982ee5581a (patch)
treea8d5f027194676f0b0d6f9a02dad1d56e2b39152 /sys/compat/linux/linux_timer.h
parentff95f72deece477ab31e0ec59cd1ca846d26afdc (diff)
downloadsrc-da266f693ccc7ce7fe2da97866a031982ee5581a.tar.gz
src-da266f693ccc7ce7fe2da97866a031982ee5581a.zip
linux(4): Implement timer_gettime64 syscall.
MFC after: 2 weeks (cherry picked from commit 783c1bd8cb0cf02f2cfb95418b0a115ed975086a)
Diffstat (limited to 'sys/compat/linux/linux_timer.h')
-rw-r--r--sys/compat/linux/linux_timer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_timer.h b/sys/compat/linux/linux_timer.h
index 6b5cf346049e..7617316b09c6 100644
--- a/sys/compat/linux/linux_timer.h
+++ b/sys/compat/linux/linux_timer.h
@@ -104,6 +104,13 @@ struct l_itimerspec {
struct l_timespec it_value;
};
+#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
+struct l_itimerspec64 {
+ struct l_timespec64 it_interval;
+ struct l_timespec64 it_value;
+};
+#endif
+
int native_to_linux_timespec(struct l_timespec *,
struct timespec *);
int linux_to_native_timespec(struct timespec *,
@@ -119,6 +126,13 @@ int native_to_linux_itimerspec(struct l_itimerspec *,
struct itimerspec *);
int linux_to_native_itimerspec(struct itimerspec *,
struct l_itimerspec *);
+#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
+int native_to_linux_itimerspec64(struct l_itimerspec64 *,
+ struct itimerspec *);
+int linux_to_native_itimerspec64(struct itimerspec *,
+ struct l_itimerspec64 *);
+#endif
+
int linux_to_native_timerflags(int *, int);
#endif /* _LINUX_TIMER_H */