From 633a205e26877ea0c7bf1ae16fa8de11dafe9c4f Mon Sep 17 00:00:00 2001 From: dchagin Date: Mon, 31 Jan 2011 06:06:23 +0000 Subject: [PATCH] Yet another unimplemented futex operation, print out about. Submitted by: arundel MFC after: 1 month. --- sys/compat/linux/linux_futex.c | 7 +++++++ sys/compat/linux/linux_futex.h | 1 + 2 files changed, 8 insertions(+) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 6ee293ffbeb7..bdc379a57b6c 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -693,6 +693,13 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args) "op FUTEX_WAIT_REQUEUE_PI not implemented\n"); return (ENOSYS); + case LINUX_FUTEX_CMP_REQUEUE_PI: + /* not yet implemented */ + linux_msg(td, + "linux_sys_futex: " + "op LINUX_FUTEX_CMP_REQUEUE_PI not implemented\n"); + return (ENOSYS); + default: linux_msg(td, "linux_sys_futex: unknown op %d\n", args->op); diff --git a/sys/compat/linux/linux_futex.h b/sys/compat/linux/linux_futex.h index 3eb38b23003a..0990daa124e3 100644 --- a/sys/compat/linux/linux_futex.h +++ b/sys/compat/linux/linux_futex.h @@ -51,6 +51,7 @@ extern struct mtx futex_mtx; #define LINUX_FUTEX_WAIT_BITSET 9 #define LINUX_FUTEX_WAKE_BITSET 10 #define LINUX_FUTEX_WAIT_REQUEUE_PI 11 +#define LINUX_FUTEX_CMP_REQUEUE_PI 12 #define LINUX_FUTEX_PRIVATE_FLAG 128 #define LINUX_FUTEX_CLOCK_REALTIME 256