diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-11-05 21:37:44 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-11-06 14:47:02 -0300 |
commit | 3537ecb49cf7177274607004c562d6f9ecc99474 (patch) | |
tree | 7321853007814993f485345e97b9b2ff61032a0c /time | |
parent | 79a547b162657b3fa34d31917cc29f0e7af19e4c (diff) | |
download | glibc-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 'time')
-rw-r--r-- | time/clock_nanosleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/clock_nanosleep.c b/time/clock_nanosleep.c index 5952d29195..d4fc16f6ec 100644 --- a/time/clock_nanosleep.c +++ b/time/clock_nanosleep.c @@ -33,7 +33,7 @@ __clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, /* Not implemented. */ return ENOSYS; } - +libc_hidden_def (__clock_nanosleep) versioned_symbol (libc, __clock_nanosleep, clock_nanosleep, GLIBC_2_17); /* clock_nanosleep moved to libc in version 2.17; old binaries may expect the symbol version it had in librt. */ |