diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/strace.c | 1 | ||||
-rw-r--r-- | linux-user/syscall.c | 1 | ||||
-rw-r--r-- | linux-user/syscall_defs.h | 17 |
3 files changed, 17 insertions, 2 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 5ea9acb082..6090dcc65d 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -8,7 +8,6 @@ #include <sys/types.h> #include <sys/mount.h> #include <sys/mman.h> -#include <linux/futex.h> #include <unistd.h> #include "qemu.h" diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 53a11ab877..11564fd0bc 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -85,7 +85,6 @@ #include "qemu-common.h" #if defined(USE_NPTL) -#include <linux/futex.h> #define CLONE_NPTL_FLAGS2 (CLONE_SETTLS | \ CLONE_PARENT_SETTID | CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID) #else diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 24217e40c9..acb781f4b6 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2120,3 +2120,20 @@ struct target_mq_attr { #include "socket.h" #include "errno_defs.h" + +#define FUTEX_WAIT 0 +#define FUTEX_WAKE 1 +#define FUTEX_FD 2 +#define FUTEX_REQUEUE 3 +#define FUTEX_CMP_REQUEUE 4 +#define FUTEX_WAKE_OP 5 +#define FUTEX_LOCK_PI 6 +#define FUTEX_UNLOCK_PI 7 +#define FUTEX_TRYLOCK_PI 8 +#define FUTEX_WAIT_BITSET 9 +#define FUTEX_WAKE_BITSET 10 + +#define FUTEX_PRIVATE_FLAG 128 +#define FUTEX_CLOCK_REALTIME 256 +#define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME) + |