diff options
author | Lukasz Majewski <lukma@denx.de> | 2020-10-19 15:05:47 +0200 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-10-21 11:43:35 +0200 |
commit | 9cb2c923844ba1b77a7b9ade777e838242a4e201 (patch) | |
tree | bc3870647b9b6f5e285d7cddaef9e63315d2102d /sysdeps/nptl/futex-internal.h | |
parent | 56b223c1c8334e4255bf11aed1386a007822702a (diff) | |
download | glibc-9cb2c923844ba1b77a7b9ade777e838242a4e201.tar glibc-9cb2c923844ba1b77a7b9ade777e838242a4e201.tar.gz glibc-9cb2c923844ba1b77a7b9ade777e838242a4e201.tar.bz2 glibc-9cb2c923844ba1b77a7b9ade777e838242a4e201.zip |
y2038: nptl: Provide __futex_clock_wait_bitset64 to support 64 bit bitset
The commit:
"y2038: nptl: Convert pthread_mutex_{clock|timed}lock to support 64 bit"
SHA1: 29e9874a048f47e2d46c40253036c8d2de921548
introduced support for 64 bit timeouts. Unfortunately, it was missing the
code for bitset - i.e. lll_futex_clock_wait_bitset C preprocessor macro
was used. As a result the 64 bit struct __timespec64 was coerced to 32
bit struct timespec and regression visible as timeout was observed
(nptl/tst-robust10 on s390).
Reported-by: Stefan Liebler <stli@linux.ibm.com>
Tested-by: Stefan Liebler <stli@linux.ibm.com>
Diffstat (limited to 'sysdeps/nptl/futex-internal.h')
-rw-r--r-- | sysdeps/nptl/futex-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/nptl/futex-internal.h b/sysdeps/nptl/futex-internal.h index 8a5f62768f..cd356e4fa8 100644 --- a/sysdeps/nptl/futex-internal.h +++ b/sysdeps/nptl/futex-internal.h @@ -603,4 +603,9 @@ __futex_clocklock64 (int *futex, clockid_t clockid, return err; } +int +__futex_clock_wait_bitset64 (int *futexp, int val, clockid_t clockid, + const struct __timespec64 *abstime, + int private) attribute_hidden; + #endif /* futex-internal.h */ |