Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2021 14:04:53 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1b11173c00d8 - main - linux: extend the LINUX_O_ constants to make room for O_PATH
Message-ID:  <202104151404.13FE4rUX016377@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=1b11173c00d84d4a25cc8aa3c6c69cc15696b0ec

commit 1b11173c00d84d4a25cc8aa3c6c69cc15696b0ec
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-04-15 13:38:58 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2021-04-15 14:04:44 +0000

    linux: extend the LINUX_O_ constants to make room for O_PATH
    
    No functional changes.
    
    Sponsored By:   EPSRC
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104151404.13FE4rUX016377>