From: Laurent Vivier Date: Sun, 25 Sep 2016 20:20:20 +0000 (+0200) Subject: linux-user: add kcmp() syscall X-Git-Tag: TizenStudio_2.0_p2.3.2~9^2~14^2~5^2~119^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f14788c542fcdc7fc2eb4a93db7facb39c43463;p=sdk%2Femulator%2Fqemu.git linux-user: add kcmp() syscall Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index eb90401..beeb23d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -305,6 +305,11 @@ _syscall3(int, ioprio_set, int, which, int, who, int, ioprio) _syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags) #endif +#if defined(TARGET_NR_kcmp) && defined(__NR_kcmp) +_syscall5(int, kcmp, pid_t, pid1, pid_t, pid2, int, type, + unsigned long, idx1, unsigned long, idx2) +#endif + static bitmask_transtbl fcntl_flags_tbl[] = { { TARGET_O_ACCMODE, TARGET_O_WRONLY, O_ACCMODE, O_WRONLY, }, { TARGET_O_ACCMODE, TARGET_O_RDWR, O_ACCMODE, O_RDWR, }, @@ -12080,6 +12085,11 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, ret = get_errno(unshare(arg1)); break; #endif +#if defined(TARGET_NR_kcmp) && defined(__NR_kcmp) + case TARGET_NR_kcmp: + ret = get_errno(kcmp(arg1, arg2, arg3, arg4, arg5)); + break; +#endif default: unimplemented: