about summary refs log tree commit diff
path: root/iconvdata/testdata/IBM1158..UTF8
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-09-07 14:13:58 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-14 18:00:06 -0300
commit8dfb169c80b56cf25494d052ddf410dc55f2f5a3 (patch)
tree47ef6107ecb9e9323c8703e5424b77676a27f743 /iconvdata/testdata/IBM1158..UTF8
parent5767b0ddcb592546fe8d978dd8f06904756373dd (diff)
downloadglibc-8dfb169c80b56cf25494d052ddf410dc55f2f5a3.tar.gz
glibc-8dfb169c80b56cf25494d052ddf410dc55f2f5a3.tar.xz
glibc-8dfb169c80b56cf25494d052ddf410dc55f2f5a3.zip
linux: Add fallback for 64-bit time_t SO_{RCV,SND}TIMEO
The constant values will be changed for __TIMESIZE=64, so binaries built
with 64-bit time support might fail to work properly on old kernels.
Both {get,set}sockopt will retry the syscall with the old constant
values and the timeout value adjusted when kernel returns ENOTPROTOPT.

It also adds an internal only SO_{RCV,SND}TIMEO where
COMPAT_SO_{RCV,SND}TIMEO_OLD indicates pre 32-bit time support and
COMPAT_SO_{RCV,SND}TIMEO_NEW indicates time64 support.  It allows to
refer to constant independently of the time_t ABI and kernel version
used.

Checked on x86_64-linux-gnu and i686-linux-gnu (on 5.4 and on 4.15
kernel).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'iconvdata/testdata/IBM1158..UTF8')
0 files changed, 0 insertions, 0 deletions