public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] alpha: Add lll_futex_timed_wait_bitset
@ 2013-01-02 17:01 Richard Henderson
  0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 2013-01-02 17:01 UTC (permalink / raw)
  To: libc-ports

---
 ports/ChangeLog.alpha                                   |  5 +++++
 ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h | 13 +++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/ports/ChangeLog.alpha b/ports/ChangeLog.alpha
index 34cb0a8..9f74a64 100644
--- a/ports/ChangeLog.alpha
+++ b/ports/ChangeLog.alpha
@@ -1,3 +1,8 @@
+2013-01-02  Richard Henderson  <rth@redhat.com>
+
+	* sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
+	(lll_futex_timed_wait_bitset): New.
+
 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Reformat copyright
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
index 0ef2e7f..1d4b328 100644
--- a/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
+++ b/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
@@ -78,6 +78,19 @@
 #define lll_futex_wait(futexp, val, private) \
   lll_futex_timed_wait (futexp, val, NULL, private)
 
+#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, (futexp),		      \
+			      __lll_private_flag (__op, private),	      \
+			      (val), (timespec), NULL /* Unused.  */, 	      \
+			      FUTEX_BITSET_MATCH_ANY);			      \
+    __ret;		      						      \
+  })
+
 #define lll_futex_timed_wait(futexp, val, timespec, private) \
   ({									      \
     INTERNAL_SYSCALL_DECL (__err);					      \
-- 
1.7.11.7

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-02 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02 17:01 [PATCH] alpha: Add lll_futex_timed_wait_bitset Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).