strchrnul: work around cygwin bug
[pspp] / doc / posix-functions / dup2.texi
index fd2cb07538410a5f0a7902e967cf53324632ea26..fc1e3595a9e79b9de55b41f088d055c701a405f4 100644 (file)
@@ -2,7 +2,7 @@
 @section @code{dup2}
 @findex dup2
 
-POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/dup2.html}
+POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/dup2.html}
 
 Gnulib module: dup2
 
@@ -16,6 +16,11 @@ mingw.
 This function can hang when duplicating an fd to itself on some platforms:
 mingw.
 
+@item
+This function resets the @code{FD_CLOEXEC} flag when duplicating an fd
+to itself on some platforms:
+Haiku.
+
 @item
 This function returns 0 for @code{dup2 (1, 1)} on some platforms:
 Cygwin 1.5.x.
@@ -24,6 +29,12 @@ Cygwin 1.5.x.
 This function may return @code{-EBADF} instead of @code{-1} on some platforms:
 Linux releases between July 2008 and May 2009 (versions 2.6.27 to 2.6.29).
 
+@item
+This function returns @code{EMFILE} instead of @code{EBADF} for
+extremely large targets, which interferes with using
+@code{dup2(fd,fd)==fd)} as the minimal @code{EBADF} filter:
+FreeBSD 6.1, Cygwin 1.5.
+
 @item
 This function is missing on some older platforms.
 @end itemize