summaryrefslogtreecommitdiff
path: root/time/bits/types/struct_timespec.h
diff options
context:
space:
mode:
Diffstat (limited to 'time/bits/types/struct_timespec.h')
-rw-r--r--time/bits/types/struct_timespec.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/time/bits/types/struct_timespec.h b/time/bits/types/struct_timespec.h
new file mode 100644
index 0000000000..5b77c52b4f
--- /dev/null
+++ b/time/bits/types/struct_timespec.h
@@ -0,0 +1,15 @@
+/* NB: Include guard matches what <linux/time.h> uses. */
+#ifndef _STRUCT_TIMESPEC
+#define _STRUCT_TIMESPEC 1
+
+#include <bits/types.h>
+
+/* POSIX.1b structure for a time value. This is like a `struct timeval' but
+ has nanoseconds instead of microseconds. */
+struct timespec
+{
+ __time_t tv_sec; /* Seconds. */
+ __syscall_slong_t tv_nsec; /* Nanoseconds. */
+};
+
+#endif