* doc/posix-functions/open.texi (open): * doc/posix-functions/openat.texi (openat): Document that these functions do not set errno to ELOOP when a symlink is opened with O_NOFOLLOW. --- ChangeLog | 8 ++++++++ doc/posix-functions/open.texi | 10 ++++++++++ doc/posix-functions/openat.texi | 10 ++++++++++ 3 files changed, 28 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 1f80f39..12dc392 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-11-02 Paul Eggert <egg...@cs.ucla.edu> + + open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno + * doc/posix-functions/open.texi (open): + * doc/posix-functions/openat.texi (openat): + Document that these functions do not set errno to ELOOP when + a symlink is opened with O_NOFOLLOW. + 2014-10-31 Paul Eggert <egg...@cs.ucla.edu> obstack: add NEWS entry for recent incompatible changes diff --git a/doc/posix-functions/open.texi b/doc/posix-functions/open.texi index dd33e82..dce5466 100644 --- a/doc/posix-functions/open.texi +++ b/doc/posix-functions/open.texi @@ -35,6 +35,16 @@ read-only descriptor for directories. Portability problems not fixed by Gnulib: @itemize @item +@code{open ("symlink", O_NOFOLLOW ...)} fails with @code{errno} set to +@code{EMLINK} instead of the POSIX-required @code{ELOOP} on some +platforms: +FreeBSD 10.1. +@item +@code{open ("symlink", O_NOFOLLOW ...)} fails with @code{errno} set to +@code{EFTYPE} instead of the POSIX-required @code{ELOOP} on some +platforms: +NetBSD 6.1. +@item On Windows, this function returns a file handle in @code{O_TEXT} mode by default; this means that it translates @code{'\n'} to CR/LF by default. Use the @code{O_BINARY} flag if you need reliable binary I/O. diff --git a/doc/posix-functions/openat.texi b/doc/posix-functions/openat.texi index 0042767..fa3eb65 100644 --- a/doc/posix-functions/openat.texi +++ b/doc/posix-functions/openat.texi @@ -25,4 +25,14 @@ Solaris 9. Portability problems not fixed by Gnulib: @itemize +@item +@code{openat (fd, "symlink", O_NOFOLLOW ...)} fails with @code{errno} +set to @code{EMLINK} instead of the POSIX-required @code{ELOOP} on +some platforms: +FreeBSD 10.1. +@item +@code{openat (fd, "symlink", O_NOFOLLOW ...)} fails with @code{errno} +set to @code{EFTYPE} instead of the POSIX-required @code{ELOOP} on +some platforms: +NetBSD 6.1. @end itemize -- 1.9.3