We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d12dfa commit d4d9d0aCopy full SHA for d4d9d0a
options/ansi/include/bits/ansi/timespec.h
@@ -5,8 +5,13 @@
5
#include <bits/ansi/time_t.h>
6
#include <bits/field-padding.h>
7
8
+// Equivalent of timespec64 in glibc.
9
+// Should be used only with 64-bit syscalls
10
+// or with appropriate compat syscalls.
11
struct timespec {
12
time_t tv_sec;
13
+ // tv_nspec is required to be long by the C standard.
14
+ // However linux kernel expects long long. So we add padding.
15
__MLIBC_FIELD_PADDED(long, tv_nsec, long long);
16
};
17
0 commit comments