diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2008-03-20 17:03:55 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2008-03-20 17:03:55 +0000 |
commit | 4a8a8b1c08a86abdb5b449ae37987c1a26d9365f (patch) | |
tree | 5c5eb58afff7ee8d16ebe98859711284a23301f2 /sys/compat/linux/linux_futex.h | |
parent | 1906c8de600574d9fb77a2d5760a9f09bd2fe6d5 (diff) | |
download | FreeBSD-src-4a8a8b1c08a86abdb5b449ae37987c1a26d9365f.zip FreeBSD-src-4a8a8b1c08a86abdb5b449ae37987c1a26d9365f.tar.gz |
o Add stub support for some new futex operations,
so the annoying message is not printed.
o Don't warn about FUTEX_FD not being implemented
and return ENOSYS instead of 0 (eg. success).
o Clear FUTEX_PRIVATE_FLAG as we actually implement
only private futexes so there is no reason to
return ENOSYS when app asks for a private futex.
We don't reject shared futexes because they worked
just fine with our implementation so far.
Approved by: kib (mentor)
Tested by: bsam
MFC after: 1 week
Diffstat (limited to 'sys/compat/linux/linux_futex.h')
-rw-r--r-- | sys/compat/linux/linux_futex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_futex.h b/sys/compat/linux/linux_futex.h index 1ba1ce2..3ca6f3b 100644 --- a/sys/compat/linux/linux_futex.h +++ b/sys/compat/linux/linux_futex.h @@ -42,6 +42,11 @@ #define LINUX_FUTEX_REQUEUE 3 #define LINUX_FUTEX_CMP_REQUEUE 4 #define LINUX_FUTEX_WAKE_OP 5 +#define LINUX_FUTEX_LOCK_PI 6 +#define LINUX_FUTEX_UNLOCK_PI 7 +#define LINUX_FUTEX_TRYLOCK_PI 8 + +#define LINUX_FUTEX_PRIVATE_FLAG 128 #define FUTEX_OP_SET 0 /* *(int *)UADDR2 = OPARG; */ #define FUTEX_OP_ADD 1 /* *(int *)UADDR2 += OPARG; */ |