From nobody Thu Feb 17 10:55:25 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DD12A19D487E; Thu, 17 Feb 2022 10:55:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzsDY5Y59z4jZv; Thu, 17 Feb 2022 10:55:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645095325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WgpSeAdmQP7ncNalhTPiKSPeqXamYQt2Apab6DMgNoI=; b=itkRI7DzmR+66UxdFpZ2ql07OZ53rLcwM+njoa5AwbUWNpyaWNE1LzFt/NaJBaOZSycoFm o8H9qTYQE2Phu+/zEqQy1DzHcfbBe6BN8NM4uCusQSdEaoQxYImGz/PY9x0w7HFV7ZhOjt H5rwjerIgr2k0cVjtfrlxjcxQOVazBa42JohPslVBRT8wySsFWR2DNjapo96lJOC7b7T1y faFh+MqFrcJwazf3UOURep9feRkfR11n2av+kKI++O1cYCmhE55/6CwdKyCl0P2q/N1UIl RXJCjRD4hHK246AoGYinPOojvQQU03lSeXfcbRKCV4j+fwfMppD/tlfBXaQCIg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9A1DC8A1; Thu, 17 Feb 2022 10:55:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21HAtP0c019913; Thu, 17 Feb 2022 10:55:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HAtPvV019912; Thu, 17 Feb 2022 10:55:25 GMT (envelope-from git) Date: Thu, 17 Feb 2022 10:55:25 GMT Message-Id: <202202171055.21HAtPvV019912@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 10553107a824 - stable/13 - linux: extend the LINUX_O_ constants to make room for O_PATH List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 10553107a824d427c0d6b1a003c2dae540813658 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645095325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WgpSeAdmQP7ncNalhTPiKSPeqXamYQt2Apab6DMgNoI=; b=nksM3+yGNZPHgb97i1lCwngIE0EG0e+DsUK6Y4OlpRt3VrtsW8JdZZKf9jB3mWTk0wGfch 5GW9wD+Np6KtztlwKRWr8t1xGgGEhweAoLltMNEbMoePlHBu3t9Td2XP7gpJjaBm4IP9K4 Sd6XxCVq7JkuQSvsfd3Vt7mLC8pPNRNSVO4mLt77L+HYWW/8UERHgavTdAEUzOofkzd3uK JrBbHWP4LhB579pZltvIT8w2eSHqLWHPOY+/gKMmyCCDKY21q7l/vlXP1ftbD7YO8T+4L6 AZZ1W7W/wcn7/34ygWS7J/UHOllNpKZYCxYyY+C4w6aNL3FhOJY3I2UM1H4IKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645095325; a=rsa-sha256; cv=none; b=DLqc/Y+6eEzLyh8VsCebPtOyKNMuUO2WoqZK2FlBd6iu+r/d059NGqwg5R3POP4CdJrkP6 MBJrB+g94jfnv/IyzDDAY3U1jS0MJBu2wYcPsi5ZdLGML1nUDMIAkaVTFfwUZGsaf/2pwN 2VQf47pkNUbWVeEeRHOkQpr9tfx8ZVLXDoZxEWeYhn84mfZRQ+DW5jrVoxAGul3qg5vq2K EfDKtv3xu7AQ6yqoO5g7hIzcFbIs14QmhTmQPAonu6dTRJAR/5LyUQD913id6DBkrz/D1h c4kiFVHio9H/bZKaoXXJhXmlDYa+VlAndTcVz7q2C8J/ETf23UWzO0d1ChWEeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=10553107a824d427c0d6b1a003c2dae540813658 commit 10553107a824d427c0d6b1a003c2dae540813658 Author: Edward Tomasz Napierala AuthorDate: 2021-04-15 13:38:58 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-02-13 21:06:37 +0000 linux: extend the LINUX_O_ constants to make room for O_PATH No functional changes. Sponsored By: EPSRC (cherry picked from commit 1b11173c00d84d4a25cc8aa3c6c69cc15696b0ec) --- sys/compat/linux/linux_file.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h index 5a11e999ed59..03450b95f25c 100644 --- a/sys/compat/linux/linux_file.h +++ b/sys/compat/linux/linux_file.h @@ -65,25 +65,25 @@ /* * common open/fcntl flags */ -#define LINUX_O_RDONLY 00000000 -#define LINUX_O_WRONLY 00000001 -#define LINUX_O_RDWR 00000002 -#define LINUX_O_ACCMODE 00000003 -#define LINUX_O_CREAT 00000100 -#define LINUX_O_EXCL 00000200 -#define LINUX_O_NOCTTY 00000400 -#define LINUX_O_TRUNC 00001000 -#define LINUX_O_APPEND 00002000 -#define LINUX_O_NONBLOCK 00004000 +#define LINUX_O_RDONLY 000000000 +#define LINUX_O_WRONLY 000000001 +#define LINUX_O_RDWR 000000002 +#define LINUX_O_ACCMODE 000000003 +#define LINUX_O_CREAT 000000100 +#define LINUX_O_EXCL 000000200 +#define LINUX_O_NOCTTY 000000400 +#define LINUX_O_TRUNC 000001000 +#define LINUX_O_APPEND 000002000 +#define LINUX_O_NONBLOCK 000004000 #define LINUX_O_NDELAY LINUX_O_NONBLOCK -#define LINUX_O_SYNC 00010000 -#define LINUX_O_ASYNC 00020000 -#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ -#define LINUX_O_LARGEFILE 00100000 -#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ -#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ -#define LINUX_O_NOATIME 01000000 -#define LINUX_O_CLOEXEC 02000000 +#define LINUX_O_SYNC 000010000 +#define LINUX_O_ASYNC 000020000 +#define LINUX_O_DIRECT 000040000 /* Direct disk access hint */ +#define LINUX_O_LARGEFILE 000100000 +#define LINUX_O_DIRECTORY 000200000 /* Must be a directory */ +#define LINUX_O_NOFOLLOW 000400000 /* Do not follow links */ +#define LINUX_O_NOATIME 001000000 +#define LINUX_O_CLOEXEC 002000000 #define LINUX_F_DUPFD 0 #define LINUX_F_GETFD 1