From patchwork Fri Nov 29 13:43:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 295326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 84C062C00A6 for ; Sat, 30 Nov 2013 00:43:53 +1100 (EST) Received: from localhost ([::1]:47392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOMH-00086v-3T for incoming@patchwork.ozlabs.org; Fri, 29 Nov 2013 08:43:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOLj-0007zA-Aj for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmOLd-00064p-Sd for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:15 -0500 Received: from afflict.kos.to ([92.243.29.197]:52898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOLd-00064Q-Mu for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:09 -0500 Received: from kos.to (91-157-196-38.elisa-laajakaista.fi [91.157.196.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 3D1952655E for ; Fri, 29 Nov 2013 14:43:08 +0100 (CET) Received: from voipio (uid 1000) (envelope-from voipio@kos.to) id 5e023f by kos.to (DragonFly Mail Agent); Fri, 29 Nov 2013 15:43:06 +0200 From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 29 Nov 2013 15:43:02 +0200 Message-Id: <905bba13ca292cb8c83fe5ccdf8a95bd04168bb1.1385732338.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Erik de Castro Lopo Subject: [Qemu-devel] [PATCH 1/5] linux-user: Add target struct defs needed for POSIX timer syscalls. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Erik de Castro Lopo Signed-off-by: Erik de Castro Lopo Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index fe540f6..cf08db5 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -168,6 +168,11 @@ struct target_itimerval { struct target_timeval it_value; }; +struct target_itimerspec { + struct target_timespec it_interval; + struct target_timespec it_value; +}; + typedef abi_long target_clock_t; #define TARGET_HZ 100 @@ -2527,3 +2532,23 @@ struct target_ucred { }; #endif + + +struct target_timer_t { + abi_ulong ptr; +}; + +struct target_sigevent { + target_sigval_t sigev_value; + int32_t sigev_signo; + int32_t sigev_notify; + union { + int32_t _pad[ARRAY_SIZE(((struct sigevent *)0)->_sigev_un._pad)]; + int32_t _tid; + + struct { + void (*_function)(sigval_t); + void *_attribute; + } _sigev_thread; + } _sigev_un; +};