From owner-dev-commits-src-all@freebsd.org Thu Aug 12 08:43:13 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2FB58666DD2; Thu, 12 Aug 2021 08:43:13 +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 4GlgFF0pF7z4RsL; Thu, 12 Aug 2021 08:43:13 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 03DB01FCEB; Thu, 12 Aug 2021 08:43:13 +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 17C8hCqX050107; Thu, 12 Aug 2021 08:43:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17C8hCx2050106; Thu, 12 Aug 2021 08:43:12 GMT (envelope-from git) Date: Thu, 12 Aug 2021 08:43:12 GMT Message-Id: <202108120843.17C8hCx2050106@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: fc37be246021 - main - linux(4): Plug in aarch64 fcntl flags. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc37be246021ee9b7110c9f506141c2bf0bc9fb0 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2021 08:43:13 -0000 The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=fc37be246021ee9b7110c9f506141c2bf0bc9fb0 commit fc37be246021ee9b7110c9f506141c2bf0bc9fb0 Author: Dmitry Chagin AuthorDate: 2021-08-12 08:42:50 +0000 Commit: Dmitry Chagin CommitDate: 2021-08-12 08:42:50 +0000 linux(4): Plug in aarch64 fcntl flags. Fixes opendir() libc function. Differential Revision: https://reviews.freebsd.org/D31357 MFC after: 2 weeks --- sys/arm64/linux/linux.h | 5 +++++ sys/compat/linux/linux_file.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/sys/arm64/linux/linux.h b/sys/arm64/linux/linux.h index 7ea169b962b4..b5273498a5aa 100644 --- a/sys/arm64/linux/linux.h +++ b/sys/arm64/linux/linux.h @@ -117,6 +117,11 @@ struct l_timespec { l_long tv_nsec; }; +#define LINUX_O_DIRECTORY 000040000 /* Must be a directory */ +#define LINUX_O_NOFOLLOW 000100000 /* Do not follow links */ +#define LINUX_O_DIRECT 000200000 /* Direct disk access hint */ +#define LINUX_O_LARGEFILE 000400000 + struct l_newstat { l_dev_t st_dev; l_ino_t st_ino; diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h index ab137ba6b9c3..e6a5bf0ce8a6 100644 --- a/sys/compat/linux/linux_file.h +++ b/sys/compat/linux/linux_file.h @@ -78,10 +78,18 @@ #define LINUX_O_NDELAY LINUX_O_NONBLOCK #define LINUX_O_SYNC 000010000 #define LINUX_O_ASYNC 000020000 +#ifndef LINUX_O_DIRECT #define LINUX_O_DIRECT 000040000 /* Direct disk access hint */ +#endif +#ifndef LINUX_O_LARGEFILE #define LINUX_O_LARGEFILE 000100000 +#endif +#ifndef LINUX_O_DIRECTORY #define LINUX_O_DIRECTORY 000200000 /* Must be a directory */ +#endif +#ifndef LINUX_O_NOFOLLOW #define LINUX_O_NOFOLLOW 000400000 /* Do not follow links */ +#endif #define LINUX_O_NOATIME 001000000 #define LINUX_O_CLOEXEC 002000000 #define LINUX_O_PATH 010000000