mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
time: Introduce glibc's internal struct __itimerspec64
This change provides the glibc's internal struct itimerspec representation, which is explicitly supporting 64 bit time (by using struct __timespec64). Such representation is necessary to provide correct time after Y2038 (time_t overflow) on devices with __TIMESIZE == 32. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
16554464bc
commit
4b135425d8
@ -82,6 +82,17 @@ struct __timespec64
|
||||
};
|
||||
#endif
|
||||
|
||||
#if __TIMESIZE == 64
|
||||
# define __itimerspec64 itimerspec
|
||||
#else
|
||||
/* The glibc's internal representation of the struct itimerspec. */
|
||||
struct __itimerspec64
|
||||
{
|
||||
struct __timespec64 it_interval;
|
||||
struct __timespec64 it_value;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if __TIMESIZE == 64
|
||||
# define __ctime64 ctime
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user