]> git.ipfire.org Git - thirdparty/glibc.git/commit
y2038: Introduce the __ASSUME_TIME64_SYSCALLS define
authorLukasz Majewski <lukma@denx.de>
Wed, 28 Aug 2019 18:27:03 +0000 (14:27 -0400)
committerZack Weinberg <zackw@panix.com>
Wed, 4 Sep 2019 20:11:27 +0000 (16:11 -0400)
commita26918cfda4bc4b9dad8aae1496e3ef7cbb63d96
tree29ebb5af2e1bbac8c0c21d220bb0a713db1e7921
parent7b5af2d8f2a2b858319a792678b15a0db08764c7
y2038: Introduce the __ASSUME_TIME64_SYSCALLS define

Add a macro to linux/kernel-features.h, __ASSUME_TIME64_SYSCALLS, to
indicate whether the kernel can be assumed to provide a set of system
calls that process 64-bit time_t.

__ASSUME_TIME64_SYSCALLS does not indicate whether time_t is actually
64 bits (that's __TIMEBITS) and also does not indicate whether the
64-bit time_t system calls have "time64" suffixes on their names.

Code that uses __ASSUME_TIME64_SYSCALLS will be added in subsequent
patches.

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_TIME64_SYSCALLS): New macro.

Reviewed-by: Alistair Francis <alistair23@gmail.com>
Reviewed-by: Joseph Myers <joseph@codesourcery.com>
Reviewed-by: Zack Weinberg <zackw@panix.com>
ChangeLog
sysdeps/unix/sysv/linux/kernel-features.h