Message ID | 20200907091748.376101-4-laurent@vivier.eu |
---|---|
State | Accepted |
Commit | a7b4c9b1b411a8d54882e75c046b026a7a9754f9 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3521656ilg; Mon, 7 Sep 2020 02:18:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2xhW80ZaSDShI8Pl9Q7t8pY4eYWyHl38sjE9j9RSSBU1GjoTD5ewOMUFED7yjn0M4oJaX X-Received: by 2002:a25:ca85:: with SMTP id a127mr27032618ybg.113.1599470292457; Mon, 07 Sep 2020 02:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599470292; cv=none; d=google.com; s=arc-20160816; b=wEpenyLbm3MeFjvWAA8GVobtaOy7cTnJb/5Z3krg4E0zpH5RQEeV/cSaeb9KrTFCWG 37T3DbbsqyBmZ+yxAIHMu3y9BBB224OWIXOJOuuDSsOMHNPOAMbMSo0oPa1uLwnAPbSn 4Xg432vJB6SZ8YRYDZDxKLlXjtln2r4AQ8vjuCxBEj+VFi2MUMiEhUmbpn5qCQtkvQXQ ivZO2As95hjU/X8hwW6Fab9tdoZ2CKr6VHSeC1f9V1QZL6+3TupYxc720mMmMJLdT/d6 JbzLTSYPDiY+vWDwubUDUT0tXHsRYt5SAofsGt3adZ5wm7yRxM1csYGmeR/HOqiaMn23 zGwg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=md1P8Uif5ME2GGnXcajEwOthl/Frv+0F7X6L7JuA0rY=; b=CCq2XcPQuNK0tmIfgG/afd2Whu76T4nYzSBM8ylnW1xctv4fOkh1Yz4wgV3xKEC+zD pdLb5zQZVkRJSIol1o0lj0r6q+yeBN0ABdDcBH8obzD9fpFoZpUtG9sOvjTV5DoGTRb5 eYd1CZfTugcOsLbncwv3C1eyne8mb1j7850hbyBfTq71MVVxQeNavRo9M0onoLrkoVWv To/jQ68TGCjR9FZkVmMKxLTd9Dr/Y96UMQ4caKXH9qeKqLf+I6j5QgU1GifEvMlQLmdi LBlLfF+bIDahO4YIKh86tJpuDgJaV3legO1CNKFV/nGJ2QFlv88GkqbiZUSuvgujHR9A 5Mfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t4si2313133ybo.60.2020.09.07.02.18.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Sep 2020 02:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:55276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1kFDHv-0005Yu-Sw for patch@linaro.org; Mon, 07 Sep 2020 05:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <laurent@vivier.eu>) id 1kFDHl-0005Vs-8V for qemu-devel@nongnu.org; Mon, 07 Sep 2020 05:18:01 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:39529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <laurent@vivier.eu>) id 1kFDHi-0002ag-9u for qemu-devel@nongnu.org; Mon, 07 Sep 2020 05:18:00 -0400 Received: from localhost.localdomain ([82.252.135.186]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M1rGy-1kHP9226vo-002JmW; Mon, 07 Sep 2020 11:17:56 +0200 From: Laurent Vivier <laurent@vivier.eu> To: qemu-devel@nongnu.org Subject: [PULL 3/5] linux-user: Map signal numbers in fcntl Date: Mon, 7 Sep 2020 11:17:46 +0200 Message-Id: <20200907091748.376101-4-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200907091748.376101-1-laurent@vivier.eu> References: <20200907091748.376101-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:5I++V1PHEcNFxv/1ac2bZzma1ITTIKhJYuE8s/AfKGb4vpTiCw3 YGroeprqgP2T2IC7BAs8yLq2OqzkW5wXeGuu6aHmX8V73lD5D7HDkyE7WV+tRbq7XOfVQe8 V8pzkuT8r2q4Ytsr8iQKDDDhfmRh7bpdDF4bvnlUKY6KOCnruLFNUqdsgPjzIOYnj2YL9Wd HQxM0SI9pxIfLnk2p8r3g== X-UI-Out-Filterresults: notjunk:1; V03:K0:omUjcF4NAKc=:ZiK7KcfGJ4VdFphpz3bv5T QjDk1zQVs/ji+alkD+HVlHEUS6w/8TbVHOIW0fC4WV68iHBmO2XNi83e1+64MZsKl52olhn+l 98a+3Ar/+tBL/5QO52E3F5FKnTppjxTvFLt9XlI+dawq+cjf20xczSeWLTe0LeUUUmEwkojfm i2QgDM6S3dfmeTHzNL4x10rU3ep0WkbwPcwoJ58C54WZReQ8Cvtsxvu7omwO+cDJHMhfGeR9t 7T9kIco8jruh8sPtqgFlN7V0XRN8WP2zt61zVhyuyXWRk53MzlFRVD2d5j+JAhcy7KVM84Eqo 7QhRydGxhXXY6XxhsnsBcVTyVVk3pj8cNGWfSY2zRvkpTonWFJrDMEJS1tZNmzkcB5C+iRp3k ssvtVtEw2R6XSjlgtDIvceW6Zw/onJ4dZrXQ9yc07rD14R1klwE3Io+jmbpnZJ1TH/kg3kdLB U/5bmwWL3kzQbdwJ5bRVEUPGcoLfYJTwL0KexXF5OHBVUHfiB7xSJwB7NxNYiBF3fGibVQAwE fmPxL0OvmvH49xvKZflrRrCNUXYYaTl9lp9j0YXiiraHDQmD78BETTWmYBf0sOyViS3al4gvH bEdMHPmIliI204zuQx+u3evZB1oEr5FCAKKAglZf7UESaG4P725ES/XVEfhToWpeO2onoIbBM DpzieR40HqJtKaSHolZV1czD1cPEG+87j9yzPneXRvGPWKXKcsacW22kJuE9tHCW5JPPH3o0t a79CGRmOZJ7ShJpJFTrAKqW1rvMm0dzSUGd7SKPONtgJ+6b9uOl8ThlyrBc1g2+riLCOR/4Xs vPwc/6YBvZ/KHrA7D3cJ83IhdhqzKUWz7PCRCVV2IC7Bwj2B3ndlfLDmmrwFTPeR4tLjlgV Received-SPF: none client-ip=212.227.126.130; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 05:17:57 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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: Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>, Laurent Vivier <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 for 5.2 patches
|
expand
|
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 07220eee40c5..55ac5c320825 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6874,10 +6874,16 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) break; #endif - case TARGET_F_SETOWN: - case TARGET_F_GETOWN: case TARGET_F_SETSIG: + ret = get_errno(safe_fcntl(fd, host_cmd, target_to_host_signal(arg))); + break; + case TARGET_F_GETSIG: + ret = host_to_target_signal(get_errno(safe_fcntl(fd, host_cmd, arg))); + break; + + case TARGET_F_SETOWN: + case TARGET_F_GETOWN: case TARGET_F_SETLEASE: case TARGET_F_GETLEASE: case TARGET_F_SETPIPE_SZ: