From nobody Fri Nov 7 12:59:48 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1547848151129521.3470295097028; Fri, 18 Jan 2019 13:49:11 -0800 (PST) Received: from localhost ([127.0.0.1]:47621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkc0f-0001pP-GU for importer@patchew.org; Fri, 18 Jan 2019 16:49:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkbl6-0005g6-JO for qemu-devel@nongnu.org; Fri, 18 Jan 2019 16:33:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkbl4-0005N7-Qa for qemu-devel@nongnu.org; Fri, 18 Jan 2019 16:33:00 -0500 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:45122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkbl3-0005J5-58 for qemu-devel@nongnu.org; Fri, 18 Jan 2019 16:32:58 -0500 Received: by mail-pg1-x542.google.com with SMTP id y4so6630308pgc.12 for ; Fri, 18 Jan 2019 13:32:56 -0800 (PST) Received: from cloudburst.twiddle.net ([2001:8000:10e0:a000:c673:a6b6:fdef:1933]) by smtp.gmail.com with ESMTPSA id v12sm5833667pgg.41.2019.01.18.13.32.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 13:32:55 -0800 (PST) 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=mMLXq3y5oDzTH+FS6gxmVbqTOM9CfvVIfIxHklj9DEE=; b=ECsFVkkyG2U2ifnOLYIPTNfoG6MEgQK7Dplr84fRKJFiV996G/SHJq2v/56qUPOZtp W6szXUTdSSCh9/Am54pB9BcQJU/S9JnYs9QFQ14rHVV6MPGkYis7oCG4L0Flx/QiVuDQ 6mLQopO6cyS+T4VyLX3FNA1WQkn+EfP1rXV1k= 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=mMLXq3y5oDzTH+FS6gxmVbqTOM9CfvVIfIxHklj9DEE=; b=nZzc3OMDX4jijNOqFioxDOskk0XVTJM1H05LcvjKwjYa55YAHGS9jKuOoMiHwOToRL ydxGnwM3Fo3fBrigUvEyeUpz3n30Nx5Hv1Chc5qwdFA6f18EViXU9SJm+OUTkQQfEVHn DMJ8Dw1pwwWKB87h2BHYYt89fA8Ja5sZWfIh4qr+mUxYK8h9Ks11CCiRhj20+MpCMEpg trlZn8BL2Zq61ZTCJv+OdKk8+iDCa+vRrcR45ZADwedO7aubGgP4DS3+S7JciPeSJ+PT g3EdzB1/sl3rfz5BCVA3y7713uyxOLlO43I6hrnu+eGvmTdNt02fM/Hh+Z7E8JB5D+6H byTA== X-Gm-Message-State: AJcUukddTfVpf/yJoQ6XAB5hcsvNBvSFpvFGaOgwiOH+LsnGDNR9aVa4 2e2TsmysuKBCCTiSM+0gwKeMSfm+13M= X-Google-Smtp-Source: ALg8bN6OkxKJEPzklQrbC5IkiFG0iidNRLKaDCX6wsyu09IG9KiwbVDudQf5rAldIzrEMP101fq8CQ== X-Received: by 2002:a65:50c1:: with SMTP id s1mr18918723pgp.350.1547847175906; Fri, 18 Jan 2019 13:32:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 19 Jan 2019 08:31:11 +1100 Message-Id: <20190118213122.22865-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190118213122.22865-1-richard.henderson@linaro.org> References: <20190118213122.22865-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH v6 38/49] linux-user: Split out nice X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 3 +++ linux-user/syscall-proc.inc.c | 7 +++++++ linux-user/syscall.c | 4 ---- linux-user/strace.list | 3 --- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/linux-user/syscall-defs.h b/linux-user/syscall-defs.h index 39e3ae3c21..860754aaca 100644 --- a/linux-user/syscall-defs.h +++ b/linux-user/syscall-defs.h @@ -111,6 +111,9 @@ SYSCALL_DEF(munlockall); SYSCALL_DEF(munmap, ARG_PTR, ARG_DEC); SYSCALL_DEF(name_to_handle_at, ARG_ATDIRFD, ARG_STR, ARG_PTR, ARG_PTR, ARG_ATFLAG); +#ifdef TARGET_NR_nice +SYSCALL_DEF(nice, ARG_DEC); +#endif #ifdef TARGET_NR_open SYSCALL_DEF(open, ARG_STR, ARG_OPENFLAG, ARG_MODEFLAG); #endif diff --git a/linux-user/syscall-proc.inc.c b/linux-user/syscall-proc.inc.c index c09c83775c..58c0a22300 100644 --- a/linux-user/syscall-proc.inc.c +++ b/linux-user/syscall-proc.inc.c @@ -461,6 +461,13 @@ SYSCALL_IMPL(getxpid) } #endif =20 +#ifdef TARGET_NR_nice +SYSCALL_IMPL(nice) +{ + return get_errno(nice(arg1)); +} +#endif + /* * Map host to target signal numbers for the wait family of syscalls. * Assume all other status bits are the same. diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9074cf8b8d..351b2a6288 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5327,10 +5327,6 @@ static abi_long do_syscall1(void *cpu_env, int num, = abi_long arg1, void *p; =20 switch(num) { -#ifdef TARGET_NR_nice /* not on alpha */ - case TARGET_NR_nice: - return get_errno(nice(arg1)); -#endif case TARGET_NR_sync: sync(); return 0; diff --git a/linux-user/strace.list b/linux-user/strace.list index fc0eb91e29..aaea23d433 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -527,9 +527,6 @@ #ifdef TARGET_NR_nfsservctl { TARGET_NR_nfsservctl, "nfsservctl" , NULL, NULL, NULL }, #endif -#ifdef TARGET_NR_nice -{ TARGET_NR_nice, "nice" , NULL, NULL, NULL }, -#endif #ifdef TARGET_NR_old_adjtimex { TARGET_NR_old_adjtimex, "old_adjtimex" , NULL, NULL, NULL }, #endif --=20 2.17.2