glibc/include/sys
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
..
auxv.h misc: Add internal __getauxval2 function 2020-10-27 16:34:37 +01:00
bitypes.h
cdefs.h
dir.h
epoll.h
errno.h
fcntl.h
file.h
gmon_out.h
gmon.h
ioctl.h
ipc.h
mman.h
msg.h
param.h
poll.h
prctl.h
profil.h
queue.h
random.h
resource.h setrlimit/getrlimit: Use __nonnull to avoid null pointer 2021-02-10 08:36:17 -03:00
select.h linux: Only use 64-bit syscall if required for select 2021-06-22 12:09:52 -03:00
sem.h
sendfile.h
shm.h
signal.h
single_threaded.h
socket.h linux: Add fallback for 64-bit time_t SO_TIMESTAMP{NS} 2021-06-15 10:42:06 -03:00
stat.h time: Add 64-bit time support for getdate 2021-06-15 10:42:11 -03:00
statfs.h linux: Consolidate fstatfs implementations 2021-02-11 07:58:31 -03:00
statvfs.h linux: Consolidate statvfs implementations 2021-02-11 08:00:41 -03:00
sysinfo.h
syslog.h
sysmacros.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
termios.h
time.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
timeb.h time: Add 64-bit time_t support for ftime 2020-10-27 09:54:50 -03:00
times.h
ttychars.h
types.h
uio.h
un.h
unistd.h
utsname.h hurd: keep only required PLTs in ld.so 2020-11-11 02:36:22 +01:00
vfs.h
vlimit.h
wait.h
xattr.h