From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyeyw-0000yB-VN for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wyeyp-0005N2-2w for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:42 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:59130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyeyo-0005Mq-TU for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:35 -0400 Received: by mail-wg0-f45.google.com with SMTP id l18so5382106wgh.28 for ; Sun, 22 Jun 2014 03:26:34 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sun, 22 Jun 2014 11:25:46 +0100 Message-Id: <1403432748-4679-15-git-send-email-paul@archlinuxmips.org> In-Reply-To: <1403432748-4679-1-git-send-email-paul@archlinuxmips.org> References: <1403432748-4679-1-git-send-email-paul@archlinuxmips.org> Subject: [Qemu-devel] [PATCH v3 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 v3: - None. 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 b630ef3..876e557 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9569,6 +9569,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