Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153332469
D29773.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
787 B
Referenced Files
None
Subscribers
None
D29773.diff
View Options
diff --git a/sys/compat/linux/linux_file.h b/sys/compat/linux/linux_file.h
--- a/sys/compat/linux/linux_file.h
+++ b/sys/compat/linux/linux_file.h
@@ -84,6 +84,7 @@
#define LINUX_O_NOFOLLOW 000400000 /* Do not follow links */
#define LINUX_O_NOATIME 001000000
#define LINUX_O_CLOEXEC 002000000
+#define LINUX_O_PATH 010000000
#define LINUX_F_DUPFD 0
#define LINUX_F_GETFD 1
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -162,6 +162,8 @@
bsd_flags |= O_NOFOLLOW;
if (l_flags & LINUX_O_DIRECTORY)
bsd_flags |= O_DIRECTORY;
+ if (l_flags & LINUX_O_PATH)
+ bsd_flags |= O_PATH;
/* XXX LINUX_O_NOATIME: unable to be easily implemented. */
return (bsd_flags);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 1:09 PM (1 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31912227
Default Alt Text
D29773.diff (787 B)
Attached To
Mode
D29773: linux: implement O_PATH
Attached
Detach File
Event Timeline
Log In to Comment