From c4596b15eb95fa7f685340dfd3b03d20e44b9af6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 31 Aug 2011 10:48:02 +0200 Subject: [PATCH] freopen: Documentation. * doc/posix-functions/freopen.texi: Document the bug with the NULL file name. Reported by Claudio Bley . (cherry picked from commit a5a35f0cfc24fc0b206be30aba2bf7b98d522082) --- ChangeLog | 7 +++++++ doc/posix-functions/freopen.texi | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index d06bcede5..682105717 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-08-31 Bruno Haible + + freopen: Documentation. + * doc/posix-functions/freopen.texi: Document the bug with the NULL file + name. + Reported by Claudio Bley . + 2011-08-31 Claudio Bley (tiny change) freopen: Don't crash if the filename argument is NULL. diff --git a/doc/posix-functions/freopen.texi b/doc/posix-functions/freopen.texi index e1a077a19..49b0afe62 100644 --- a/doc/posix-functions/freopen.texi +++ b/doc/posix-functions/freopen.texi @@ -22,6 +22,10 @@ Portability problems not fixed by Gnulib: On Windows platforms (excluding Cygwin), this function does not set @code{errno} upon failure. @item +This function does not support a @code{NULL} file name argument on some +platforms: +OpenBSD 4.9, AIX 7.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw. +@item This function does not fail when the file name argument ends in a slash and (without the slash) names a nonexistent file or a file that is not a directory, on some platforms: -- 2.11.0