nptl: futex: Move __NR_futex_time64 alias to beginning of futex-internal.h

This alias macro shall be moved to the beginning of the futex-internal.h
to be easily reused by other functions, which would support 64 bit time.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Lukasz Majewski 2020-09-08 10:48:13 +02:00
parent 3f9705f1fc
commit e75fbaaa21

View File

@ -74,6 +74,10 @@
# error FUTEX_PRIVATE must be equal to 0 # error FUTEX_PRIVATE must be equal to 0
#endif #endif
#ifndef __NR_futex_time64
# define __NR_futex_time64 __NR_futex
#endif
/* Calls __libc_fatal with an error message. Convenience function for /* Calls __libc_fatal with an error message. Convenience function for
concrete implementations of the futex interface. */ concrete implementations of the futex interface. */
static __always_inline __attribute__ ((__noreturn__)) void static __always_inline __attribute__ ((__noreturn__)) void
@ -467,10 +471,6 @@ futex_unlock_pi (unsigned int *futex_word, int private)
} }
} }
#ifndef __NR_futex_time64
# define __NR_futex_time64 __NR_futex
#endif
static __always_inline int static __always_inline int
futex_timed_wait_cancel64 (pid_t *tidp, pid_t tid, futex_timed_wait_cancel64 (pid_t *tidp, pid_t tid,
const struct __timespec64 *timeout, int private) const struct __timespec64 *timeout, int private)