From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwULJ-0006J6-1W for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwULF-0000fU-Qn for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:09 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:35947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwULF-0000ew-IF for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:05 -0400 Received: by mail-lf0-x230.google.com with SMTP id b75so346722162lfg.3 for ; Tue, 18 Oct 2016 06:22:05 -0700 (PDT) From: riku.voipio@linaro.org Date: Tue, 18 Oct 2016 16:21:37 +0300 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PULL v2 09/22] linux-user: add kcmp() syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Laurent Vivier From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3396d4b..e005401 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -306,6 +306,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, }, @@ -12099,6 +12104,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: -- 2.1.4