glibc/include
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
..
arpa
bits linux: Use sched_getaffinity for __get_nprocs (BZ #27645) 2021-05-07 13:54:09 -03:00
gnu
net
netinet
programs Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
protocols
rpc
rpcsvc
sys linux: Only use 64-bit syscall if required for select 2021-06-22 12:09:52 -03:00
aio.h
aliases.h
alloc_buffer.h
alloca.h
allocate_once.h
ar.h
argp-fmtstream.h
argp.h
argz.h
array_length.h
assert.h
atomic.h
byteswap.h
complex.h
cpio.h
crypt.h
ctype.h
des.h
dirent.h Use 64 bit time_t stat internally 2021-06-22 12:09:52 -03:00
dlfcn.h dlfcn: Rework static dlopen hooks 2021-06-03 09:12:05 +02:00
dso_handle.h
elf.h
endian.h
envz.h
err.h
errno.h
error.h
execinfo.h
fcntl.h
features-time64.h y2038: Add support for 64-bit time on legacy ABIs 2021-06-15 10:42:11 -03:00
features.h y2038: Add support for 64-bit time on legacy ABIs 2021-06-15 10:42:11 -03:00
fenv.h
file_change_detection.h Use 64 bit time_t stat internally 2021-06-22 12:09:52 -03:00
filename.h
float.h
fmtmsg.h
fnmatch.h
fpu_control.h
fstab.h
fts.h io: Add fts64 with 64-bit time_t support 2021-06-15 10:42:11 -03:00
ftw.h io: Add ftw64 with 64-bit time_t support 2021-06-15 10:42:11 -03:00
gconv.h
getopt.h
getopt_int.h
glob.h posix: Add glob64 with 64-bit time_t support 2021-06-15 10:42:11 -03:00
gmp.h
gnu-versions.h
grp-merge.h
grp.h
gshadow.h
iconv.h
idx.h
ifaddrs.h
ifreq.h
ifunc-impl-list.h
inline-hashtab.h
intprops.h
inttypes.h
langinfo.h
lastlog.h
libc-diag.h
libc-internal.h nptl: Move pthread_create, thrd_create into libc 2021-05-21 22:35:00 +02:00
libc-pointer-arith.h Add cast_to_pointer to cast an integer to void * pointer 2021-05-22 05:09:15 -07:00
libc-symbols.h
libgen.h
libintl.h
limits.h
link.h
list.h
list_t.h
locale.h
loop_unroll.h
malloc.h
math-narrow-eval.h
math.h
mcheck.h
memory.h
mntent.h
monetary.h
mqueue.h
netdb.h
netgroup.h
nl_types.h
nss.h
nss_files.h
nsswitch.h
obstack.h
plural-exp.h
poll.h
printf.h
pthread.h nptl: Implement raise in terms of pthread_kill 2021-06-09 15:16:45 -03:00
pty.h
pwd.h
random-bits.h
re_comp.h
regex.h
regexp.h
register-atfork.h
resolv.h
rounding-mode.h
rtld-malloc.h
sched.h
scratch_buffer.h
search.h
set-hooks.h
setjmp.h nptl: Move __pthread_unwind_next into libc 2021-04-21 19:49:50 +02:00
sgtty.h
shadow.h
shlib-compat.h
shm-directory.h nptl: Move sem_close, sem_open into libc 2021-05-05 17:19:38 +02:00
signal.h
spawn.h
stab.h
stackinfo.h
stap-probe.h
stdc-predef.h
stdint.h
stdio.h
stdio_ext.h
stdlib.h nptl: Move sem_close, sem_open into libc 2021-05-05 17:19:38 +02:00
string.h
strings.h
struct___timeb64.h
struct___timespec64.h
struct___timeval64.h
stubs-prologue.h
syscall.h
sysexits.h
syslog.h
tar.h
termios.h
tgmath.h
time.h time: Add 64-bit time support for getdate 2021-06-15 10:42:11 -03:00
ttyent.h
uchar.h
ucontext.h
ulimit.h
unistd.h Add hidden prototypes for fsync, fdatasync 2021-06-22 09:51:14 +02:00
utime.h
utmp.h
values.h
verify.h
wait.h
wchar.h
wctype.h
wordexp.h