about summary refs log tree commit diff
path: root/ports/sysdeps/unix
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-24 12:23:12 +0000
committerMike Frysinger <vapier@gentoo.org>2013-12-25 04:37:30 -0500
commit5243e58568c693c892845aca6e25f7b6adc7f094 (patch)
tree3ea30b3e6485c9741578e41191fb01cd1b0de265 /ports/sysdeps/unix
parentfe1a83aa1cbe166f8534925103c8d3a4f047f26c (diff)
downloadglibc-5243e58568c693c892845aca6e25f7b6adc7f094.tar.gz
glibc-5243e58568c693c892845aca6e25f7b6adc7f094.tar.xz
glibc-5243e58568c693c892845aca6e25f7b6adc7f094.zip
ia64: add lll_futex_timed_wait_bitset
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ports/sysdeps/unix')
-rw-r--r--ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
index cd36f958cf..90d8d816e0 100644
--- a/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
+++ b/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h
@@ -89,6 +89,17 @@
    _r10 == -1 ? -_retval : _retval;					\
 })
 
+#define lll_futex_timed_wait_bitset(ftx, val, timespec, clockbit, private) \
+({									   \
+   int __op = FUTEX_WAIT_BITSET | (clockbit);				   \
+									   \
+   DO_INLINE_SYSCALL(futex, 4, (long) (ftx),				   \
+		     __lll_private_flag (__op, private),		   \
+		     (int) (val), (long) (timespec), NULL /* Unused.  */,  \
+		     FUTEX_BITSET_MATCH_ANY);				   \
+   _r10 == -1 ? -_retval : _retval;					   \
+})
+
 #define lll_futex_wake(ftx, nr, private)				\
 ({									\
    DO_INLINE_SYSCALL(futex, 3, (long) (ftx),				\