From: Joseph Myers Date: Mon, 5 Nov 2012 22:30:54 +0000 (+0000) Subject: Define lll_futex_timed_wait_bitset for MIPS. X-Git-Tag: upstream/2.30~10008 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7fcee3a58bd62c3b1b004f303ec345c11e44fa1;p=external%2Fglibc.git Define lll_futex_timed_wait_bitset for MIPS. --- diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index 3380b12..8dc4893 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 9c17011..9c3d3d1 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); \