From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 29 12:26:17 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id C0B671065694; Sat, 29 Jan 2011 12:26:17 +0000 (UTC) Date: Sat, 29 Jan 2011 12:26:17 +0000 From: Alexander Best To: freebsd-emulation@freebsd.org Message-ID: <20110129122617.GA77148@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [patch] draft to add support for futex operators FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET to the linuxulator X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 12:26:17 -0000 hi there, i've spent a couple of hours hacking support for futex operators FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET into the linuxulator. the following patch is far from perfect and in certain places it is probably doing the wrong thing, however it doesn't seem to break anything. i'd appreciate if somebody could have a look at the patch and point out any issues. please note that the patch also contains a few unrelated comment changes and such (however only very few). thanks in advance. the patch can be found in here: http://people.freebsd.org/~arundel/drafts/futex.diff the following linux commit message should give you a rough idea about the purpose of both operators: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6-stable.git;a=commit;h=cd689985cf49f6ff5c8eddc48d98b9d581d9475d cheers. alex -- a13x