From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAk-0005S2-0t for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyUAc-0005h2-46 for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:09 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:51035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAb-0005gh-Uh for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:02 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so5269684wes.31 for ; Sat, 21 Jun 2014 15:54:00 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sat, 21 Jun 2014 23:53:09 +0100 Message-Id: <1403391191-18603-15-git-send-email-paul@archlinuxmips.org> In-Reply-To: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> References: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> Subject: [Qemu-devel] [PATCH v2 14/16] linux-user: support the unshare syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Paul Burton Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0bbdf61..936064c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9548,6 +9548,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