zig/lib/libc/glibc/include/struct___timeval64.h
Andrew Kelley 19ca2415f2 update glibc start files to 2.34
This commit introduces tools/update_glibc.zig to update the start files
for next time.

Some notable changes in recent glibc:

 * abi-note.S has been changed to abi-note.c but we resist the change to
   keep it easier to compile the start files.
 * elf-init.c has been deleted upstream. Further testing should be done
   to verify that binaries against glibc omitting elf-init.c still run
   properly on oldel glibc linux systems.

Closes #4926
2021-12-15 14:30:03 -07:00

18 lines
551 B
C
Vendored

#ifndef _STRUCT_TIMEVAL64_H
#define _STRUCT_TIMEVAL64_H
#if __TIMESIZE == 64
# define __timeval64 timeval
#else
/* The glibc Y2038-proof struct __timeval64 structure for a time value.
This structure is NOT supposed to be passed to the Linux kernel.
Instead, it shall be converted to struct __timespec64 and time shall
be [sg]et via clock_[sg]ettime (which are now Y2038 safe). */
struct __timeval64
{
__time64_t tv_sec; /* Seconds */
__suseconds64_t tv_usec; /* Microseconds */
};
#endif
#endif /* _STRUCT_TIMEVAL64_H */