qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 17/19] linux-user: support the unshare syscall


From: riku . voipio
Subject: [Qemu-devel] [PULL 17/19] linux-user: support the unshare syscall
Date: Mon, 23 Jun 2014 16:26:32 +0300

From: Paul Burton <address@hidden>

Add support for the unshare syscall, trivially passed through to the
host.

Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
 linux-user/syscall.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ecd5be9..769c661 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9617,6 +9617,12 @@ abi_long do_syscall(void *cpu_env, int num, abi_long 
arg1,
         break;
 #endif
 
+#ifdef TARGET_NR_unshare
+    case TARGET_NR_unshare:
+        ret = get_errno(unshare(arg1));
+        break;
+#endif
+
     default:
     unimplemented:
         gemu_log("qemu: Unsupported syscall: %d\n", num);
-- 
2.0.0




reply via email to

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