qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] linux-user: Add support for oldumount


From: dillona
Subject: [Qemu-devel] [PATCH] linux-user: Add support for oldumount
Date: Thu, 3 Jan 2013 21:59:28 -0500

From: Dillon Amburgey <address@hidden>

This is used at least on the Alpha architecture

Signed-off-by: Dillon Amburgey <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]