]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux: Add time64 pselect support
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Jul 2020 16:27:12 +0000 (13:27 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 11 Sep 2020 19:20:49 +0000 (16:20 -0300)
commita92f4e6299fe0e3cb6f77e79de00817aece501ce
tree93d759cefc0864dff904e40608ec7435bd8a2f8a
parent7c437d37789939a1411da0c04f748384bc5aee59
linux: Add time64 pselect support

The syscall __NR_pselect6_time64 (32-bit) or __NR_pselect6 (64-bit)
is used as default.  For architectures with __ASSUME_TIME64_SYSCALLS
the 32-bit fallback uses __NR_pselec6.

To accomodate microblaze missing pselect6 support on kernel older
than 3.15 the fallback is moved to its own function to the microblaze
specific implementation can override it.

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

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
include/sys/select.h
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/microblaze/pselect32.c [moved from sysdeps/unix/sysv/linux/microblaze/pselect.c with 67% similarity]
sysdeps/unix/sysv/linux/pselect.c
sysdeps/unix/sysv/linux/pselect32.c [new file with mode: 0644]