get/setsockopt: add fallback for new time64 SO_RCVTIMEO/SO_SNDTIMEO
authorRich Felker <dalias@aerifal.cx>
Wed, 31 Jul 2019 02:11:39 +0000 (22:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 1 Aug 2019 00:20:57 +0000 (20:20 -0400)
commit51fd67fcbfa598e2fe1885b517451b84c0bfe3b7
treef1c8e0b65cc7d98ee0c0100276c74f5e78f6dc33
parent59324c8b0950ee94db846a50554183c845ede160
get/setsockopt: add fallback for new time64 SO_RCVTIMEO/SO_SNDTIMEO

without this, the SO_RCVTIMEO and SO_SNDTIMEO socket options would
stop working on pre-5.1 kernels after time_t is switched to 64-bit and
their values are changed to the new time64 versions.

new code is written such that it's statically unreachable on 64-bit
archs, and on existing 32-bit archs until the macro values are changed
to activate 64-bit time_t.
arch/mips/syscall_arch.h
arch/mips64/syscall_arch.h
arch/mipsn32/syscall_arch.h
arch/powerpc/syscall_arch.h
arch/powerpc64/syscall_arch.h
src/internal/syscall.h
src/network/getsockopt.c
src/network/setsockopt.c