Received: from eggs.gnu.org ([208.118.235.92]:43400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqxVj-00007V-Ul for qemu-devel@nongnu.org; Thu, 03 Jan 2013 22:00:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqxVf-0000u8-My for qemu-devel@nongnu.org; Thu, 03 Jan 2013 21:59:55 -0500 Received: from mail-gg0-f176.google.com ([209.85.161.176]:39198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqxVf-0000ty-IO for qemu-devel@nongnu.org; Thu, 03 Jan 2013 21:59:51 -0500 Received: by mail-gg0-f176.google.com with SMTP id h3so2511762gge.21 for ; Thu, 03 Jan 2013 18:59:50 -0800 (PST) Sender: Dillon Amburgey From: dillona@dillona.com Date: Thu, 3 Jan 2013 21:59:28 -0500 Message-Id: <1357268368-3692-1-git-send-email-dillona@dillona.com> Subject: [Qemu-devel] [PATCH] linux-user: Add support for oldumount List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: riku.voipio@iki.fi, Dillon Amburgey From: Dillon Amburgey This is used at least on the Alpha architecture Signed-off-by: Dillon Amburgey --- linux-user/syscall.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e99adab..0cd54f3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5497,6 +5497,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, unlock_user(p3, arg3, 0); break; } +#ifdef TARGET_NR_oldumount + case TARGET_NR_oldumount: + if (!(p = lock_user_string(arg1))) + goto efault; + ret = get_errno(umount(p)); + unlock_user(p, arg1, 0); + break; +#endif #ifdef TARGET_NR_umount case TARGET_NR_umount: if (!(p = lock_user_string(arg1))) -- 1.7.5.4