aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/socketpair.c
diff options
context:
space:
mode:
authorAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-06-10 10:47:12 +0200
committerAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-10-24 12:53:11 +0200
commit94811042d73239d35b9d4bf7592c62ccc65ce633 (patch)
tree29f75d34340865645dba40df50e4ecfd6f0eafce /sysdeps/unix/sysv/linux/socketpair.c
parenteaf0f523fb03866d27d2175b7b280a825b91a8c1 (diff)
downloadglibc-94811042d73239d35b9d4bf7592c62ccc65ce633.tar
glibc-94811042d73239d35b9d4bf7592c62ccc65ce633.tar.gz
glibc-94811042d73239d35b9d4bf7592c62ccc65ce633.tar.bz2
glibc-94811042d73239d35b9d4bf7592c62ccc65ce633.zip
Y2038: provide kernel support indication
Introduce __ASSUME_KERNEL_Y2038_SUPPORT which means that the underlying kernel *always* implements 64-bit-time Y2038-proof syscalls. If __ASSUME_KERNEL_Y2038_SUPPORT is not defined, glibc must check dynamically whether the underlying kernel provides these syscalls or not, and must fallback to 32-bit-time syscalls if not. Introduce function __y2038_get_kernel_support(), which returns true if the underlying kernel supports 64-bit-time syscalls. Also introduce function __y2038_set_kernel_support(), which allows an implementation to notify glibc of the absence of 64-bit-time syscalls (ENOSYS) so that they are not needlessly tried again. * misc/Makefile: Add module y2038-support. * misc/Versions: (__y2038_get_kernel_support): Add to GLIBC_PRIVATE. * misc/Versions: (__y2038_set_kernel_support): Likewise. * misc/y2038-support.c: New file. * misc/y2038-support.h: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_KERNEL_Y2038_SUPPORT): Add. * sysdeps/unix/sysv/linux/y2038-support.c: New file. * sysdeps/unix/sysv/linux/y2038-support.h: New file.
Diffstat (limited to 'sysdeps/unix/sysv/linux/socketpair.c')
0 files changed, 0 insertions, 0 deletions