aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-07-12 14:55:30 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-09-28 16:22:03 -0300
commitc3a020eedde907e7df69159a54bf59d39db85709 (patch)
treefa83d802be21952807842eedb8012618cc7f4c38 /include
parent4af88f96dec03a7f732ac217e220afa4b48281d7 (diff)
downloadglibc-c3a020eedde907e7df69159a54bf59d39db85709.zip
glibc-c3a020eedde907e7df69159a54bf59d39db85709.tar.gz
glibc-c3a020eedde907e7df69159a54bf59d39db85709.tar.bz2
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')
-rw-r--r--include/time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 936486e..edf6cdf 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;