changeset 33181:1c3619acc044

open, fopen: Update regarding AIX.
author Bruno Haible <bruno@clisp.org>
date Fri, 30 Jul 2010 20:38:44 +0200
parents faeb03df2f39
children 69d45559778d
files ChangeLog doc/posix-functions/fopen.texi doc/posix-functions/open.texi m4/fopen.m4 m4/open.m4
diffstat 5 files changed, 21 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jul 30 20:32:12 2010 +0200
+++ b/ChangeLog	Fri Jul 30 20:38:44 2010 +0200
@@ -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.
--- a/doc/posix-functions/fopen.texi	Fri Jul 30 20:32:12 2010 +0200
+++ b/doc/posix-functions/fopen.texi	Fri Jul 30 20:38:44 2010 +0200
@@ -12,7 +12,7 @@
 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.
--- a/doc/posix-functions/open.texi	Fri Jul 30 20:32:12 2010 +0200
+++ b/doc/posix-functions/open.texi	Fri Jul 30 20:38:44 2010 +0200
@@ -12,7 +12,7 @@
 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.
--- a/m4/fopen.m4	Fri Jul 30 20:32:12 2010 +0200
+++ b/m4/fopen.m4	Fri Jul 30 20:38:44 2010 +0200
@@ -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 @@
             [
 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
             ])
--- a/m4/open.m4	Fri Jul 30 20:32:12 2010 +0200
+++ b/m4/open.m4	Fri Jul 30 20:38:44 2010 +0200
@@ -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 @@
             [
 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
             ])