File: struct___timeval64.h

package info (click to toggle)
glibc 2.42-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312,360 kB
  • sloc: ansic: 1,060,858; asm: 238,416; makefile: 20,960; python: 13,509; sh: 11,828; cpp: 5,188; awk: 1,794; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (17 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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  */