Commit 08a713e0 authored by Paul Eggert's avatar Paul Eggert

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.
parent 04a4a930
2014-11-02 Paul Eggert <eggert@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 <eggert@cs.ucla.edu>
obstack: add NEWS entry for recent incompatible changes
......@@ -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.
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment