[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/7] Added safe_syscalls for time functions.
From: |
Ajeets6 |
Subject: |
[PATCH 7/7] Added safe_syscalls for time functions. |
Date: |
Sat, 22 Apr 2023 21:49:34 +0530 |
From: Warner Losh <imp@bsdimp.com>
+Added safe_syscalls
Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Ajeets6 <itachis6234@gmail.com>
---
bsd-user/freebsd/os-syscall.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 8fd6eb05cb..3d56aff0fd 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -49,6 +49,16 @@
/* *BSD dependent syscall shims */
#include "os-time.h"
+/* used in os-time */
+safe_syscall2(int, nanosleep, const struct timespec *, rqtp, struct timespec *,
+ rmtp);
+safe_syscall4(int, clock_nanosleep, clockid_t, clock_id, int, flags,
+ const struct timespec *, rqtp, struct timespec *, rmtp);
+
+safe_syscall6(int, kevent, int, kq, const struct kevent *, changelist,
+ int, nchanges, struct kevent *, eventlist, int, nevents,
+ const struct timespec *, timeout);
+
/* I/O */
safe_syscall3(int, open, const char *, path, int, flags, mode_t, mode);
safe_syscall4(int, openat, int, fd, const char *, path, int, flags, mode_t,
--
2.34.1
- [PATCH 1/7] Create os-time.c and add t2h_freebsd_timeval, Ajeets6, 2023/04/22
- [PATCH 5/7] Created qemu-os.h for function prototype, Ajeets6, 2023/04/22
- [PATCH 2/7] Create os-time.h and modify os-time.c, Ajeets6, 2023/04/22
- [PATCH 6/7] Added case staements for time functions, Ajeets6, 2023/04/22
- [PATCH 4/7] Added clock_gettime(2) and clock_getres(2), Ajeets6, 2023/04/22
- [PATCH 3/7] Add clock_nanosleep, Ajeets6, 2023/04/22
- [PATCH 7/7] Added safe_syscalls for time functions.,
Ajeets6 <=