bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

doc: update for more recent versions of OpenBSD


From: Bruno Haible
Subject: doc: update for more recent versions of OpenBSD
Date: Sun, 23 Aug 2020 00:49:32 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

The Gnulib documentation regarding OpenBSD is out-of-date as well.
I'm doing this update:


2020-08-22  Bruno Haible  <bruno@clisp.org>

        doc: Update for OpenBSD 6.0, 6.7.
        * doc/*/*.texi: Update.
        * m4/printf.m4: Update comments and cross-compilation guesses.
        * m4/ceill.m4: Update comments.
        * m4/getcwd-abort-bug.m4: Likewise.
        * m4/ilogb.m4: Likewise.
        * m4/ilogbf.m4: Likewise.
        * m4/langinfo_h.m4: Likewise.
        * m4/modf.m4: Likewise.
        * m4/modff.m4: Likewise.

The entire patch is at
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=d17a87bd3c4a5911a43c1775bcf8b015da270ae9


The interesting part is here:

diff --git a/doc/posix-headers/errno.texi b/doc/posix-headers/errno.texi
index 3a9b369..0649ce3 100644
--- a/doc/posix-headers/errno.texi
+++ b/doc/posix-headers/errno.texi
@@ -8,13 +8,17 @@ Gnulib module: errno
 Portability problems fixed by Gnulib:
 @itemize
 @item
-The macros @code{EOVERFLOW}, @code{ENOLINK} are not defined
+The macro @code{EOVERFLOW} is not defined
 on some platforms:
 OpenBSD 4.0, mingw, MSVC 9.
 @item
+The macro @code{ENOLINK} is not defined
+on some platforms:
+OpenBSD 6.7, mingw, MSVC 9.
+@item
 The macro @code{EMULTIHOP} is not defined
 on some platforms:
-OpenBSD 4.0, mingw, MSVC 14.
+OpenBSD 6.7, mingw, MSVC 14.
 @item
 The macro @code{ECANCELED} is not defined on some platforms:
 OpenBSD 4.0, Cygwin, mingw, MSVC 9.
@@ -45,7 +49,7 @@ mingw, MSVC 9.
 The macros @code{EOWNERDEAD}, @code{ENOTRECOVERABLE} are not defined on
 some platforms:
 glibc/Linux 2.3.6, glibc/Hurd 2.15, glibc/kFreeBSD 2.15,
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 9.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, 
HP-UX 11, IRIX 6.5, Cygwin, mingw without pthreads-win32, MSVC 9.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 9.0, OpenBSD 6.0, Minix 3.1.8, AIX 5.1, 
HP-UX 11, IRIX 6.5, Cygwin, mingw without pthreads-win32, MSVC 9.
 @item
 The macro @code{EILSEQ} is not defined on some platforms:
 LynxOS 178 2.2.2.
diff --git a/doc/posix-functions/ceill.texi b/doc/posix-functions/ceill.texi
index 1ca91e7..2dcec7f 100644
--- a/doc/posix-functions/ceill.texi
+++ b/doc/posix-functions/ceill.texi
@@ -14,6 +14,9 @@ FreeBSD 5.2.1, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 
11, IRIX 6.5, Solaris
 @item
 This function is only defined as a macro with arguments on some platforms:
 MSVC 14.
+@item
+This function returns a wrong result for small arguments on some platforms:
+OpenBSD 5.6.
 @end itemize
 
 Portability problems fixed by Gnulib module @code{ceill-ieee}:
diff --git a/doc/posix-functions/chown.texi b/doc/posix-functions/chown.texi
index 7919d35..91cf6a8 100644
--- a/doc/posix-functions/chown.texi
+++ b/doc/posix-functions/chown.texi
@@ -15,7 +15,7 @@ FreeBSD 7.2, AIX 7.1, Solaris 9.
 @item
 Some platforms fail to update the change time when at least one
 argument was not @minus{}1, but no ownership changes resulted:
-OpenBSD 4.0.
+OpenBSD 6.7.
 @item
 When passed an argument of @minus{}1, some implementations really set the owner
 user/group id of the file to this value, rather than leaving that id of the
diff --git a/doc/posix-functions/ilogb.texi b/doc/posix-functions/ilogb.texi
index 9973469..1b26676 100644
--- a/doc/posix-functions/ilogb.texi
+++ b/doc/posix-functions/ilogb.texi
@@ -13,13 +13,13 @@ This function is missing on some platforms:
 Minix 3.1.8, MSVC 9.
 @item
 This function returns a wrong result for a zero argument on some platforms:
-OpenBSD 4.9, AIX 5.1.
+OpenBSD 6.7, AIX 5.1.
 @item
 This function returns a wrong result for an infinite argument on some 
platforms:
-NetBSD 7.1, OpenBSD 4.9.
+NetBSD 7.1, OpenBSD 6.7.
 @item
 This function returns a wrong result for a NaN argument on some platforms:
-NetBSD 7.1, OpenBSD 4.9.
+NetBSD 7.1, OpenBSD 6.7.
 @end itemize
 
 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/ilogbf.texi b/doc/posix-functions/ilogbf.texi
index 0e75b69..4832891 100644
--- a/doc/posix-functions/ilogbf.texi
+++ b/doc/posix-functions/ilogbf.texi
@@ -13,10 +13,10 @@ This function is missing on some platforms:
 Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 9, MSVC 9.
 @item
 This function returns a wrong result for a zero argument on some platforms:
-OpenBSD 4.9.
+OpenBSD 6.7.
 @item
 This function returns a wrong result for an infinite argument on some 
platforms:
-NetBSD 7.1, OpenBSD 4.9.
+NetBSD 7.1, OpenBSD 6.7.
 @end itemize
 
 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/modf.texi b/doc/posix-functions/modf.texi
index 06797dc..753dc08 100644
--- a/doc/posix-functions/modf.texi
+++ b/doc/posix-functions/modf.texi
@@ -17,7 +17,7 @@ This function has problems with a NaN argument on some 
platforms:
 NetBSD 5.1, Cygwin.
 @item
 This function has problems with infinite arguments on some platforms:
-FreeBSD 6.4, OpenBSD 4.9, IRIX 6.5.
+FreeBSD 6.4, OpenBSD 6.7, IRIX 6.5.
 @end itemize
 
 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/modff.texi b/doc/posix-functions/modff.texi
index 305c7ac..952eb0b 100644
--- a/doc/posix-functions/modff.texi
+++ b/doc/posix-functions/modff.texi
@@ -20,7 +20,7 @@ Portability problems fixed by Gnulib module @code{modff-ieee}:
 @itemize
 @item
 This function has problems with a NaN argument on some platforms:
-NetBSD 5.1, OpenBSD 4.9, Solaris 9, Cygwin.
+NetBSD 5.1, OpenBSD 6.7, Solaris 9, Cygwin.
 @item
 This function has problems with infinite arguments on some platforms:
 IRIX 6.5, mingw.
diff --git a/m4/ceill.m4 b/m4/ceill.m4
index 1add841..806c4e6 100644
--- a/m4/ceill.m4
+++ b/m4/ceill.m4
@@ -1,4 +1,4 @@
-# ceill.m4 serial 20
+# ceill.m4 serial 21
 dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -73,7 +73,7 @@ int main (int argc, char *argv[])
   else
     HAVE_DECL_CEILL=0
   fi
-  dnl On OpenBSD5.6 the system's native ceill() is buggy:
+  dnl On OpenBSD 5.6 the system's native ceill() is buggy:
   dnl it returns '0' for small values. Test for this anomaly.
   if test $REPLACE_CEILL = 0 ; then
     AC_CACHE_CHECK([whether ceill() breaks with small values],
diff --git a/m4/getcwd-abort-bug.m4 b/m4/getcwd-abort-bug.m4
index d50648d..9817912 100644
--- a/m4/getcwd-abort-bug.m4
+++ b/m4/getcwd-abort-bug.m4
@@ -1,4 +1,4 @@
-# serial 13
+# serial 14
 # Determine whether getcwd aborts when the length of the working directory
 # name is unusually large.  Any length between 4k and 16k trigger the bug
 # when using glibc-2.4.90-9 or older.
@@ -128,7 +128,7 @@ main ()
           ]])],
        [gl_cv_func_getcwd_abort_bug=no],
        [dnl An abort will provoke an exit code of something like 134 (128 + 6).
-        dnl An exit code of 4 can also occur (in OpenBSD 4.9, NetBSD 5.1 for
+        dnl An exit code of 4 can also occur (in OpenBSD 6.7, NetBSD 5.1 for
         dnl example): getcwd (NULL, 0) fails rather than returning a string
         dnl longer than PATH_MAX.  This may be POSIX compliant (in some
         dnl interpretations of POSIX).  But gnulib's getcwd module wants to
diff --git a/m4/ilogb.m4 b/m4/ilogb.m4
index 3c18048..86c0f1b 100644
--- a/m4/ilogb.m4
+++ b/m4/ilogb.m4
@@ -1,4 +1,4 @@
-# ilogb.m4 serial 5
+# ilogb.m4 serial 6
 dnl Copyright (C) 2010-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -43,9 +43,9 @@ AC_DEFUN([gl_FUNC_ILOGB],
 ])
 
 dnl Test whether ilogb() works.
-dnl On OpenBSD 4.9, AIX 5.1, ilogb(0.0) is wrong.
-dnl On NetBSD 7.1, OpenBSD 4.9, ilogb(Infinity) is wrong.
-dnl On NetBSD 7.1, OpenBSD 4.9, ilogb(NaN) is wrong.
+dnl On OpenBSD 6.7, AIX 5.1, ilogb(0.0) is wrong.
+dnl On NetBSD 7.1, OpenBSD 6.7, ilogb(Infinity) is wrong.
+dnl On NetBSD 7.1, OpenBSD 6.7, ilogb(NaN) is wrong.
 AC_DEFUN([gl_FUNC_ILOGB_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
@@ -87,19 +87,19 @@ int main (int argc, char *argv[])
 {
   int (* volatile my_ilogb) (double) = argc ? ilogb : dummy;
   int result = 0;
-  /* This test fails on OpenBSD 4.9, AIX 5.1.  */
+  /* This test fails on OpenBSD 6.7, AIX 5.1.  */
   {
     x = 0.0;
     if (my_ilogb (x) != FP_ILOGB0)
       result |= 1;
   }
