Refactor nanosleep in terms of clock_nanosleep
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Nov 2019 21:37:44 +0000 (21:37 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 6 Nov 2019 17:47:02 +0000 (14:47 -0300)
commit3537ecb49cf7177274607004c562d6f9ecc99474
tree7321853007814993f485345e97b9b2ff61032a0c
parent79a547b162657b3fa34d31917cc29f0e7af19e4c
Refactor nanosleep in terms of clock_nanosleep

The generic version is straightforward.  For Hurd, its nanosleep
implementation is moved to clock_nanosleep with adjustments from
generic unix implementation.

The generic clock_nanosleep unix version is also removed since
it calls nanosleep.

Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
include/time.h
posix/nanosleep.c
sysdeps/mach/clock_nanosleep.c [moved from sysdeps/unix/clock_nanosleep.c with 64% similarity]
sysdeps/mach/nanosleep.c [deleted file]
sysdeps/unix/sysv/linux/clock_nanosleep.c
sysdeps/unix/sysv/linux/nanosleep.c [deleted file]
time/clock_nanosleep.c