Message ID | 20180610030220.3777-48-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2590545lji; Sat, 9 Jun 2018 20:32:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJxjm4rPnz1drtSzmla3maVENOThWVH/Bw1P4Q1qNmZCf41IOsQaR9hDkDafomvOKikK01O X-Received: by 2002:ac8:5357:: with SMTP id d23-v6mr11698063qto.141.1528601577174; Sat, 09 Jun 2018 20:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528601577; cv=none; d=google.com; s=arc-20160816; b=KLzDgMBJppP0bnnlkEl7kxfqkqFGEPgpaR0EAPDFJH2YbpXT3o7Pxv1N2Z9cCVK1u+ 4TuI2u6nBWIrHj4rnefuX1ZpX7eanxLVepRR/zRJNcFSVyoDNb84LCQ/8N4a9iblyPvO fsNqawu2ZIIoI6SdlxzaoU5xtGvtB2NMiFEqwm2dCmHV8hcpkxsy8+dpMMXEG/ERyV9A 0vw6WpMXuIDq+qJcw8AOlFPjNuM69zRajsH4AanPSIrCJguQDTZd8MRVb6rq70YnNaT/ sxBrkTq4XWPAwKooon6Bxv5SLa/5Gufqkbzr9NJ3d4oZioeADstbuXOn7r/1VCQG/ama Rg/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=OBIc/rQtLZMy4OOibis5Hv2ns2cWIr/YC3Xq+oUp3Kk=; b=fCj/Pi6/om52Rjy/TaNd8pV3UPgd7M5IGLLKvs2C6f9RECS+W63Wgl6U6xMw6L+VRw NxQT8vf/JfmM+PZn3dpBtSVw2B2CfubAIXMK33TOfiB3mlvH/lD0eEMYrrXjS3jlLcr/ ljpvT7GAUdtZAYwInfovSJ1CDb92AAxYsYvZTBdoI7hPsEAN4qfOkanwjR7aJGfUp5JB EgS9lArhG74+5KO6/SmzlJXP7OqUWGKafDUnnpliOdlDaI9AIvyguZbCgzOcClwPROWd AvI8OIuzlwUYyRFIYf/AxCBoZSWdoUu0KNGGm8/5yrGXUkrnMRbUE1wEBKIF8oldarnU Yt3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OI4LaxGz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h47-v6si9556517qvi.184.2018.06.09.20.32.57 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 09 Jun 2018 20:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OI4LaxGz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fRr68-0002SK-Gz for patch@linaro.org; Sat, 09 Jun 2018 23:32:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fRqeK-00032H-UQ for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:04:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fRqeI-0003hD-Bz for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:04:12 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:44843) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fRqeI-0003go-5l for qemu-devel@nongnu.org; Sat, 09 Jun 2018 23:04:10 -0400 Received: by mail-pg0-x244.google.com with SMTP id p21-v6so8127954pgd.11 for <qemu-devel@nongnu.org>; Sat, 09 Jun 2018 20:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OBIc/rQtLZMy4OOibis5Hv2ns2cWIr/YC3Xq+oUp3Kk=; b=OI4LaxGz7eS7rYyTwR6JmA27t4OoNOeZVPqz5p/b+TynCJZG5vFgu4kgNVM73vbrYZ bSjYk8Y4FNtM5/rDg71Cclm+poV9678k4jm9Uy5f+z9NiD2+tfc5fXhg/IfACY9/6YmI slH/6y2/H0wf6pZ0ZH+dtVZ1keh/vXHAep2cQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OBIc/rQtLZMy4OOibis5Hv2ns2cWIr/YC3Xq+oUp3Kk=; b=Y4XDfNzv4cllsjCENhfKjEu3f7SgnkSSnDOO50A8JC5racvTxfwc514+lpIs+SZt3d DPJ4Lrv+bZ4NPXB1g0Ier9/RW2eaeVGeYfyxZrZM8ym8+A3+ixVio6VgJAXxDwNIle0N zeTVIFbzySknTlbYsagr5enNl2WCVsdrXwEn8U8ugaXH3BcL2/aewjlSsXk4mlz9sQGH dIn6Ez3e+uv7bF6Q0UJRI9tVxih2Z6XvdV78U4+ldbl+pgDMXuTiBIE8li19chfbS6sO MklSieK8AxFxAOVAjI9Gin4ux4GJT8JsVQoGXw7e2npxeflfQi01R1wthri2LGqO5P3z 9k3A== X-Gm-Message-State: APt69E2t2MzzbCobpXJ0tW8RjQAOJH6Y1ftwZsVcNV8t94xR9exIJJhQ Vp0GAQFb+kyVS5vp3h22jeImbdMyb04= X-Received: by 2002:a65:6356:: with SMTP id p22-v6mr10454935pgv.20.1528599849006; Sat, 09 Jun 2018 20:04:09 -0700 (PDT) Received: from cloudburst.twiddle.net (rrcs-173-198-77-219.west.biz.rr.com. [173.198.77.219]) by smtp.gmail.com with ESMTPSA id y17-v6sm31712718pfe.33.2018.06.09.20.04.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Jun 2018 20:04:08 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Sat, 9 Jun 2018 17:01:19 -1000 Message-Id: <20180610030220.3777-48-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180610030220.3777-1-richard.henderson@linaro.org> References: <20180610030220.3777-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::244 Subject: [Qemu-devel] [PATCH v2 047/108] linux-user: Split out recvmmsg, send, sendmmsg, sendmsg, sendto X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
linux-user: Split do_syscall
|
expand
|
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 98a982f83f..977f61610c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8954,6 +8954,13 @@ IMPL(recvfrom) } #endif +#ifdef TARGET_NR_recvmmsg +IMPL(recvmmsg) +{ + return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 0); +} +#endif + #ifdef TARGET_NR_recvmsg IMPL(recvmsg) { @@ -9288,6 +9295,34 @@ IMPL(select) } #endif +#ifdef TARGET_NR_send +IMPL(send) +{ + return do_sendto(arg1, arg2, arg3, arg4, 0, 0); +} +#endif + +#ifdef TARGET_NR_sendmsg +IMPL(sendmsg) +{ + return do_sendrecvmsg(arg1, arg2, arg3, 1); +} +#endif + +#ifdef TARGET_NR_sendmmsg +IMPL(sendmmsg) +{ + return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 1); +} +#endif + +#ifdef TARGET_NR_sendto +IMPL(sendto) +{ + return do_sendto(arg1, arg2, arg3, arg4, arg5, arg6); +} +#endif + IMPL(sethostname) { char *p = lock_user_string(arg1); @@ -10000,24 +10035,6 @@ static abi_long do_syscall1(void *cpu_env, unsigned num, abi_long arg1, void *p; switch(num) { -#ifdef TARGET_NR_send - case TARGET_NR_send: - return do_sendto(arg1, arg2, arg3, arg4, 0, 0); -#endif -#ifdef TARGET_NR_sendmsg - case TARGET_NR_sendmsg: - return do_sendrecvmsg(arg1, arg2, arg3, 1); -#endif -#ifdef TARGET_NR_sendmmsg - case TARGET_NR_sendmmsg: - return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 1); - case TARGET_NR_recvmmsg: - return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 0); -#endif -#ifdef TARGET_NR_sendto - case TARGET_NR_sendto: - return do_sendto(arg1, arg2, arg3, arg4, arg5, arg6); -#endif #ifdef TARGET_NR_shutdown case TARGET_NR_shutdown: return get_errno(shutdown(arg1, arg2)); @@ -12942,6 +12959,9 @@ static impl_fn *syscall_table(unsigned num) #ifdef TARGET_NR_recvfrom SYSCALL(recvfrom); #endif +#ifdef TARGET_NR_recvmmsg + SYSCALL(recvmmsg); +#endif #ifdef TARGET_NR_recvmsg SYSCALL(recvmsg); #endif @@ -12972,6 +12992,18 @@ static impl_fn *syscall_table(unsigned num) # else SYSCALL(select); # endif +#endif +#ifdef TARGET_NR_send + SYSCALL(send); +#endif +#ifdef TARGET_NR_sendmmsg + SYSCALL(sendmmsg); +#endif +#ifdef TARGET_NR_sendmsg + SYSCALL(sendmsg); +#endif +#ifdef TARGET_NR_sendto + SYSCALL(sendto); #endif SYSCALL(sethostname); SYSCALL(setpgid);
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/syscall.c | 68 ++++++++++++++++++++++++++++++++------------ 1 file changed, 50 insertions(+), 18 deletions(-) -- 2.17.1