From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnzW1-0006p3-KS for qemu-devel@nongnu.org; Thu, 09 Oct 2008 13:41:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnzW0-0006nu-UJ for qemu-devel@nongnu.org; Thu, 09 Oct 2008 13:41:33 -0400 Received: from [199.232.76.173] (port=50038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnzW0-0006nY-PL for qemu-devel@nongnu.org; Thu, 09 Oct 2008 13:41:32 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:63612) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnzW0-0001En-HF for qemu-devel@nongnu.org; Thu, 09 Oct 2008 13:41:32 -0400 Received: by ey-out-1920.google.com with SMTP id 4so49813eyk.4 for ; Thu, 09 Oct 2008 10:41:26 -0700 (PDT) From: "Kirill A. Shutemov" Date: Thu, 9 Oct 2008 20:42:29 +0300 Message-Id: <1223574149-7008-1-git-send-email-kirill@shutemov.name> In-Reply-To: <1223492074-5677-6-git-send-email-kirill@shutemov.name> References: <1223492074-5677-6-git-send-email-kirill@shutemov.name> Subject: [Qemu-devel] [PATCH, v2] Implement sem* syscalls Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Kirill A. Shutemov" Signed-off-by: Kirill A. Shutemov --- linux-user/syscall.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1852f35..1a09d90 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4906,7 +4906,21 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, ret = do_ipc(arg1, arg2, arg3, arg4, arg5, arg6); break; #endif - +#ifdef TARGET_NR_semget + case TARGET_NR_semget: + ret = get_errno(semget(arg1, arg2, arg3)); + break; +#endif +#ifdef TARGET_NR_semop + case TARGET_NR_semop: + ret = get_errno(do_semop(arg1, arg2, arg3)); + break; +#endif +#ifdef TARGET_NR_semctl + case TARGET_NR_semctl: + ret = do_semctl(arg1, arg2, arg3, (union target_semun)(abi_ulong)arg4); + break; +#endif #ifdef TARGET_NR_msgctl case TARGET_NR_msgctl: ret = do_msgctl(arg1, arg2, arg3); -- 1.5.6.5.GIT