The branch stable/14 has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=0ee191f2f035b8b491a51ad30e41c79581655cad
commit 0ee191f2f035b8b491a51ad30e41c79581655cad Author: Brooks Davis <bro...@freebsd.org> AuthorDate: 2025-06-12 13:33:35 +0000 Commit: Brooks Davis <bro...@freebsd.org> CommitDate: 2025-06-23 08:57:39 +0000 fcntl.h: warn that bits for O_* flags are scarce Running out of O_* flag bits will end out ability to make additions that are source compatible with other operating systems. Add a warning to coordinate all additions with srcmgr@. Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D50703 (cherry picked from commit 6d0a335aaa81d3ddce95de8d862a23c97bb038a6) --- sys/sys/fcntl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 9cb6fbe2f2a3..c4c4207af4ff 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -144,6 +144,16 @@ typedef __pid_t pid_t; #define O_EMPTY_PATH 0x02000000 #endif +/* + * !!! DANGER !!! + * + * There are very few bits left for O_* flags. Every bit we consume for + * local features is one bit we can't use for future source compatibility + * with other operating systems. + * + * All additions should be coordinated with srcmgr@. + */ + /* * XXX missing O_RSYNC. */