logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

time_types.h (1267B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_TIME_TYPES_H
  3. #define _LINUX_TIME_TYPES_H
  4. #include <linux/types.h>
  5. struct __kernel_timespec {
  6. __kernel_time64_t tv_sec; /* seconds */
  7. long long tv_nsec; /* nanoseconds */
  8. };
  9. struct __kernel_itimerspec {
  10. struct __kernel_timespec it_interval; /* timer period */
  11. struct __kernel_timespec it_value; /* timer expiration */
  12. };
  13. /*
  14. * legacy timeval structure, only embedded in structures that
  15. * traditionally used 'timeval' to pass time intervals (not absolute
  16. * times). Do not add new users. If user space fails to compile
  17. * here, this is probably because it is not y2038 safe and needs to
  18. * be changed to use another interface.
  19. */
  20. #ifndef __kernel_old_timeval
  21. struct __kernel_old_timeval {
  22. __kernel_long_t tv_sec;
  23. __kernel_long_t tv_usec;
  24. };
  25. #endif
  26. struct __kernel_old_timespec {
  27. __kernel_old_time_t tv_sec; /* seconds */
  28. long tv_nsec; /* nanoseconds */
  29. };
  30. struct __kernel_old_itimerval {
  31. struct __kernel_old_timeval it_interval;/* timer interval */
  32. struct __kernel_old_timeval it_value; /* current value */
  33. };
  34. struct __kernel_sock_timeval {
  35. __s64 tv_sec;
  36. __s64 tv_usec;
  37. };
  38. #endif /* _LINUX_TIME_TYPES_H */