-  /* This test fails on NetBSD 7.1, OpenBSD 4.9.  */
+  /* This test fails on NetBSD 7.1, OpenBSD 6.7.  */
   {
     x = 1.0 / zero;
     if (my_ilogb (x) != INT_MAX)
       result |= 2;
   }
-  /* This test fails on NetBSD 7.1, OpenBSD 4.9.  */
+  /* This test fails on NetBSD 7.1, OpenBSD 6.7.  */
   {
     x = zero / zero;
     if (my_ilogb (x) != FP_ILOGBNAN)
diff --git a/m4/ilogbf.m4 b/m4/ilogbf.m4
index b16124e..30c4e02 100644
--- a/m4/ilogbf.m4
+++ b/m4/ilogbf.m4
@@ -1,4 +1,4 @@
-# ilogbf.m4 serial 5
+# ilogbf.m4 serial 6
 dnl Copyright (C) 2010-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -46,8 +46,8 @@ AC_DEFUN([gl_FUNC_ILOGBF],
 ])
 
 dnl Test whether ilogbf() works.
-dnl On OpenBSD 4.9, ilogbf(0.0) is wrong.
-dnl On NetBSD 7.1, OpenBSD 4.9, ilogbf(Infinity) is wrong.
+dnl On OpenBSD 6.7, ilogbf(0.0) is wrong.
+dnl On NetBSD 7.1, OpenBSD 6.7, ilogbf(Infinity) is wrong.
 AC_DEFUN([gl_FUNC_ILOGBF_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
@@ -89,13 +89,13 @@ int main (int argc, char *argv[])
 {
   int (* volatile my_ilogbf) (float) = argc ? ilogbf : dummy;
   int result = 0;
-  /* This test fails on OpenBSD 4.9.  */
+  /* This test fails on OpenBSD 6.7.  */
   {
     x = 0.0f;
     if (my_ilogbf (x) != FP_ILOGB0)
       result |= 1;
   }
-  /* This test fails on NetBSD 7.1, OpenBSD 4.9.  */
+  /* This test fails on NetBSD 7.1, OpenBSD 6.7.  */
   {
     x = 1.0f / zero;
     if (my_ilogbf (x) != INT_MAX)
diff --git a/m4/langinfo_h.m4 b/m4/langinfo_h.m4
index ef92f84..9d5e16e 100644
--- a/m4/langinfo_h.m4
+++ b/m4/langinfo_h.m4
@@ -1,4 +1,4 @@
-# langinfo_h.m4 serial 8
+# langinfo_h.m4 serial 9
 dnl Copyright (C) 2009-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -23,8 +23,10 @@ AC_DEFUN([gl_LANGINFO_H],
   AC_CHECK_HEADERS_ONCE([langinfo.h])
   if test $ac_cv_header_langinfo_h = yes; then
     HAVE_LANGINFO_H=1
-    dnl Determine what <langinfo.h> defines. CODESET and ERA etc. are missing
-    dnl on OpenBSD 3.8. T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3.
+    dnl Determine what <langinfo.h> defines.
+    dnl CODESET is missing on OpenBSD 3.8.
+    dnl ERA etc. are missing on OpenBSD 6.7.
+    dnl T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3.
     dnl ALTMON_* are missing on glibc 2.26 and many other systems.
     AC_CACHE_CHECK([whether langinfo.h defines CODESET],
       [gl_cv_header_langinfo_codeset],
diff --git a/m4/modf.m4 b/m4/modf.m4
index 9c75f36..874f51b 100644
--- a/m4/modf.m4
+++ b/m4/modf.m4
@@ -1,4 +1,4 @@
-# modf.m4 serial 8
+# modf.m4 serial 9
 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ int main (int argc, char *argv[])
   if (numeric_equal (f, f))
     result |= 1;
   /* Test modf(-Inf,...).
-     This test fails on FreeBSD 6.4, OpenBSD 4.9, IRIX 6.5, OSF/1 5.1.  */
+     This test fails on FreeBSD 6.4, OpenBSD 6.7, IRIX 6.5, OSF/1 5.1.  */
   f = my_modf (minus_one / zero, &i);
   if (!(f == 0.0) || (signbitd (minus_zerod) && !signbitd (f)))
     result |= 2;
diff --git a/m4/modff.m4 b/m4/modff.m4
index 8c6088b..dbc1915 100644
--- a/m4/modff.m4
+++ b/m4/modff.m4
@@ -1,4 +1,4 @@
-# modff.m4 serial 10
+# modff.m4 serial 11
 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,7 +54,7 @@ int main (int argc, char *argv[])
   float i;
   float f;
   /* Test modff(NaN,...).
-     This test fails on NetBSD 5.1, OpenBSD 4.9, Solaris 9, Cygwin.  */
+     This test fails on NetBSD 5.1, OpenBSD 6.7, Solaris 9, Cygwin.  */
   f = my_modff (zero / zero, &i);
   if (numeric_equal (f, f))
     result |= 1;
diff --git a/m4/printf.m4 b/m4/printf.m4
index 8a4aaf6..c6a7ef6 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -1,4 +1,4 @@
-# printf.m4 serial 68
+# printf.m4 serial 69
 dnl Copyright (C) 2003, 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -257,6 +257,9 @@ changequote(,)dnl
            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | 
netbsdcoff[1-2]*)
                                  gl_cv_func_printf_infinite="guessing no";;
            netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
+                                 # Guess yes on OpenBSD >= 6.0.
+           openbsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
+           openbsd*)             gl_cv_func_printf_infinite="guessing yes";;
                                  # Guess yes on BeOS.
            beos*)                gl_cv_func_printf_infinite="guessing yes";;
                                  # Guess no on Android.
@@ -469,6 +472,9 @@ changequote(,)dnl
                                          # Guess yes on HP-UX >= 11.
                    hpux[7-9]* | hpux10*) 
gl_cv_func_printf_infinite_long_double="guessing no";;
                    hpux*)                
gl_cv_func_printf_infinite_long_double="guessing yes";;
+                                         # Guess yes on OpenBSD >= 6.0.
+                   openbsd[1-5].*)       
gl_cv_func_printf_infinite_long_double="guessing no";;
+                   openbsd*)             
gl_cv_func_printf_infinite_long_double="guessing yes";;
                                          # Guess no on Android.
                    linux*-android*)      
