[PATCH 7/7] Added safe_syscalls for time functions.

2023-04-22 Thread Ajeets6
From: Warner Losh +Added safe_syscalls Signed-off-by: Warner Losh Signed-off-by: Ajeets6 --- 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

[PATCH 1/7] Create os-time.c and add t2h_freebsd_timeval

2023-04-22 Thread Ajeets6
From: Stacey Son os-time.c contains various functions to convert FreeBSD-specific time structure between host and guest formats Signed-off-by: Ajeets6 Signed-off-by: Stacey Son --- bsd-user/freebsd/os-time.c | 41 ++ 1 file changed, 41 insertions

[PATCH 4/7] Added clock_gettime(2) and clock_getres(2)

2023-04-22 Thread Ajeets6
From: Stacey Son +Added clock_gettime(2) which gets the time +Added clock_getres(2) which finds the resoultion of the specidfied clock Signed-off-by: Ajeets6 Signed-off-by: Stacey Son --- bsd-user/freebsd/os-time.h | 32 1 file changed, 32 insertions(+) diff

[PATCH 2/7] Create os-time.h and modify os-time.c

2023-04-22 Thread Ajeets6
From: Stacey Son +add nanosleep(2) in os-time.h +add t2h_freebsd_timeval and h2t_freebsd_timeval time conversion functions -remove t2h_freebsd_timeval in os-time.c Co-Authored-By: Kyle Evans Signed-off-by: Ajeets6 Signed-off-by: Kyle Evans Signed-off-by: Stacey Son --- bsd-user/freebsd/os

[PATCH 6/7] Added case staements for time functions

2023-04-22 Thread Ajeets6
From: Warner Losh +Added cases for nanosleep(2),clock_nanosleep(2),clock_gettime(2) and clock_getres(2) +Updated meson.build Signed-off-by: Warner Losh Signed-off-by: Ajeets6 --- bsd-user/freebsd/meson.build | 1 + bsd-user/freebsd/os-syscall.c | 20 2 files changed

[PATCH 5/7] Created qemu-os.h for function prototype

2023-04-22 Thread Ajeets6
From: Stacey Son +Added t2h_freebsd_timespec and h2t_freebsd_timespec function protype in qemu-is.h +included qemu-os.h in os-time.c and os-time.h Signed-off-by: Stacey Son Signed-off-by: Ajeets6 --- bsd-user/freebsd/os-time.c | 2 ++ bsd-user/freebsd/os-time.h | 5 - bsd-user/freebsd

[PATCH 3/7] Add clock_nanosleep

2023-04-22 Thread Ajeets6
From: Kyle Evans +Add clock_nanosleep(2) Provide sleep interval in nanoseconds and allows to choose which clock to measure it against. Signed-off-by: Ajeets6 Signed-off-by: Kyle Evans --- bsd-user/freebsd/os-time.h | 21 + 1 file changed, 21 insertions(+) diff --git a/bsd