diff mbox

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

Message ID 5a59c2a998f76cbefb31f93ec6893a8c388b5d61.1403529801.git.riku.voipio@linaro.org
State Accepted
Headers show

Commit Message

Riku Voipio June 23, 2014, 1:26 p.m. UTC
From: Paul Burton <paul@archlinuxmips.org>

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

Signed-off-by: Paul Burton <paul@archlinuxmips.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 linux-user/syscall.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

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);