y2038: Convert mtx_timedlock to support 64 bit time
authorLukasz Majewski <lukma@denx.de>
Wed, 11 Nov 2020 23:09:03 +0000 (00:09 +0100)
committerLukasz Majewski <lukma@denx.de>
Sat, 14 Nov 2020 21:10:31 +0000 (22:10 +0100)
commitb0c0ad4d548389970446eeb13d4b3f24115f7a00
tree98bee04f41749c17384f8d9973fd1fb8cc800c45
parent1f1a4847a404e26b5f729dc14a92aa94c87a6063
y2038: Convert mtx_timedlock to support 64 bit time

The mtx_timedlock function has been converted to support 64 bit time.
It was also necessary to provide Linux specific copy of it to avoid
problems on i686-gnu (i.e. HURD) port, which is not providing
pthread_mutex_timedlock() supporting 64 bit time.

The mtx_timedlock is a wrapper on POSIX threads to provide C11 standard
threads interface. It directly calls __pthread_mutex_timedlock64().

Build tests:
./src/scripts/build-many-glibcs.py glibcs

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
sysdeps/unix/sysv/linux/mtx_timedlock.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/thrd_priv.h