]> git.ipfire.org Git - thirdparty/glibc.git/commit
y2038: Convert thrd_sleep to support 64 bit time
authorLukasz Majewski <lukma@denx.de>
Wed, 11 Nov 2020 23:24:48 +0000 (00:24 +0100)
committerLukasz Majewski <lukma@denx.de>
Sat, 14 Nov 2020 21:11:41 +0000 (22:11 +0100)
commiteb60eda2b97ce19aba72e7f544e88e49899bc1fd
tree595de8593e548e25d9b16c37abc6c203086c2b9d
parentb0c0ad4d548389970446eeb13d4b3f24115f7a00
y2038: Convert thrd_sleep to support 64 bit time

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

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

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

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