+2023-04-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ doc: mention when O_* defaults to 0
+ * doc/posix-headers/fcntl.texi: Document in more detail which O_*
+ macros default to 0 in Gnulib.
+
2023-04-18 Bruno Haible <bruno@clisp.org>
doc: Mention a Cygwin 3.4.6 bug.
@item
@samp{O_DIRECTORY}, @samp{O_DSYNC}, @samp{O_NOCTTY},
@samp{O_NOFOLLOW}, @samp{O_RSYNC}, @samp{O_SYNC},
-and @samp{O_TTY_INIT} are not defined on some platforms. Gnulib defines
-these macros to 0, which is generally safe.
+and @samp{O_TTY_INIT} are not defined on some platforms.
+When not otherwise defined, Gnulib defines these macros to 0,
+which is generally safe.
@item
@samp{O_NONBLOCK} is not defined on some platforms. If the
@samp{O_BINARY}, @samp{O_TEXT} (not specified by POSIX, but essential for
portability to native Windows platforms) are defined on some platforms but
not on others.
+Gnulib defines these macros to 0 on GNU and other platforms that do not
+distinguish between text and binary I/O@.
@item
@samp{O_CLOEXEC}, @samp{O_NOFOLLOW}, and @samp{O_TTY_INIT}
@samp{O_NOATIME}, @samp{O_NOLINK}, @samp{O_NOLINKS}, and
@samp{O_NOTRANS} (not specified by POSIX) are defined
on some platforms but not on others.
+When not otherwise defined, Gnulib defines these macros to 0,
+which is generally safe.
@item
@samp{FD_CLOEXEC}, @samp{F_DUPFD}, and @samp{F_GETFD} are not defined