]> git.ipfire.org Git - thirdparty/glibc.git/commit
Y2038: nptl: Provide futex_abstimed_wait64 supporting 64 bit time
authorLukasz Majewski <lukma@denx.de>
Tue, 8 Sep 2020 08:54:35 +0000 (10:54 +0200)
committerLukasz Majewski <lukma@denx.de>
Sun, 4 Oct 2020 15:12:41 +0000 (17:12 +0200)
commitb2cdadde4d5c2b49b0f486a141ae0443ab8be375
tree2a2ad3f6c1dfbdd45a6dd79c806da05a79c7e156
parentbe9b0b9a012780a403a266c90878efffb9a5f3ca
Y2038: nptl: Provide futex_abstimed_wait64 supporting 64 bit time

This is the helper function, which uses struct __timespec64
to provide 64 bit absolute time to futex syscalls.

The aim of this function is to move convoluted pre-processor
macro code from sysdeps/nptl/lowlevellock-futex.h to C
function in futex-internal.c

The futex_abstimed_wait64 function has been put into a separate
file on the purpose - to avoid issues apparent on the m68k
architecture related to small number of available registers (there
is not enough registers to put all necessary arguments in them if
the above function would be added to futex-internal.h with
__always_inline attribute).

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
sysdeps/nptl/futex-internal.c
sysdeps/nptl/futex-internal.h