mirror of git://sourceware.org/git/glibc.git
y2038: Introduce struct __utimbuf64 - new internal glibc type
This type is a glibc's "internal" type to store file's access and modification times in __time64_t rather than __time_t, which makes it Y2038-proof. Build tests: ./src/scripts/build-many-glibcs.py glibcs Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
24caa35c57
commit
847d3913da
|
@ -108,6 +108,18 @@ struct __timeval64
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __TIMESIZE == 64
|
||||||
|
# define __utimbuf64 utimbuf
|
||||||
|
#else
|
||||||
|
/* The glibc Y2038-proof struct __utimbuf64 structure for file's access
|
||||||
|
and modification time values. */
|
||||||
|
struct __utimbuf64
|
||||||
|
{
|
||||||
|
__time64_t actime; /* Access time. */
|
||||||
|
__time64_t modtime; /* Modification time. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __TIMESIZE == 64
|
#if __TIMESIZE == 64
|
||||||
# define __ctime64 ctime
|
# define __ctime64 ctime
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue