2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-03-25 13:51:04 +08:00
Adhemerval Zanella 4c3df0eba5 linux: Only use 64-bit syscall if required for select
For !__ASSUME_TIME64_SYSCALLS there is no need to issue a 64-bit syscall
if the provided timeout fits in a 32-bit one.  The 64-bit usage should
be rare since the timeout is a relative one.  This also avoids the need
to use supports_time64() (which breaks the usage case of live migration
like CRIU or similar).

It also fixes an issue on 32-bit select call for !__ASSUME_PSELECT
(microblase with older kernels only) where the expected timeout
is a 'struct timeval' instead of 'struct timespec'.

Checked on i686-linux-gnu on a 4.15 kernel and on a 5.11 kernel
(with and without --enable-kernel=5.1) and on x86_64-linux-gnu.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2021-06-22 12:09:52 -03:00
..
2016-10-28 22:40:16 -04:00
2021-06-22 12:09:52 -03:00
2021-06-03 09:12:05 +02:00
2021-01-05 11:33:16 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2017-04-07 07:45:53 -04:00
2021-01-05 11:33:16 -03:00
2021-01-04 08:42:04 -03:00
2017-11-22 22:21:10 +00:00
2019-05-02 11:42:51 +02:00
2021-03-26 13:36:16 -03:00
2019-10-09 17:48:41 -03:00
2020-07-21 07:34:50 +02:00
2020-12-31 16:55:21 +05:30
2019-11-06 09:20:52 -03:00