struct___timeval64.h 551 B

1234567891011121314151617
  1. #ifndef _STRUCT_TIMEVAL64_H
  2. #define _STRUCT_TIMEVAL64_H
  3. #if __TIMESIZE == 64
  4. # define __timeval64 timeval
  5. #else
  6. /* The glibc Y2038-proof struct __timeval64 structure for a time value.
  7. This structure is NOT supposed to be passed to the Linux kernel.
  8. Instead, it shall be converted to struct __timespec64 and time shall
  9. be [sg]et via clock_[sg]ettime (which are now Y2038 safe). */
  10. struct __timeval64
  11. {
  12. __time64_t tv_sec; /* Seconds */
  13. __suseconds64_t tv_usec; /* Microseconds */
  14. };
  15. #endif
  16. #endif /* _STRUCT_TIMEVAL64_H */