gl_cv_func_printf_infinite_long_double="guessing no";;
 changequote([,])dnl
@@ -641,6 +647,9 @@ changequote(,)dnl
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
            darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
+                                 # Guess yes on OpenBSD >= 6.0.
+           openbsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
+           openbsd*)             gl_cv_func_printf_directive_f="guessing yes";;
                                  # Guess yes on Solaris >= 2.10.
            solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
            solaris*)             gl_cv_func_printf_directive_f="guessing no";;
@@ -804,7 +813,9 @@ int main ()
         [
 changequote(,)dnl
          case "$host_os" in
-           openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
+                            # Guess yes on OpenBSD >= 6.0.
+           openbsd[1-5].*)  gl_cv_func_printf_directive_ls="guessing no";;
+           openbsd*)        gl_cv_func_printf_directive_ls="guessing yes";;
            irix*)           gl_cv_func_printf_directive_ls="guessing no";;
            solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
            cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
@@ -1681,6 +1692,7 @@ dnl   FreeBSD 5.4, 6.1               .  .  .  .  #  .  .  
.  .  .  .  #  .  #  .
 dnl   Mac OS X 10.13.5               .  .  .  #  #  .  #  .  .  .  .  .  .  .  
.  .  .  #  .  .
 dnl   Mac OS X 10.5.8                .  .  .  #  #  .  .  .  .  .  .  #  .  .  
.  .  .  .  .  .
 dnl   Mac OS X 10.3.9                .  .  .  .  #  .  .  .  .  .  .  #  .  #  
.  .  .  .  .  .
+dnl   OpenBSD 6.0, 6.7               .  .  .  .  #  .  .  .  .  .  .  .  .  #  
.  .  .  .  .  .
 dnl   OpenBSD 3.9, 4.0               .  .  #  #  #  #  .  #  .  #  .  #  .  #  
.  .  .  .  .  .
 dnl   Cygwin 1.7.0 (2009)            .  .  .  #  .  .  .  ?  .  .  .  .  .  ?  
.  .  .  .  .  .
 dnl   Cygwin 1.5.25 (2008)           .  .  .  #  #  .  .  #  .  .  .  .  .  #  
.  .  .  .  .  .




reply via email to

[Prev in Thread] Current Thread [Next in Thread]