From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpKMu-0003uZ-B5 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpKMr-0003tj-FF for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:39 -0400 Received: from [199.232.76.173] (port=47850 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpKMq-0003tb-Mo for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:36 -0400 Received: from nf-out-0910.google.com ([64.233.182.186]:12144) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpKMq-00078m-Ch for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:36 -0400 Received: by nf-out-0910.google.com with SMTP id b2so792482nfb.12 for ; Mon, 13 Oct 2008 03:09:36 -0700 (PDT) From: "Kirill A. Shutemov" Date: Mon, 13 Oct 2008 13:10:33 +0300 Message-Id: <1223892640-15545-6-git-send-email-kirill@shutemov.name> In-Reply-To: <1223892640-15545-5-git-send-email-kirill@shutemov.name> References: <1223892640-15545-1-git-send-email-kirill@shutemov.name> <1223892640-15545-2-git-send-email-kirill@shutemov.name> <1223892640-15545-3-git-send-email-kirill@shutemov.name> <1223892640-15545-4-git-send-email-kirill@shutemov.name> <1223892640-15545-5-git-send-email-kirill@shutemov.name> Subject: [Qemu-devel] [PATCH] 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" , Paul Brook 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