y2038: Convert cnd_timedwait to support 64 bit time
authorLukasz Majewski <lukma@denx.de>
Thu, 29 Oct 2020 13:19:25 +0000 (14:19 +0100)
committerLukasz Majewski <lukma@denx.de>
Sat, 14 Nov 2020 21:09:43 +0000 (22:09 +0100)
commit1f1a4847a404e26b5f729dc14a92aa94c87a6063
tree9616ced3bc636e3f34a5dac8f6a2a8058ee400bd
parent839fa6bc8ab469a1e7dd6be4cf95322aa518fcbc
y2038: Convert cnd_timedwait to support 64 bit time

The cnd_timedwait 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_cond_timedwait() supporting 64 bit time.

Moreover, a linux specific copy of thrd_priv.h header file has been
added as well.

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

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

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