Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton <p...@archlinuxmips.org> --- 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