Define lll_futex_timed_wait_bitset for MIPS.

This commit is contained in:
Joseph Myers 2012-11-05 22:30:54 +00:00
parent 316a1b67e1
commit d7fcee3a58
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-11-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
(lll_futex_timed_wait_bitset): New macro.
2012-11-04 Thomas Schwinge <thomas@codesourcery.com> 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Don't * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Don't

View File

@ -86,6 +86,18 @@
INTERNAL_SYSCALL_ERROR_P (__ret, __err) ? -__ret : __ret; \ 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) \ #define lll_futex_wake(futexp, nr, private) \
({ \ ({ \
INTERNAL_SYSCALL_DECL (__err); \ INTERNAL_SYSCALL_DECL (__err); \