m68k: define lll_futex_timed_wait_bitset
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 6 Nov 2012 20:21:53 +0000 (21:21 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 18 Nov 2012 00:22:35 +0000 (01:22 +0100)
ports/ChangeLog.m68k
ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h

index 206702e..712ef6e 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-06  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
+       (lll_futex_timed_wait_bitset): Define.
+
 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/m68k/fpu/fclrexcpt.c (feclearexcept): Add
index 4dbed8d..3f1aedd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2010-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010.
 
     __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);                                           \