From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpKMo-0003sP-56 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpKMl-0003rE-VZ for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:33 -0400 Received: from [199.232.76.173] (port=47848 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpKMl-0003r8-Rm for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:31 -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 1KpKMl-00078m-IP for qemu-devel@nongnu.org; Mon, 13 Oct 2008 06:09:31 -0400 Received: by nf-out-0910.google.com with SMTP id b2so792482nfb.12 for ; Mon, 13 Oct 2008 03:09:30 -0700 (PDT) From: "Kirill A. Shutemov" Date: Mon, 13 Oct 2008 13:10:31 +0300 Message-Id: <1223892640-15545-4-git-send-email-kirill@shutemov.name> In-Reply-To: <1223892640-15545-3-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> Subject: [Qemu-devel] [PATCH] Implement msg* 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 | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7e67093..cf0834f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4829,6 +4829,27 @@ 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_msgctl + case TARGET_NR_msgctl: + ret = do_msgctl(arg1, arg2, arg3); + break; +#endif +#ifdef TARGET_NR_msgget + case TARGET_NR_msgget: + ret = get_errno(msgget(arg1, arg2)); + break; +#endif +#ifdef TARGET_NR_msgrcv + case TARGET_NR_msgrcv: + ret = do_msgrcv(arg1, arg2, arg3, arg4, arg5); + break; +#endif +#ifdef TARGET_NR_msgsnd + case TARGET_NR_msgsnd: + ret = do_msgsnd(arg1, arg2, arg3, arg4); + break; +#endif case TARGET_NR_fsync: ret = get_errno(fsync(arg1)); break; -- 1.5.6.5.GIT