[RFC,04/10] y2038: Replace struct timespec with __timespec64 in futex-internal.h

Message ID 20200707150827.20899-5-lukma@denx.de
State Dropped
Delegated to: Lukasz Majewski
Headers
Series y2038: nptl: futex: Provide support for futex_time64 |

Commit Message

Lukasz Majewski July 7, 2020, 3:08 p.m. UTC
  This patch set replaces all occurences of struct timespec with
__timespec64 in futex-internal.h header.
---
 sysdeps/nptl/futex-internal.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Patch

diff --git a/sysdeps/nptl/futex-internal.h b/sysdeps/nptl/futex-internal.h
index d622122ddc..e23a954e73 100644
--- a/sysdeps/nptl/futex-internal.h
+++ b/sysdeps/nptl/futex-internal.h
@@ -211,7 +211,7 @@  futex_wait_cancelable (unsigned int *futex_word, unsigned int expected,
    */
 static __always_inline int
 futex_reltimed_wait (unsigned int* futex_word, unsigned int expected,
-		     const struct timespec* reltime, int private)
+		     const struct __timespec64* reltime, int private)
 {
   int err = lll_futex_timed_wait (futex_word, expected, reltime, private);
   switch (err)
@@ -237,7 +237,7 @@  futex_reltimed_wait (unsigned int* futex_word, unsigned int expected,
 static __always_inline int
 futex_reltimed_wait_cancelable (unsigned int* futex_word,
 				unsigned int expected,
-			        const struct timespec* reltime, int private)
+			        const struct __timespec64* reltime, int private)
 {
   int oldtype;
   oldtype = LIBC_CANCEL_ASYNC ();
@@ -275,7 +275,7 @@  futex_abstimed_supported_clockid (clockid_t clockid)
 static __always_inline int
 futex_abstimed_wait (unsigned int* futex_word, unsigned int expected,
 		     clockid_t clockid,
-		     const struct timespec* abstime, int private)
+		     const struct __timespec64* abstime, int private)
 {
   /* Work around the fact that the kernel rejects negative timeout values
      despite them being valid.  */
@@ -309,7 +309,7 @@  static __always_inline int
 futex_abstimed_wait_cancelable (unsigned int* futex_word,
 				unsigned int expected,
 				clockid_t clockid,
-			        const struct timespec* abstime, int private)
+			        const struct __timespec64* abstime, int private)
 {
   /* Work around the fact that the kernel rejects negative timeout values
      despite them being valid.  */
@@ -406,7 +406,7 @@  futex_wake (unsigned int* futex_word, int processes_to_wake, int private)
      - ETIMEDOUT if the ABSTIME expires.
 */
 static __always_inline int
-futex_lock_pi (unsigned int *futex_word, const struct timespec *abstime,
+futex_lock_pi (unsigned int *futex_word, const struct __timespec64 *abstime,
 	       int private)
 {
   int err = lll_futex_timed_lock_pi (futex_word, abstime, private);