diff options
author | Richard Henderson <rth@twiddle.net> | 2013-01-02 09:00:46 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-01-02 09:00:46 -0800 |
commit | caed4e98ca463e72745e7173a21409dce658d04f (patch) | |
tree | d7339ce141f1e5633eef5cb1c111373e8fe0dbb5 /ports/sysdeps/unix/sysv/linux/alpha | |
parent | 0f5477af5df459af5c1cfa0fe28c158418307ff8 (diff) | |
download | glibc-caed4e98ca463e72745e7173a21409dce658d04f.tar.gz glibc-caed4e98ca463e72745e7173a21409dce658d04f.tar.xz glibc-caed4e98ca463e72745e7173a21409dce658d04f.zip |
alpha: Add lll_futex_timed_wait_bitset
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/alpha')
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h index 0ef2e7fd38..1d4b32848b 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); \ |