From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KneAY-0004Nx-Ne for qemu-devel@nongnu.org; Wed, 08 Oct 2008 14:53:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KneAW-0004NK-Pg for qemu-devel@nongnu.org; Wed, 08 Oct 2008 14:53:57 -0400 Received: from [199.232.76.173] (port=54482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KneAW-0004NE-EU for qemu-devel@nongnu.org; Wed, 08 Oct 2008 14:53:56 -0400 Received: from nf-out-0910.google.com ([64.233.182.189]:14572) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KneAV-0006s3-Se for qemu-devel@nongnu.org; Wed, 08 Oct 2008 14:53:56 -0400 Received: by nf-out-0910.google.com with SMTP id b2so1797248nfb.12 for ; Wed, 08 Oct 2008 11:53:55 -0700 (PDT) From: "Kirill A. Shutemov" Date: Wed, 8 Oct 2008 21:54:30 +0300 Message-Id: <1223492074-5677-6-git-send-email-kirill@shutemov.name> In-Reply-To: <1223492074-5677-5-git-send-email-kirill@shutemov.name> References: <1223492074-5677-1-git-send-email-kirill@shutemov.name> <1223492074-5677-2-git-send-email-kirill@shutemov.name> <1223492074-5677-3-git-send-email-kirill@shutemov.name> <1223492074-5677-4-git-send-email-kirill@shutemov.name> <1223492074-5677-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" 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 54c53c2..33dc269 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)arg4); + break; +#endif #ifdef TARGET_NR_msgctl case TARGET_NR_msgctl: ret = do_msgctl(arg1, arg2, arg3); -- 1.5.6.5.GIT