diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-12 14:55:30 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-09-28 16:22:03 -0300 |
commit | c3a020eedde907e7df69159a54bf59d39db85709 (patch) | |
tree | fa83d802be21952807842eedb8012618cc7f4c38 /include/time.h | |
parent | 4af88f96dec03a7f732ac217e220afa4b48281d7 (diff) | |
download | glibc-c3a020eedde907e7df69159a54bf59d39db85709.tar.gz glibc-c3a020eedde907e7df69159a54bf59d39db85709.tar.xz glibc-c3a020eedde907e7df69159a54bf59d39db85709.zip |
linux: Add time64 support for nanosleep
It uses __clock_nanosleep64 and adds the __nanosleep64 symbol. Checked on x86_64-linux-gnu and i686-linux-gnu (on 5.4 and on 4.15 kernel). Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 936486e206..edf6cdf829 100644 --- a/include/time.h +++ b/include/time.h @@ -271,6 +271,15 @@ extern struct tm *__tz_convert (__time64_t timer, int use_localtime, extern int __nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); hidden_proto (__nanosleep) +#if __TIMESIZE == 64 +# define __nanosleep64 __nanosleep +#else +extern int __nanosleep64 (const struct __timespec64 *__requested_time, + struct __timespec64 *__remaining); +hidden_proto (__nanosleep64) +#endif + + extern int __getdate_r (const char *__string, struct tm *__resbufp) attribute_hidden; |