From d7fcee3a58bd62c3b1b004f303ec345c11e44fa1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 5 Nov 2012 22:30:54 +0000 Subject: [PATCH] Define lll_futex_timed_wait_bitset for MIPS. --- ports/ChangeLog.mips | 5 +++++ .../sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index 3380b125b8..8dc4893b03 100644 --- a/ports/ChangeLog.mips +++ b/ports/ChangeLog.mips @@ -1,3 +1,8 @@ +2012-11-05 Joseph Myers + + * sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h + (lll_futex_timed_wait_bitset): New macro. + 2012-11-04 Thomas Schwinge * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Don't diff --git a/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h index 9c1701167d..9c3d3d16de 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h +++ b/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h @@ -86,6 +86,18 @@ INTERNAL_SYSCALL_ERROR_P (__ret, __err) ? -__ret : __ret; \ }) +#define lll_futex_timed_wait_bitset(futexp, val, timespec, clockbit, private) \ + ({ \ + INTERNAL_SYSCALL_DECL (__err); \ + long int __ret; \ + int __op = FUTEX_WAIT_BITSET | clockbit; \ + __ret = INTERNAL_SYSCALL (futex, __err, 6, (long) (futexp), \ + __lll_private_flag (__op, private), \ + (val), (timespec), NULL /* Unused. */, \ + FUTEX_BITSET_MATCH_ANY); \ + INTERNAL_SYSCALL_ERROR_P (__ret, __err) ? -__ret : __ret; \ + }) + #define lll_futex_wake(futexp, nr, private) \ ({ \ INTERNAL_SYSCALL_DECL (__err); \