X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fdup2.texi;h=febbd53cc90eedc24e3f2b2708395ce5110b3689;hb=7c59efd8bc7abb8c79ae969a65ece95e68c9be4c;hp=a9b4c91fe8ff5c1df550ec5369bec6b6e519017c;hpb=2449f6ebc91514e321ffe7420222727909f515b2;p=gnulib.git diff --git a/doc/posix-functions/dup2.texi b/doc/posix-functions/dup2.texi index a9b4c91fe..febbd53cc 100644 --- a/doc/posix-functions/dup2.texi +++ b/doc/posix-functions/dup2.texi @@ -17,7 +17,7 @@ This function can hang when duplicating an fd to itself on some platforms: mingw. @item -This function returns 0 for @code(dup2 (1, 1)} on some platforms: +This function returns 0 for @code{dup2 (1, 1)} on some platforms: Cygwin 1.5.x. @item @@ -25,6 +25,12 @@ 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