Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168495495
D56365.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
D56365.diff
View Options
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -142,6 +142,13 @@
#define O_EMPTY_PATH 0x02000000
#define O_NAMEDATTR 0x04000000 /* NFSv4 named attributes */
#define O_XATTR O_NAMEDATTR /* Solaris compatibility */
+
+/*
+ * Emulate MacOSX compatibility flag without consuming a flags bit.
+ * It is not fully correct since reads over regular files opened with
+ * this definition fail.
+ */
+#define O_SYMLINK (O_PATH | O_NOFOLLOW)
#endif
#if __POSIX_VISIBLE >= 202405
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 29, 4:42 PM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37479638
Default Alt Text
D56365.diff (524 B)
Attached To
Mode
D56365: Add O_SYMLINK emulation and freadlink(3)
Attached
Detach File
Event Timeline
Log In to Comment