mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
time: Add a __itimerval64 struct
Add a __itimerval64 which always uses a 64-bit time_t. Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
d1876749a8
commit
933dc0e570
@ -110,6 +110,7 @@ struct __timeval64
|
||||
|
||||
#if __TIMESIZE == 64
|
||||
# define __utimbuf64 utimbuf
|
||||
# define __itimerval64 itimerval
|
||||
#else
|
||||
/* The glibc Y2038-proof struct __utimbuf64 structure for file's access
|
||||
and modification time values. */
|
||||
@ -118,6 +119,12 @@ struct __utimbuf64
|
||||
__time64_t actime; /* Access time. */
|
||||
__time64_t modtime; /* Modification time. */
|
||||
};
|
||||
/* The glibc's internal representation of the struct itimerval. */
|
||||
struct __itimerval64
|
||||
{
|
||||
struct __timeval64 it_interval;
|
||||
struct __timeval64 it_value;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if __TIMESIZE == 64
|
||||
|
Loading…
Reference in New Issue
Block a user