[PATCH v4 4/8] kernel_timespec.h: Add a kernel_timespec_t struct

Alistair Francis alistair.francis at wdc.com
Tue Mar 10 00:43:00 UTC 2020


Add a kernel_timespec_t struct based on the definition in the Linux
kernel locatied at include/uapi/linux/time.h.

Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
 kernel_timespec.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel_timespec.h b/kernel_timespec.h
index 90133f8d..0d541333 100644
--- a/kernel_timespec.h
+++ b/kernel_timespec.h
@@ -22,4 +22,9 @@ typedef struct {
 
 # endif /* HAVE_ARCH_TIME32_SYSCALLS */
 
+typedef struct {
+	kernel_long_t tv_sec;
+	long tv_nsec;
+} kernel_timespec_t;
+
 #endif /* !STRACE_KERNEL_TIMESPEC_H */
-- 
2.25.1



More information about the Strace-devel mailing list