From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6f76-0000X4-BN for qemu-devel@nongnu.org; Wed, 29 Aug 2012 06:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6f72-0005ay-3b for qemu-devel@nongnu.org; Wed, 29 Aug 2012 06:03:08 -0400 Received: from hendrix.mega-nerd.net ([203.206.230.162]:57801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6f71-0005aj-Nl for qemu-devel@nongnu.org; Wed, 29 Aug 2012 06:03:04 -0400 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id E0EF0106ECF for ; Wed, 29 Aug 2012 20:03:01 +1000 (EST) Date: Wed, 29 Aug 2012 20:03:01 +1000 From: Erik de Castro Lopo Message-Id: <20120829200301.74f83fa1c241cda68f8bef7a@mega-nerd.com> In-Reply-To: References: <20120829194430.0cec30cc66e47d679a4bc8c9@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Posix timer syscalls [Bug 1042388] Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Peter Maydell wrote: > You need to look at how the kernel decides which of the > fields of the union is valid, and use the same logic to > decide how to convert it in qemu. > > In this case I think that means that if > (sigev_notify & SIGEV_THREAD_ID) != 0, _tid is valid and > must be converted. Otherwise convert _sigev_thread. Ah, that makes sense. Thanks. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/