diff options
author | nil <niljo@airmail.cc> | 2025-01-14 20:16:17 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2025-01-14 20:16:17 +0100 |
commit | 9cd3e10283ea0c6cc997afc5353c0f314b3aa092 (patch) | |
tree | 4aa0ae912633a0f3e7a7d1405469bb7009cef1ba /.ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h | |
parent | 23a62d70129db30027ba620fc798a666c198ba35 (diff) |
changing host repositorymain
Diffstat (limited to '.ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h')
-rwxr-xr-x | .ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h b/.ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h new file mode 100755 index 0000000..1141015 --- /dev/null +++ b/.ccls-cache/@@home@niliara@configs/@usr@include@bits@types@struct_timespec.h @@ -0,0 +1,33 @@ +/* NB: Include guard matches what <linux/time.h> uses. */ +#ifndef _STRUCT_TIMESPEC +#define _STRUCT_TIMESPEC 1 + +#include <bits/types.h> +#include <bits/endian.h> +#include <bits/types/time_t.h> + +/* POSIX.1b structure for a time value. This is like a `struct timeval' but + has nanoseconds instead of microseconds. */ +struct timespec +{ +#ifdef __USE_TIME64_REDIRECTS + __time64_t tv_sec; /* Seconds. */ +#else + __time_t tv_sec; /* Seconds. */ +#endif +#if __WORDSIZE == 64 \ + || (defined __SYSCALL_WORDSIZE && __SYSCALL_WORDSIZE == 64) \ + || (__TIMESIZE == 32 && !defined __USE_TIME64_REDIRECTS) + __syscall_slong_t tv_nsec; /* Nanoseconds. */ +#else +# if __BYTE_ORDER == __BIG_ENDIAN + int: 32; /* Padding. */ + long int tv_nsec; /* Nanoseconds. */ +# else + long int tv_nsec; /* Nanoseconds. */ + int: 32; /* Padding. */ +# endif +#endif +}; + +#endif |