open, fopen: Update regarding AIX.
authorBruno Haible <bruno@clisp.org>
Fri, 30 Jul 2010 18:38:44 +0000 (20:38 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 30 Jul 2010 18:38:44 +0000 (20:38 +0200)
ChangeLog
doc/posix-functions/fopen.texi
doc/posix-functions/open.texi
m4/fopen.m4
m4/open.m4

index 16a60bd49463c7bab9c5550277f287ae7f299773..7acebd9e9f12ea8cc952a43c924a9ca7515a9382 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-07-30  Bruno Haible  <bruno@clisp.org>
+
+       open, fopen: Update regarding AIX.
+       * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
+       * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
+       * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
+       * doc/posix-functions/fopen.texi: Likewise.
+       Reported by Rainer Tammer.
+
 2010-07-30  Bruno Haible  <bruno@clisp.org>
 
        chown: Update doc regarding AIX.
index 4c9ec22997e090435b0019c9539edae83656d469..39df6aa2ecd92c4db12c52458a1c6a44a54f0762 100644 (file)
@@ -12,7 +12,7 @@ Portability problems fixed by Gnulib:
 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.
+HP-UX 11.00, AIX 7.1, Solaris 9, Irix 5.3.
 @item
 On Windows platforms (excluding Cygwin), this function does usually not
 recognize the @file{/dev/null} filename.
index 933a2461531522668d535356bc31f7b65db93edc..6ba483d79a3e56c368e0886028822a10afe944c6 100644 (file)
@@ -12,7 +12,7 @@ Portability problems fixed by the Gnulib module open:
 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:
-FreeBSD 7.2, HP-UX 11.00, Solaris 9, Irix 5.3.
+FreeBSD 7.2, AIX 7.1, HP-UX 11.00, Solaris 9, Irix 5.3.
 @item
 On Windows platforms (excluding Cygwin), this function does usually not
 recognize the @file{/dev/null} filename.
index 6d2b094828ae382d2c132942401e235e4ebbc9a6..757d4a15581bf39a3c6f0167ed4187ad4a85c1a9 100644 (file)
@@ -1,4 +1,4 @@
-# fopen.m4 serial 5
+# fopen.m4 serial 6
 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,9 +31,10 @@ int main ()
             [
 changequote(,)dnl
              case "$host_os" in
-               solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;;
-               hpux*)           gl_cv_func_fopen_slash="guessing no" ;;
-               *)               gl_cv_func_fopen_slash="guessing yes" ;;
+               aix* | hpux* | solaris2.[0-9]*)
+                 gl_cv_func_fopen_slash="guessing no" ;;
+               *)
+                 gl_cv_func_fopen_slash="guessing yes" ;;
              esac
 changequote([,])dnl
             ])
index d705b3a1eff807faf1fb50bc373fa1c4eceef7e8..8731a25551c958234bee1479cef84a7ed6473208 100644 (file)
@@ -1,4 +1,4 @@
-# open.m4 serial 8
+# open.m4 serial 9
 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -37,10 +37,10 @@ int main ()
             [
 changequote(,)dnl
              case "$host_os" in
-               freebsd*)        gl_cv_func_open_slash="guessing no" ;;
-               solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
-               hpux*)           gl_cv_func_open_slash="guessing no" ;;
-               *)               gl_cv_func_open_slash="guessing yes" ;;
+               freebsd* | aix* | hpux* | solaris2.[0-9]*)
+                 gl_cv_func_open_slash="guessing no" ;;
+               *)
+                 gl_cv_func_open_slash="guessing yes" ;;
              esac
 changequote([,])dnl
             ])