+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
+
+ * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
+ with AIX xlc.
+ * lib/fcntl.in.h (open): Likewise.
+ Reported by Rainer Tammer <tammer@tammer.net>.
+
2008-09-28 Bruno Haible <bruno@clisp.org>
* modules/posix_spawnp-tests: New file.
@item
On Windows platforms (excluding Cygwin), this function does not set @code{errno}
upon failure.
+@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:
+HP-UX 11.00, Solaris 9, Irix 5.3.
@end itemize
#endif
#if (@GNULIB_OPEN@ && @REPLACE_OPEN@) || defined FCHDIR_REPLACEMENT
+# undef open
# define open rpl_open
extern int open (const char *filename, int flags, ...);
#endif
#if @GNULIB_FOPEN@
# if @REPLACE_FOPEN@
+# undef fopen
# define fopen rpl_fopen
extern FILE * fopen (const char *filename, const char *mode);
# endif
#if @GNULIB_FREOPEN@
# if @REPLACE_FREOPEN@
+# undef freopen
# define freopen rpl_freopen
extern FILE * freopen (const char *filename, const char *mode, FILE *stream);
# endif