aboutsummaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-11-05 21:37:44 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-11-06 14:47:02 -0300
commit3537ecb49cf7177274607004c562d6f9ecc99474 (patch)
tree7321853007814993f485345e97b9b2ff61032a0c /include/time.h
parent79a547b162657b3fa34d31917cc29f0e7af19e4c (diff)
downloadglibc-3537ecb49cf7177274607004c562d6f9ecc99474.tar
glibc-3537ecb49cf7177274607004c562d6f9ecc99474.tar.gz
glibc-3537ecb49cf7177274607004c562d6f9ecc99474.tar.bz2
glibc-3537ecb49cf7177274607004c562d6f9ecc99474.zip
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>
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 8ac58e891b..b3e635395d 100644
--- a/include/time.h
+++ b/include/time.h
@@ -25,6 +25,9 @@ libc_hidden_proto (__clock_gettime)
extern __typeof (clock_settime) __clock_settime;
libc_hidden_proto (__clock_settime)
+extern __typeof (clock_nanosleep) __clock_nanosleep;
+libc_hidden_proto (__clock_nanosleep);
+
#ifdef __linux__
extern __typeof (clock_adjtime) __clock_adjtime;
libc_hidden_proto (__clock_adjtime);