Page MenuHomeFreeBSD

D56365.diff
No OneTemporary

D56365.diff

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

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)

Event Timeline