This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v6 3/3] time: Define time64 nanosleep
- From: Alistair Francis <alistair dot francis at wdc dot com>
- To: libc-alpha at sourceware dot org
- Cc: alistair23 at gmail dot com, Alistair Francis <alistair dot francis at wdc dot com>
- Date: Fri, 8 Nov 2019 09:03:02 -0800
- Subject: [PATCH v6 3/3] time: Define time64 nanosleep
- Ironport-sdr: CrWriK9ti2h8CaB0FtCGnvQQGWrg71+WkEF9HU81gYjS+kYYZqmu7jn1SQQaacagA/XFJVmo8/ 6V6BcwShVXPMfCb7tvohV1IYLyZgMnO+2fv+0kjMTbsDLawOe53KJdyDUCLN1jD+uskAuMhK2U +Bqh0b7QPSd1iYVf+eoA0Tw/7ZJnbfc0Ky7GKl7Pww05ZNr3SPK2KCWMOxpUinXObL92niDQR2 dDiy+TccsHwtk9tWMpttybzf3IBt021AE/KQHOFB64bz+Wco84u3TVhr+LO9dQ6S6nDcBHO6Ds cM0=
- Ironport-sdr: 82FidE0qOYEbocrXaZm8GZMGJG0I1FEVLF/Z/Ior/dUg6OvAUM9HtxAwL9V3Q5fmm5ge9zvrWo S4OzDm30pkHSi70S99KJjpKVqwvEaK02UdKEPyHaxrzJxIxpEKB2+YmGx8AMbGSFY+9dT4Q5mz DoOq0vVMxr6uxNKgJVPn8sreg8BLT20SHpSoVVZna+ovPXnCm4i9hjHhe+bazSb68K/QwRS+35 BsPvYQZbe6DvEjezhBY/SBMEqW8CriKWBPIjdUfkRkxMpXBVEq/EsT7C8x9dPRUmw76nDeT6Tf NGB91Yr87Gh4zD6XNplcxV0f
- Ironport-sdr: yzYo1bt41gJa6MlXln61CfI7n7bqoGU2cuwf7gTMGtfkv8AofY1hckFJguEE2tNBQVwIqXEc7O 6bGjDM9SQgDMtWHYc+jRXx/QXsIp1s7CVeqF4Ali+g7Ds+L5I6fYyuu2k73/4NmmFPVpiR9qZL x/aVsQIvp29go8JUYUJda4LwW1UGcPtbFRlIGrGQPtEgiBddzIGmaulsbB5nkGOT3XjhsqNlrj BLxXMeWLxUv1UH5zIChpjCjc8Q2+aY4I8CwR6wyYHGrUtRGccVP/zakjv7nkjS8OHGJ6zDGh1Y MTE=
- References: <20191108170302.29838-1-alistair.francis@wdc.com>
- Wdcironportexception: Internal
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
include/time.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/time.h b/include/time.h
index cbacf4fc9d7..d53f769c942 100644
--- a/include/time.h
+++ b/include/time.h
@@ -212,6 +212,7 @@ extern double __difftime (time_t time1, time_t time0);
#if __TIMESIZE == 64
# define __thrd_sleep_time64 thrd_sleep
# define __clock_nanosleep_time64 __clock_nanosleep
+# define __nanosleep_time64 __nanosleep
#else
extern int __thrd_sleep_time64 (const struct __timespec64* time_point,
struct __timespec64* remaining);
@@ -220,6 +221,9 @@ extern int __clock_nanosleep_time64 (clockid_t clock_id,
int flags, const struct __timespec64 *req,
struct __timespec64 *rem);
libc_hidden_proto (__clock_nanosleep_time64)
+extern int __nanosleep_time64 (const struct __timespec64 *requested_time,
+ struct __timespec64 *remaining);
+libc_hidden_proto (__nanosleep_time64)
#endif
/* Use in the clock_* functions. Size of the field representing the
--
2.23.0