From: Bruno Haible Date: Wed, 10 Sep 2025 21:22:53 +0000 (+0200) Subject: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1fcec6d22da613076a0f6993ab62967e5adbce4;p=thirdparty%2Fgnulib.git Remove support for IRIX. * all-modules: Update comments. * build-aux/install-reloc: Likewise. * build-aux/reloc-ldflags: Likewise. * gnulib-tool: Likewise. * gnulib-tool.py: Likewise. * gnulib-tool.sh: Likewise. * lib/aligned-malloc.h: Likewise. * lib/boot-time.c: Likewise. * lib/c32is-impl.h: Likewise. * lib/c32srtombs-state.c: Likewise. * lib/c32to-impl.h: Likewise. * lib/c32width.c: Likewise. * lib/errno.in.h: Likewise. * lib/euidaccess.c: Likewise. * lib/fbufmode.c: Likewise. * lib/fenv-except-state-get.c: Likewise. * lib/fenv-except-state-set.c: Likewise. * lib/fenv-except-tracking-clear.c: Likewise. * lib/fenv-except-tracking-set.c: Likewise. * lib/fenv-except-tracking-test.c: Likewise. * lib/fenv-except-trapping.c: Likewise. * lib/fenv-round.c: Likewise. * lib/fflush.c: Likewise. * lib/fileblocks.c: Likewise. * lib/forkpty.c: Likewise. * lib/fpending.c: Likewise. * lib/fpurge.c: Likewise. * lib/freadable.c: Likewise. * lib/freadahead.c: Likewise. * lib/freading.c: Likewise. * lib/freadptr.c: Likewise. * lib/freadseek.c: Likewise. * lib/fseeko.c: Likewise. * lib/fseterr.c: Likewise. * lib/fsusage.c: Likewise. * lib/fwritable.c: Likewise. * lib/fwriting.c: Likewise. * lib/getdomainname.c: Likewise. * lib/idpriv-drop.c: Likewise. * lib/idpriv-droptemp.c: Likewise. * lib/limits.in.h: Likewise. * lib/mbrtoc16.c: Likewise. * lib/mbrtoc32.c: Likewise. * lib/mbsrtoc32s-state.c: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/mbtowc-lock.h: Likewise. * lib/minmax.h: Likewise. * lib/netdb.in.h: Likewise. * lib/pipe-filter-ii.c: Likewise. * lib/posix_openpt.c: Likewise. * lib/ptsname_r.c: Likewise. * lib/readutmp.c: Likewise. * lib/readutmp.h: Likewise. * lib/resource-ext.h: Likewise. * lib/safe-read.h: Likewise. * lib/safe-write.h: Likewise. * lib/save-cwd.c: Likewise. * lib/stdbool.in.h: Likewise. * lib/striconv.c: Likewise. * lib/striconveh.c: Likewise. * lib/termcap.h: Likewise. * lib/terminfo.h: Likewise. * lib/unistd.in.h: Likewise. * lib/vasnprintf.c: Likewise. * lib/wcrtomb.c: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/fenv-environment.m4: Likewise. * m4/fenv-exceptions-state.m4: Likewise. * m4/fenv-exceptions-tracking.m4: Likewise. * m4/fenv-rounding.m4: Likewise. * m4/fmod.m4: Likewise. * m4/getdomainname.m4: Likewise. * m4/getloadavg.m4: Likewise. * m4/getopt.m4: Likewise. * m4/hypot.m4: Likewise. * m4/hypotf.m4: Likewise. * m4/hypotl.m4: Likewise. * m4/iconv.m4: Likewise. * m4/intl-thread-locale.m4: Likewise. * m4/largefile.m4: Likewise. * m4/libdl.m4: Likewise. * m4/locale-ja.m4: Likewise. * m4/locale_h.m4: Likewise. * m4/log.m4: Likewise. * m4/log10.m4: Likewise. * m4/log10f.m4: Likewise. * m4/logf.m4: Likewise. * m4/modf.m4: Likewise. * m4/modff.m4: Likewise. * m4/modfl.m4: Likewise. * m4/pthread-rwlock.m4: Likewise. * m4/semaphore.m4: Likewise. * m4/socklen.m4: Likewise. * m4/stdint.m4: Likewise. * m4/strtod.m4: Likewise. * m4/strtof.m4: Likewise. * m4/strtold.m4: Likewise. * modules/sigsegv: Likewise. * posix-modules: Likewise. * pygnulib/GLImport.py: Likewise. * tests/init.sh: Likewise. * tests/test-echo.sh: Likewise. * tests/test-isatty.c: Likewise. * tests/test-math-h.c: Likewise. * tests/test-nonblocking-pipe.h: Likewise. * tests/test-nonblocking-socket.h: Likewise. * tests/test-strtod.h: Likewise. * tests/test-strtof.h: Likewise. * tests/test-strtold.h: Likewise. * tests/test-vasnprintf.c: Likewise. * tests/test-vasnwprintf.c: Likewise. --- diff --git a/ChangeLog b/ChangeLog index a4d76454c2..b85b67cf98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,118 @@ 2025-09-10 Bruno Haible + Remove support for IRIX. + * all-modules: Update comments. + * build-aux/install-reloc: Likewise. + * build-aux/reloc-ldflags: Likewise. + * gnulib-tool: Likewise. + * gnulib-tool.py: Likewise. + * gnulib-tool.sh: Likewise. + * lib/aligned-malloc.h: Likewise. + * lib/boot-time.c: Likewise. + * lib/c32is-impl.h: Likewise. + * lib/c32srtombs-state.c: Likewise. + * lib/c32to-impl.h: Likewise. + * lib/c32width.c: Likewise. + * lib/errno.in.h: Likewise. + * lib/euidaccess.c: Likewise. + * lib/fbufmode.c: Likewise. + * lib/fenv-except-state-get.c: Likewise. + * lib/fenv-except-state-set.c: Likewise. + * lib/fenv-except-tracking-clear.c: Likewise. + * lib/fenv-except-tracking-set.c: Likewise. + * lib/fenv-except-tracking-test.c: Likewise. + * lib/fenv-except-trapping.c: Likewise. + * lib/fenv-round.c: Likewise. + * lib/fflush.c: Likewise. + * lib/fileblocks.c: Likewise. + * lib/forkpty.c: Likewise. + * lib/fpending.c: Likewise. + * lib/fpurge.c: Likewise. + * lib/freadable.c: Likewise. + * lib/freadahead.c: Likewise. + * lib/freading.c: Likewise. + * lib/freadptr.c: Likewise. + * lib/freadseek.c: Likewise. + * lib/fseeko.c: Likewise. + * lib/fseterr.c: Likewise. + * lib/fsusage.c: Likewise. + * lib/fwritable.c: Likewise. + * lib/fwriting.c: Likewise. + * lib/getdomainname.c: Likewise. + * lib/idpriv-drop.c: Likewise. + * lib/idpriv-droptemp.c: Likewise. + * lib/limits.in.h: Likewise. + * lib/mbrtoc16.c: Likewise. + * lib/mbrtoc32.c: Likewise. + * lib/mbsrtoc32s-state.c: Likewise. + * lib/mbsrtowcs-state.c: Likewise. + * lib/mbtowc-lock.h: Likewise. + * lib/minmax.h: Likewise. + * lib/netdb.in.h: Likewise. + * lib/pipe-filter-ii.c: Likewise. + * lib/posix_openpt.c: Likewise. + * lib/ptsname_r.c: Likewise. + * lib/readutmp.c: Likewise. + * lib/readutmp.h: Likewise. + * lib/resource-ext.h: Likewise. + * lib/safe-read.h: Likewise. + * lib/safe-write.h: Likewise. + * lib/save-cwd.c: Likewise. + * lib/stdbool.in.h: Likewise. + * lib/striconv.c: Likewise. + * lib/striconveh.c: Likewise. + * lib/termcap.h: Likewise. + * lib/terminfo.h: Likewise. + * lib/unistd.in.h: Likewise. + * lib/vasnprintf.c: Likewise. + * lib/wcrtomb.c: Likewise. + * lib/wcsrtombs-state.c: Likewise. + * m4/fenv-environment.m4: Likewise. + * m4/fenv-exceptions-state.m4: Likewise. + * m4/fenv-exceptions-tracking.m4: Likewise. + * m4/fenv-rounding.m4: Likewise. + * m4/fmod.m4: Likewise. + * m4/getdomainname.m4: Likewise. + * m4/getloadavg.m4: Likewise. + * m4/getopt.m4: Likewise. + * m4/hypot.m4: Likewise. + * m4/hypotf.m4: Likewise. + * m4/hypotl.m4: Likewise. + * m4/iconv.m4: Likewise. + * m4/intl-thread-locale.m4: Likewise. + * m4/largefile.m4: Likewise. + * m4/libdl.m4: Likewise. + * m4/locale-ja.m4: Likewise. + * m4/locale_h.m4: Likewise. + * m4/log.m4: Likewise. + * m4/log10.m4: Likewise. + * m4/log10f.m4: Likewise. + * m4/logf.m4: Likewise. + * m4/modf.m4: Likewise. + * m4/modff.m4: Likewise. + * m4/modfl.m4: Likewise. + * m4/pthread-rwlock.m4: Likewise. + * m4/semaphore.m4: Likewise. + * m4/socklen.m4: Likewise. + * m4/stdint.m4: Likewise. + * m4/strtod.m4: Likewise. + * m4/strtof.m4: Likewise. + * m4/strtold.m4: Likewise. + * modules/sigsegv: Likewise. + * posix-modules: Likewise. + * pygnulib/GLImport.py: Likewise. + * tests/init.sh: Likewise. + * tests/test-echo.sh: Likewise. + * tests/test-isatty.c: Likewise. + * tests/test-math-h.c: Likewise. + * tests/test-nonblocking-pipe.h: Likewise. + * tests/test-nonblocking-socket.h: Likewise. + * tests/test-strtod.h: Likewise. + * tests/test-strtof.h: Likewise. + * tests/test-strtold.h: Likewise. + * tests/test-vasnprintf.c: Likewise. + * tests/test-vasnwprintf.c: Likewise. + doc: Remove support for IRIX. * doc/gnulib.texi (Header files): Update. * doc/posix-functions/sig2str.texi: Don't mention IRIX problem. diff --git a/all-modules b/all-modules index d53c9a1d03..5da9282afa 100755 --- a/all-modules +++ b/all-modules @@ -79,8 +79,6 @@ func_gnulib_dir () # according to IFS=: loses empty fields in many shells: # - /bin/sh on Solaris loses all empty fields (at the beginning, at # the end, and in the middle), - # - /bin/sh on IRIX and /bin/ksh on IRIX lose empty fields at the - # beginning and at the end, # - GNU bash, /bin/sh on AIX and HP-UX, and /bin/ksh on AIX, HP-UX, # Solaris lose empty fields at the end. # The 'case' statement is an optimization, to avoid evaluating the diff --git a/build-aux/install-reloc b/build-aux/install-reloc index ec404632f6..5b0466b986 100755 --- a/build-aux/install-reloc +++ b/build-aux/install-reloc @@ -304,7 +304,7 @@ func_create_wrapper () -o "$destprog.wrapper$exeext" rc=$? # Clean up object files left over in the current directory by the native C - # compilers on Solaris, HP-UX, IRIX. + # compilers on Solaris, HP-UX. rm -f relocwrapper.o \ progname.o \ progreloc.o \ diff --git a/build-aux/reloc-ldflags b/build-aux/reloc-ldflags index 902e034dbb..44ebdfd60f 100755 --- a/build-aux/reloc-ldflags +++ b/build-aux/reloc-ldflags @@ -134,8 +134,7 @@ case "$host_os" in ;; esac if test -n "$origin_token"; then - # We are not on AIX, HP-UX, or IRIX. Therefore the -rpath options are - # cumulative. + # We are not on AIX or HP-UX. Therefore the -rpath options are cumulative. rpath_options= saved_IFS="$IFS"; IFS=":" for dir in $library_path_value; do diff --git a/gnulib-tool b/gnulib-tool index 05675a0821..640e056848 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -92,8 +92,6 @@ func_gnulib_dir () # according to IFS=: loses empty fields in many shells: # - /bin/sh on Solaris loses all empty fields (at the beginning, at # the end, and in the middle), - # - /bin/sh on IRIX and /bin/ksh on IRIX lose empty fields at the - # beginning and at the end, # - GNU bash, /bin/sh on AIX and HP-UX, and /bin/ksh on AIX, HP-UX, # Solaris lose empty fields at the end. # The 'case' statement is an optimization, to avoid evaluating the diff --git a/gnulib-tool.py b/gnulib-tool.py index 412b690634..6db4f75ea9 100755 --- a/gnulib-tool.py +++ b/gnulib-tool.py @@ -81,8 +81,6 @@ func_gnulib_dir () # according to IFS=: loses empty fields in many shells: # - /bin/sh on Solaris loses all empty fields (at the beginning, at # the end, and in the middle), - # - /bin/sh on IRIX and /bin/ksh on IRIX lose empty fields at the - # beginning and at the end, # - GNU bash, /bin/sh on AIX and HP-UX, and /bin/ksh on AIX, HP-UX, # Solaris lose empty fields at the end. # The 'case' statement is an optimization, to avoid evaluating the diff --git a/gnulib-tool.sh b/gnulib-tool.sh index 7fd3f104f4..9ff9655854 100755 --- a/gnulib-tool.sh +++ b/gnulib-tool.sh @@ -474,8 +474,6 @@ func_gnulib_dir () # according to IFS=: loses empty fields in many shells: # - /bin/sh on Solaris loses all empty fields (at the beginning, at # the end, and in the middle), - # - /bin/sh on IRIX and /bin/ksh on IRIX lose empty fields at the - # beginning and at the end, # - GNU bash, /bin/sh on AIX and HP-UX, and /bin/ksh on AIX, HP-UX, # Solaris lose empty fields at the end. # The 'case' statement is an optimization, to avoid evaluating the @@ -910,7 +908,7 @@ func_hardlink () # or when it was built with DEFAULT_ECHO_TO_USG (bash < 2.0), # - in zsh, when sh-emulation is not set, # - in ksh (e.g. AIX /bin/sh and Solaris /usr/xpg4/bin/sh are ksh instances, -# and HP-UX /bin/sh and IRIX /bin/sh behave similarly), +# and HP-UX /bin/sh behaves similarly), # - in Solaris /bin/sh. # We try the following workarounds: # - for all: respawn using $CONFIG_SHELL if that is set and works. @@ -5719,8 +5717,7 @@ s,^\(.................................................[^ ]*\) *, # Emacs puts some gnulib-tool log lines in its source repository, and # git send-email rejects patch lines longer than 998 characters. # Also, config.status uses awk, and the HP-UX 11.00 awk fails if a - # line has length >= 3071; similarly, the IRIX 6.5 awk fails if a - # line has length >= 3072. + # line has length >= 3071. func_append_actionarg () { func_append actioncmd " \\$nl# $1" diff --git a/lib/aligned-malloc.h b/lib/aligned-malloc.h index 8d13022e7e..2aa99a255a 100644 --- a/lib/aligned-malloc.h +++ b/lib/aligned-malloc.h @@ -129,7 +129,7 @@ aligned_malloc (size_t size) return NULL; } -# elif HAVE_MEMALIGN /* HP-UX, IRIX, Solaris <= 10 */ +# elif HAVE_MEMALIGN /* HP-UX, Solaris <= 10 */ /* Use memalign. */ static inline diff --git a/lib/boot-time.c b/lib/boot-time.c index 9104bae16e..82c2a26f6b 100644 --- a/lib/boot-time.c +++ b/lib/boot-time.c @@ -88,7 +88,7 @@ get_boot_time_uncached (struct timespec *p_boot_time) /* Try to find the boot time in the /var/run/utmp file. */ -# if defined UTMP_NAME_FUNCTION /* glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, IRIX, Solaris, Cygwin, Android */ +# if defined UTMP_NAME_FUNCTION /* glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, Solaris, Cygwin, Android */ /* Ignore the return value for now. Solaris' utmpname returns 1 upon success -- which is contrary diff --git a/lib/c32is-impl.h b/lib/c32is-impl.h index 8366035d28..2a8c4aeb46 100644 --- a/lib/c32is-impl.h +++ b/lib/c32is-impl.h @@ -43,7 +43,7 @@ FUNC (wint_t wc) /* The char32_t encoding of a multibyte character is defined by the way mbrtoc32() is defined. */ -#if GNULIB_defined_mbstate_t /* AIX, IRIX */ +#if GNULIB_defined_mbstate_t /* AIX */ /* mbrtoc32() is defined on top of mbtowc() for the non-UTF-8 locales and directly for the UTF-8 locales. */ if (wc != WEOF) diff --git a/lib/c32srtombs-state.c b/lib/c32srtombs-state.c index b6f6cd0a82..48d5ae2c98 100644 --- a/lib/c32srtombs-state.c +++ b/lib/c32srtombs-state.c @@ -27,8 +27,8 @@ mbstate_t _gl_c32srtombs_state see . When it needs an initializer, use 0 or {0} as initializer? 0 only works when mbstate_t is a scalar type (such as when gnulib defines it, or on - AIX, IRIX, mingw). {0} works as an initializer in all cases: for a struct - or union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ + AIX, mingw). {0} works as an initializer in all cases: for a struct or + union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ #if defined __ELF__ /* On ELF systems, variables in BSS behave well. */ #else diff --git a/lib/c32to-impl.h b/lib/c32to-impl.h index a63a25b62d..9a905b80fa 100644 --- a/lib/c32to-impl.h +++ b/lib/c32to-impl.h @@ -39,7 +39,7 @@ FUNC (wint_t wc) /* The char32_t encoding of a multibyte character is defined by the way mbrtoc32() is defined. */ -#if GNULIB_defined_mbstate_t /* AIX, IRIX */ +#if GNULIB_defined_mbstate_t /* AIX */ /* mbrtoc32() is defined on top of mbtowc() for the non-UTF-8 locales and directly for the UTF-8 locales. */ if (wc != WEOF) diff --git a/lib/c32width.c b/lib/c32width.c index 442a432c6a..be3371d6e5 100644 --- a/lib/c32width.c +++ b/lib/c32width.c @@ -49,7 +49,7 @@ c32width (char32_t wc) /* The char32_t encoding of a multibyte character is defined by the way mbrtoc32() is defined. */ -#if GNULIB_defined_mbstate_t /* AIX, IRIX */ +#if GNULIB_defined_mbstate_t /* AIX */ /* mbrtoc32() is defined on top of mbtowc() for the non-UTF-8 locales and directly for the UTF-8 locales. */ const char *encoding = locale_charset (); diff --git a/lib/errno.in.h b/lib/errno.in.h index db9fd23dea..3db2853cf1 100644 --- a/lib/errno.in.h +++ b/lib/errno.in.h @@ -152,7 +152,7 @@ EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. Likewise, on NonStop Kernel, EDQUOT is not defined. Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, - HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. + HP-UX EWOULDBLOCK = 246. Note: When one of these systems defines some of these macros some day, binaries will have to be recompiled so that they recognizes the new diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 97b89523ee..67b9a94544 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -79,7 +79,7 @@ euidaccess (const char *file, int mode) { #if HAVE_FACCESSAT /* glibc, AIX 7, Solaris 11, Cygwin 1.7 */ return faccessat (AT_FDCWD, file, mode, AT_EACCESS); -#elif defined EFF_ONLY_OK /* IRIX, Interix */ +#elif defined EFF_ONLY_OK /* Interix */ return access (file, mode | EFF_ONLY_OK); #elif defined ACC_SELF /* AIX */ return accessx (file, mode, ACC_SELF); diff --git a/lib/fbufmode.c b/lib/fbufmode.c index c64b4b164a..aa347831f4 100644 --- a/lib/fbufmode.c +++ b/lib/fbufmode.c @@ -59,7 +59,7 @@ fbufmode (FILE *fp) return fp->_flags & (_IOLBF | _IONBF | _IOFBF); #elif defined __minix /* Minix */ return fp->_flags & (_IOLBF | _IONBF | _IOFBF); -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ # if defined WINDOWS_OPAQUE_FILE if (fp_->_flag & 0x100) return _IOFBF; /* Impossible to distinguish _IOFBF and _IOLBF. */ diff --git a/lib/fenv-except-state-get.c b/lib/fenv-except-state-get.c index ebe3776411..9f2c695386 100644 --- a/lib/fenv-except-state-get.c +++ b/lib/fenv-except-state-get.c @@ -294,7 +294,7 @@ fegetexceptflag (fexcept_t *saved_flags, int exceptions) intrinsics. */ # if HAVE_FPSETSTICKY -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetsticky, fpsetsticky. */ # include diff --git a/lib/fenv-except-state-set.c b/lib/fenv-except-state-set.c index d43db14b30..2b7fb1a9ff 100644 --- a/lib/fenv-except-state-set.c +++ b/lib/fenv-except-state-set.c @@ -522,7 +522,7 @@ fesetexceptflag (fexcept_t const *saved_flags, int exceptions) } # elif HAVE_FPSETSTICKY -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetsticky, fpsetsticky. */ # include diff --git a/lib/fenv-except-tracking-clear.c b/lib/fenv-except-tracking-clear.c index 32ba66d27a..7da0fcd6e9 100644 --- a/lib/fenv-except-tracking-clear.c +++ b/lib/fenv-except-tracking-clear.c @@ -319,7 +319,7 @@ feclearexcept (int exceptions) intrinsics. */ # if HAVE_FPSETSTICKY -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetsticky, fpsetsticky. */ # include diff --git a/lib/fenv-except-tracking-set.c b/lib/fenv-except-tracking-set.c index 0f0e008911..c251814884 100644 --- a/lib/fenv-except-tracking-set.c +++ b/lib/fenv-except-tracking-set.c @@ -410,7 +410,7 @@ fesetexcept (int exceptions) } # elif HAVE_FPSETSTICKY -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetsticky, fpsetsticky. */ # include diff --git a/lib/fenv-except-tracking-test.c b/lib/fenv-except-tracking-test.c index 77b9d1d2cb..b9dd07fdee 100644 --- a/lib/fenv-except-tracking-test.c +++ b/lib/fenv-except-tracking-test.c @@ -233,7 +233,7 @@ fetestexcept (int exceptions) intrinsics. */ # if HAVE_FPSETSTICKY -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetsticky, fpsetsticky. */ # include diff --git a/lib/fenv-except-trapping.c b/lib/fenv-except-trapping.c index 62f2446157..8ccdbe34ac 100644 --- a/lib/fenv-except-trapping.c +++ b/lib/fenv-except-trapping.c @@ -757,7 +757,7 @@ fegetexcept (void) intrinsics. */ # if HAVE_FPSETMASK -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetmask, fpsetmask. */ # include diff --git a/lib/fenv-round.c b/lib/fenv-round.c index 7303cef460..3db8ba8ec1 100644 --- a/lib/fenv-round.c +++ b/lib/fenv-round.c @@ -490,7 +490,7 @@ fesetround (int rounding_direction) intrinsics. */ # if HAVE_FPSETROUND -/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, IRIX, Solaris, Minix ≥ 3.2. */ +/* FreeBSD ≥ 3.1, NetBSD ≥ 1.1, OpenBSD, Solaris, Minix ≥ 3.2. */ /* Get fpgetround, fpsetround. */ # include diff --git a/lib/fflush.c b/lib/fflush.c index 1895503b9b..5f2ed1099d 100644 --- a/lib/fflush.c +++ b/lib/fflush.c @@ -65,7 +65,7 @@ clear_ungetc_buffer (FILE *fp) fp->_ungetc_count = 0; fp->_rcount = - fp->_rcount; } -# elif defined _IOERR /* Minix, AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +# elif defined _IOERR /* Minix, AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ /* Nothing to do. */ # else /* other implementations */ fseeko (fp, 0, SEEK_CUR); diff --git a/lib/fileblocks.c b/lib/fileblocks.c index 8af2077134..cc6dcddb90 100644 --- a/lib/fileblocks.c +++ b/lib/fileblocks.c @@ -36,7 +36,7 @@ typedef long daddr_t; /* for disk address */ # endif -/* Some SysV's, like Irix, seem to lack this. Hope it's correct. */ +/* Some SysV's seem to lack this. Hope it's correct. */ /* Number of inode pointers per indirect block. */ # define NINDIR (BSIZE / sizeof (daddr_t)) # endif /* !NINDIR */ diff --git a/lib/forkpty.c b/lib/forkpty.c index a8a199a4c4..f022c97550 100644 --- a/lib/forkpty.c +++ b/lib/forkpty.c @@ -32,7 +32,7 @@ rpl_forkpty (int *amaster, char *name, struct termios const *termp, (struct winsize *) winp); } -#else /* AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 10. */ +#else /* AIX 5.1, HP-UX 11, Solaris 10. */ # include # include diff --git a/lib/fpending.c b/lib/fpending.c index b1d66dca91..5d85c64d89 100644 --- a/lib/fpending.c +++ b/lib/fpending.c @@ -46,7 +46,7 @@ __fpending (FILE *fp) return fp->_ptr - fp->_buffer; #elif defined __minix /* Minix */ return fp_->_ptr - fp_->_buf; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ return (fp_->_ptr ? fp_->_ptr - fp_->_base : 0); #elif defined __UCLIBC__ /* uClibc */ return (fp->__modeflags & __FLAG_WRITING ? fp->__bufpos - fp->__bufstart : 0); diff --git a/lib/fpurge.c b/lib/fpurge.c index 4131f6b963..4e204880d0 100644 --- a/lib/fpurge.c +++ b/lib/fpurge.c @@ -101,7 +101,7 @@ fpurge (FILE *fp) if (fp->_ptr != NULL) fp->_count = 0; return 0; -# elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +# elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_ptr = fp_->_base; if (fp_->_ptr != NULL) fp_->_cnt = 0; diff --git a/lib/freadable.c b/lib/freadable.c index fcb4cdc938..55d784237a 100644 --- a/lib/freadable.c +++ b/lib/freadable.c @@ -45,7 +45,7 @@ freadable (FILE *fp) return (fp->_flags & (_IORW | _IOREAD)) != 0; #elif defined __minix /* Minix */ return (fp->_flags & _IOREAD) != 0; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ return (fp_->_flag & (_IORW | _IOREAD)) != 0; #elif defined __QNX__ /* QNX */ return (fp->_Mode & 0x1 /* _MOPENR */) != 0; diff --git a/lib/freadahead.c b/lib/freadahead.c index f18e21ae31..b2c53d660f 100644 --- a/lib/freadahead.c +++ b/lib/freadahead.c @@ -62,7 +62,7 @@ freadahead (FILE *fp) if ((fp_->_flags & _IOWRITING) != 0) return 0; return fp_->_count; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ if ((fp_->_flag & _IOWRT) != 0) return 0; return fp_->_cnt; diff --git a/lib/freading.c b/lib/freading.c index 113e2082c5..8951475b81 100644 --- a/lib/freading.c +++ b/lib/freading.c @@ -43,7 +43,7 @@ freading (FILE *fp) return (fp->_flags & _IOREAD) != 0; # elif defined __minix /* Minix */ return (fp->_flags & _IOREADING) != 0; -# elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +# elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ # if defined __sun /* Solaris */ return (fp_->_flag & _IOREAD) != 0 && (fp_->_flag & _IOWRT) == 0; # else diff --git a/lib/freadptr.c b/lib/freadptr.c index 6bc310d85a..92c1fbcb47 100644 --- a/lib/freadptr.c +++ b/lib/freadptr.c @@ -69,7 +69,7 @@ freadptr (FILE *fp, size_t *sizep) return NULL; *sizep = size; return (const char *) fp_->_ptr; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ if ((fp_->_flag & _IOWRT) != 0) return NULL; size = fp_->_cnt; diff --git a/lib/freadseek.c b/lib/freadseek.c index 734bf20bda..2ab790c1d8 100644 --- a/lib/freadseek.c +++ b/lib/freadseek.c @@ -49,7 +49,7 @@ freadptrinc (FILE *fp, size_t increment) #elif defined __minix /* Minix */ fp_->_ptr += increment; fp_->_count -= increment; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_ptr += increment; fp_->_cnt -= increment; #elif defined __UCLIBC__ /* uClibc */ diff --git a/lib/fseeko.c b/lib/fseeko.c index f98c1dc56c..b72822cd2c 100644 --- a/lib/fseeko.c +++ b/lib/fseeko.c @@ -84,7 +84,7 @@ fseeko (FILE *fp, off_t offset, int whence) #elif defined __minix /* Minix */ if (fp_->_ptr == fp_->_buf && (fp_->_ptr == NULL || fp_->_count == 0)) -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ if (fp_->_ptr == fp_->_base && (fp_->_ptr == NULL || fp_->_cnt == 0)) #elif defined __UCLIBC__ /* uClibc */ @@ -155,7 +155,7 @@ fseeko (FILE *fp, off_t offset, int whence) fp_->_flags &= ~__SEOF; #elif defined __EMX__ /* emx+gcc */ fp->_flags &= ~_IOEOF; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_flag &= ~_IOEOF; #elif defined __MINT__ /* Atari FreeMiNT */ fp->__offset = pos; diff --git a/lib/fseterr.c b/lib/fseterr.c index b69c25af2e..4ac4d93204 100644 --- a/lib/fseterr.c +++ b/lib/fseterr.c @@ -42,7 +42,7 @@ fseterr (FILE *fp) fp->_flags |= _IOERR; #elif defined __minix /* Minix */ fp->_flags |= _IOERR; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_flag |= _IOERR; #elif defined __UCLIBC__ /* uClibc */ fp->__modeflags |= __FLAG_ERROR; diff --git a/lib/fsusage.c b/lib/fsusage.c index eab25b03ce..64a12c5d48 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -192,7 +192,7 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp) fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_fsize); -#elif defined STAT_STATFS4 /* SVR3, old Irix */ +#elif defined STAT_STATFS4 /* SVR3 */ struct statfs fsd; diff --git a/lib/fwritable.c b/lib/fwritable.c index 757c4bd95c..87a547cfa9 100644 --- a/lib/fwritable.c +++ b/lib/fwritable.c @@ -45,7 +45,7 @@ fwritable (FILE *fp) return (fp->_flags & (_IORW | _IOWRT)) != 0; #elif defined __minix /* Minix */ return (fp->_flags & _IOWRITE) != 0; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ return (fp_->_flag & (_IORW | _IOWRT)) != 0; #elif defined __QNX__ /* QNX */ return (fp->_Mode & 0x2 /* _MOPENW */) != 0; diff --git a/lib/fwriting.c b/lib/fwriting.c index 68ade2220a..f9020b668b 100644 --- a/lib/fwriting.c +++ b/lib/fwriting.c @@ -41,7 +41,7 @@ fwriting (FILE *fp) return (fp->_flags & _IOWRT) != 0; #elif defined __minix /* Minix */ return (fp->_flags & _IOWRITING) != 0; -#elif defined _IOERR /* AIX, HP-UX, IRIX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ +#elif defined _IOERR /* AIX, HP-UX, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ return (fp_->_flag & _IOWRT) != 0; #elif defined __UCLIBC__ /* uClibc */ return (fp->__modeflags & __FLAG_WRITING) != 0; diff --git a/lib/getdomainname.c b/lib/getdomainname.c index da71f4c9dc..7178bd2e96 100644 --- a/lib/getdomainname.c +++ b/lib/getdomainname.c @@ -26,7 +26,7 @@ #include #include -#if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H /* IRIX, Solaris */ +#if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H /* Solaris */ # include #endif @@ -44,7 +44,7 @@ int getdomainname (char *name, size_t len) #undef getdomainname { -#if HAVE_GETDOMAINNAME /* Mac OS X, FreeBSD, AIX, IRIX */ +#if HAVE_GETDOMAINNAME /* Mac OS X, FreeBSD, AIX */ extern int getdomainname (char *, int); if (len > INT_MAX) diff --git a/lib/idpriv-drop.c b/lib/idpriv-drop.c index 22d7966c74..0a09b1f8fa 100644 --- a/lib/idpriv-drop.c +++ b/lib/idpriv-drop.c @@ -42,7 +42,7 @@ idpriv_drop (void) setresuid. */ if (setresgid (gid, gid, gid) < 0) return -1; -#elif HAVE_SETREGID /* Mac OS X, NetBSD, AIX, IRIX, Solaris, Cygwin */ +#elif HAVE_SETREGID /* Mac OS X, NetBSD, AIX, Solaris, Cygwin */ if (setregid (gid, gid) < 0) return -1; #elif HAVE_SETEGID /* Solaris 2.4 */ @@ -62,7 +62,7 @@ idpriv_drop (void) is used seems to vary a lot." */ if (setresuid (uid, uid, uid) < 0) return -1; -#elif HAVE_SETREUID /* Mac OS X, NetBSD, AIX, IRIX, Solaris, Cygwin */ +#elif HAVE_SETREUID /* Mac OS X, NetBSD, AIX, Solaris, Cygwin */ if (setreuid (uid, uid) < 0) return -1; #elif HAVE_SETEUID /* Solaris 2.4 */ diff --git a/lib/idpriv-droptemp.c b/lib/idpriv-droptemp.c index 05d56a5b5f..8bec0013b9 100644 --- a/lib/idpriv-droptemp.c +++ b/lib/idpriv-droptemp.c @@ -51,7 +51,7 @@ idpriv_temp_drop (void) # if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */ if (setresgid (-1, gid, saved_gid) < 0) return -1; -# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, Cygwin */ +# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */ if (setregid (-1, gid) < 0) return -1; # endif @@ -64,7 +64,7 @@ idpriv_temp_drop (void) figure 14. */ if (setresuid (-1, uid, saved_uid) < 0) return -1; -# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, Cygwin */ +# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */ if (setreuid (-1, uid) < 0) return -1; # endif @@ -142,7 +142,7 @@ idpriv_temp_restore (void) figure 14. */ if (setresuid (-1, saved_uid, -1) < 0) return -1; -# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, Cygwin */ +# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */ if (setreuid (-1, saved_uid) < 0) return -1; # endif @@ -151,7 +151,7 @@ idpriv_temp_restore (void) # if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */ if (setresgid (-1, saved_gid, -1) < 0) return -1; -# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, Cygwin */ +# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */ if (setregid (-1, saved_gid) < 0) return -1; # endif diff --git a/lib/limits.in.h b/lib/limits.in.h index c33c59e13b..693df9984c 100644 --- a/lib/limits.in.h +++ b/lib/limits.in.h @@ -47,7 +47,7 @@ #ifndef LLONG_MIN # if defined LONG_LONG_MIN /* HP-UX 11.31 */ # define LLONG_MIN LONG_LONG_MIN -# elif defined LONGLONG_MIN /* IRIX 6.5 */ +# elif defined LONGLONG_MIN /* AIX, BeOS */ # define LLONG_MIN LONGLONG_MIN # elif defined __GNUC__ # define LLONG_MIN (- __LONG_LONG_MAX__ - 1LL) @@ -56,7 +56,7 @@ #ifndef LLONG_MAX # if defined LONG_LONG_MAX /* HP-UX 11.31 */ # define LLONG_MAX LONG_LONG_MAX -# elif defined LONGLONG_MAX /* IRIX 6.5 */ +# elif defined LONGLONG_MAX /* AIX, BeOS */ # define LLONG_MAX LONGLONG_MAX # elif defined __GNUC__ # define LLONG_MAX __LONG_LONG_MAX__ @@ -65,7 +65,7 @@ #ifndef ULLONG_MAX # if defined ULONG_LONG_MAX /* HP-UX 11.31 */ # define ULLONG_MAX ULONG_LONG_MAX -# elif defined ULONGLONG_MAX /* IRIX 6.5 */ +# elif defined ULONGLONG_MAX /* AIX, BeOS */ # define ULLONG_MAX ULONGLONG_MAX # elif defined __GNUC__ # define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL) diff --git a/lib/mbrtoc16.c b/lib/mbrtoc16.c index 43e026a720..8d0085da24 100644 --- a/lib/mbrtoc16.c +++ b/lib/mbrtoc16.c @@ -28,7 +28,7 @@ interfering with the existing use of the mbstate_t in mbrtoc32. */ static_assert (sizeof (mbstate_t) >= 4); -#if GNULIB_defined_mbstate_t /* AIX, IRIX */ +#if GNULIB_defined_mbstate_t /* AIX */ /* mbstate_t has at least 4 bytes. They are used as coded in gnulib/lib/mbrtowc.c. */ # define SET_EXTRA_STATE(ps, c16) \ diff --git a/lib/mbrtoc32.c b/lib/mbrtoc32.c index c462552516..dd6e46cffc 100644 --- a/lib/mbrtoc32.c +++ b/lib/mbrtoc32.c @@ -30,7 +30,7 @@ # include "lc-charset-unicode.h" #endif -#if GNULIB_defined_mbstate_t /* AIX, IRIX */ +#if GNULIB_defined_mbstate_t /* AIX */ /* Implement mbrtoc32() on top of mbtowc() for the non-UTF-8 locales and directly for the UTF-8 locales. */ diff --git a/lib/mbsrtoc32s-state.c b/lib/mbsrtoc32s-state.c index 8b55981faa..0b19b93111 100644 --- a/lib/mbsrtoc32s-state.c +++ b/lib/mbsrtoc32s-state.c @@ -27,8 +27,8 @@ mbstate_t _gl_mbsrtoc32s_state see . When it needs an initializer, use 0 or {0} as initializer? 0 only works when mbstate_t is a scalar type (such as when gnulib defines it, or on - AIX, IRIX, mingw). {0} works as an initializer in all cases: for a struct - or union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ + AIX, mingw). {0} works as an initializer in all cases: for a struct or + union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ #if defined __ELF__ /* On ELF systems, variables in BSS behave well. */ #else diff --git a/lib/mbsrtowcs-state.c b/lib/mbsrtowcs-state.c index 807301a692..4d4d2bf58d 100644 --- a/lib/mbsrtowcs-state.c +++ b/lib/mbsrtowcs-state.c @@ -27,8 +27,8 @@ mbstate_t _gl_mbsrtowcs_state see . When it needs an initializer, use 0 or {0} as initializer? 0 only works when mbstate_t is a scalar type (such as when gnulib defines it, or on - AIX, IRIX, mingw). {0} works as an initializer in all cases: for a struct - or union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ + AIX, mingw). {0} works as an initializer in all cases: for a struct or + union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ #if defined __ELF__ /* On ELF systems, variables in BSS behave well. */ #else diff --git a/lib/mbtowc-lock.h b/lib/mbtowc-lock.h index d257aaa8c8..1e67c96ec8 100644 --- a/lib/mbtowc-lock.h +++ b/lib/mbtowc-lock.h @@ -59,7 +59,7 @@ mbtowc_with_lock (wchar_t *pwc, const char *p, size_t m) return ret; } -#elif HAVE_PTHREAD_API /* AIX, IRIX, Cygwin */ +#elif HAVE_PTHREAD_API /* AIX, Cygwin */ extern # if defined _WIN32 || defined __CYGWIN__ @@ -67,7 +67,7 @@ extern # endif pthread_mutex_t *gl_get_mbtowc_lock (void); -# if HAVE_WEAK_SYMBOLS /* IRIX */ +# if HAVE_WEAK_SYMBOLS /* Avoid the need to link with '-lpthread'. */ # pragma weak pthread_mutex_lock diff --git a/lib/minmax.h b/lib/minmax.h index a12975c51b..7cafcea381 100644 --- a/lib/minmax.h +++ b/lib/minmax.h @@ -19,8 +19,8 @@ #define _MINMAX_H /* Note: MIN, MAX are also defined in on some systems - (glibc, IRIX, HP-UX). Therefore you might get warnings about - MIN, MAX macro redefinitions on some systems; the workaround is to + (glibc, HP-UX). Therefore you might get warnings about MIN, MAX + macro redefinitions on some systems; the workaround is to #include this file as the last one among the #include list. */ /* This file uses HAVE_MINMAX_IN_LIMITS_H, HAVE_MINMAX_IN_SYS_PARAM_H. */ diff --git a/lib/netdb.in.h b/lib/netdb.in.h index 8c8aa558f2..0bb05568a2 100644 --- a/lib/netdb.in.h +++ b/lib/netdb.in.h @@ -41,8 +41,8 @@ #error "Please include config.h first." #endif -/* Get definitions such as 'socklen_t' on IRIX 6.5 and - 'struct hostent' on MinGW. */ +/* Get definitions such as 'socklen_t' and 'struct hostent' + on MinGW. */ #include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ diff --git a/lib/pipe-filter-ii.c b/lib/pipe-filter-ii.c index ff7a2dfff6..c58c62765b 100644 --- a/lib/pipe-filter-ii.c +++ b/lib/pipe-filter-ii.c @@ -479,7 +479,7 @@ pipe_filter_ii_execute (const char *progname, write() call may fail with EAGAIN, simply because sufficient space is not available in the pipe. See POSIX:2008 . - This happens actually on AIX and IRIX, when bufsize >= 8192 + This happens actually on AIX, when bufsize >= 8192 (even though PIPE_BUF and pathconf ("/", _PC_PIPE_BUF) are both 32768). */ size_t attempt_to_write = diff --git a/lib/posix_openpt.c b/lib/posix_openpt.c index 2239709203..f680a55ccb 100644 --- a/lib/posix_openpt.c +++ b/lib/posix_openpt.c @@ -34,11 +34,11 @@ AIX >= 5.2, HP-UX >= 11.31, Solaris >= 10, Cygwin >= 1.7. Thus, this replacement function is compiled on Mac OS X 10.3, OpenBSD 4.9, Minix 3.1.8, - AIX 5.1, HP-UX 11.23, IRIX 6.5, Solaris 9, + AIX 5.1, HP-UX 11.23, Solaris 9, Cygwin 1.5.x, mingw, MSVC 9, Interix 3.5, BeOS. Among these: - AIX has /dev/ptc. - - HP-UX 10..11, IRIX 6.5, Solaris 2.6..9, Cygwin 1.5 have /dev/ptmx. + - HP-UX 10..11, Solaris 2.6..9, Cygwin 1.5 have /dev/ptmx. - HP-UX 10..11 also has /dev/ptym/clone, but this should not be needed. - OpenBSD 4.9 has /dev/ptm and the PTMGET ioctl. - Minix 3.1.8 have a list of pseudo-terminal devices in /dev. @@ -86,7 +86,7 @@ posix_openpt (int flags) else master = -1; -#else /* Mac OS X, Minix, HP-UX, IRIX, Solaris 9, Cygwin 1.5 */ +#else /* Mac OS X, Minix, HP-UX, Solaris 9, Cygwin 1.5 */ /* Most systems that lack posix_openpt() have /dev/ptmx. */ master = open ("/dev/ptmx", flags); diff --git a/lib/ptsname_r.c b/lib/ptsname_r.c index 3673579a50..541af1b083 100644 --- a/lib/ptsname_r.c +++ b/lib/ptsname_r.c @@ -206,7 +206,7 @@ ptsname_r (int fd, char *buf, size_t buflen) # else if (!isatty (fd)) { -# if ISATTY_FAILS_WITHOUT_SETTING_ERRNO && defined F_GETFL /* IRIX, Solaris */ +# if ISATTY_FAILS_WITHOUT_SETTING_ERRNO && defined F_GETFL /* Solaris */ /* Set errno. */ if (fcntl (fd, F_GETFL) != -1) errno = ENOTTY; diff --git a/lib/readutmp.c b/lib/readutmp.c index a34d5fde5f..e4ac917060 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -332,7 +332,7 @@ read_utmp_from_file (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf, # if READUTMP_USE_SYSTEMD || HAVE_UTMPX_H || HAVE_UTMP_H -# if defined UTMP_NAME_FUNCTION /* glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, IRIX, Solaris, Cygwin, Android */ +# if defined UTMP_NAME_FUNCTION /* glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, Solaris, Cygwin, Android */ /* Ignore the return value for now. Solaris' utmpname returns 1 upon success -- which is contrary diff --git a/lib/readutmp.h b/lib/readutmp.h index 60d63df959..f186d99d68 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -115,19 +115,19 @@ enum { UT_HOST_SIZE = -1 }; Field Type Platforms ---------- ------ --------- - ⎡ ut_user char[] glibc, musl, macOS, FreeBSD, AIX, HP-UX, IRIX, Solaris, Cygwin, Android + ⎡ ut_user char[] glibc, musl, macOS, FreeBSD, AIX, HP-UX, Solaris, Cygwin, Android ⎣ ut_name char[] NetBSD, Minix - ut_id char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_line char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_pid pid_t glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_type short glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ⎡ ut_tv struct glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android + ut_id char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ut_line char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ut_pid pid_t glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ut_type short glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ⎡ ut_tv struct glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android ⎢ { tv_sec; tv_usec; } ⎣ ut_time time_t Cygwin - ut_host char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_exit struct glibc, musl, NetBSD, Minix, HP-UX, IRIX, Solaris, Android + ut_host char[] glibc, musl, macOS, FreeBSD, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ut_exit struct glibc, musl, NetBSD, Minix, HP-UX, Solaris, Android { e_termination; e_exit; } - ut_session [long] int glibc, musl, NetBSD, Minix, IRIX, Solaris, Android + ut_session [long] int glibc, musl, NetBSD, Minix, Solaris, Android ⎡ ut_addr [long] int HP-UX, Cygwin ⎢ ut_addr_v6 [u]int[4] glibc, musl, Android ⎣ ut_ss struct sockaddr_storage NetBSD, Minix @@ -174,7 +174,7 @@ struct utmpx32 # define SET_UTMP_ENT setutxent # define GET_UTMP_ENT getutxent # define END_UTMP_ENT endutxent -# ifdef HAVE_UTMPXNAME /* glibc, musl, macOS, NetBSD, Minix, IRIX, Solaris, Cygwin */ +# ifdef HAVE_UTMPXNAME /* glibc, musl, macOS, NetBSD, Minix, Solaris, Cygwin */ # define UTMP_NAME_FUNCTION utmpxname # elif defined UTXDB_ACTIVE /* FreeBSD */ # define UTMP_NAME_FUNCTION(x) setutxdb (UTXDB_ACTIVE, x) @@ -190,17 +190,17 @@ struct utmpx32 Field Type Platforms ---------- ------ --------- - ⎡ ut_user char[] glibc, musl, AIX, HP-UX, IRIX, Solaris, Cygwin, Android + ⎡ ut_user char[] glibc, musl, AIX, HP-UX, Solaris, Cygwin, Android ⎣ ut_name char[] macOS, old FreeBSD, NetBSD, OpenBSD, Minix - ut_id char[] glibc, musl, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_line char[] glibc, musl, macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_pid pid_t glibc, musl, AIX, HP-UX, IRIX, Solaris, Cygwin, Android - ut_type short glibc, musl, AIX, HP-UX, IRIX, Solaris, Cygwin, Android + ut_id char[] glibc, musl, AIX, HP-UX, Solaris, Cygwin, Android + ut_line char[] glibc, musl, macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android + ut_pid pid_t glibc, musl, AIX, HP-UX, Solaris, Cygwin, Android + ut_type short glibc, musl, AIX, HP-UX, Solaris, Cygwin, Android ⎡ ut_tv struct glibc, musl, Android ⎢ { tv_sec; tv_usec; } - ⎣ ut_time time_t macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin + ⎣ ut_time time_t macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, Solaris, Cygwin ut_host char[] glibc, musl, macOS, old FreeBSD, NetBSD, OpenBSD, Minix, AIX, HP-UX, Cygwin, Android - ut_exit struct glibc, musl, AIX, HP-UX, IRIX, Solaris, Android + ut_exit struct glibc, musl, AIX, HP-UX, Solaris, Android { e_termination; e_exit; } ut_session [long] int glibc, musl, Android ⎡ ut_addr [long] int HP-UX, Cygwin @@ -211,7 +211,7 @@ struct utmpx32 # define SET_UTMP_ENT setutent # define GET_UTMP_ENT getutent # define END_UTMP_ENT endutent -# ifdef HAVE_UTMPNAME /* glibc, musl, NetBSD, Minix, AIX, HP-UX, IRIX, Solaris, Cygwin, Android */ +# ifdef HAVE_UTMPNAME /* glibc, musl, NetBSD, Minix, AIX, HP-UX, Solaris, Cygwin, Android */ # define UTMP_NAME_FUNCTION utmpname # endif diff --git a/lib/resource-ext.h b/lib/resource-ext.h index 6d42de0776..50ae1d45a2 100644 --- a/lib/resource-ext.h +++ b/lib/resource-ext.h @@ -36,7 +36,7 @@ extern uintptr_t get_rusage_as (void); Note: This function always returns zero on HP-UX 11.00. Note: The total size of all malloc()ed memory is bounded by the size of the data segment only on the following platforms: - FreeBSD, AIX, HP-UX 11.23 and newer, IRIX, Solaris, BeOS, Haiku. */ + FreeBSD, AIX, HP-UX 11.23 and newer, Solaris, BeOS, Haiku. */ extern uintptr_t get_rusage_data (void); diff --git a/lib/safe-read.h b/lib/safe-read.h index a97a42e49c..dd2e9660f2 100644 --- a/lib/safe-read.h +++ b/lib/safe-read.h @@ -23,7 +23,7 @@ SA_RESTART. - The process receives a signal for which a signal handler was installed with signal() and for which no call to siginterrupt(sig,0) was done, - on some platforms: AIX, HP-UX, IRIX, Solaris. + on some platforms: AIX, HP-UX, Solaris. This module provides a wrapper around read() that handles EINTR. */ diff --git a/lib/safe-write.h b/lib/safe-write.h index baa9cb9e29..201a271ab7 100644 --- a/lib/safe-write.h +++ b/lib/safe-write.h @@ -23,7 +23,7 @@ SA_RESTART. - The process receives a signal for which a signal handler was installed with signal() and for which no call to siginterrupt(sig,0) was done, - on some platforms: AIX, HP-UX, IRIX, Solaris. + on some platforms: AIX, HP-UX, Solaris. This module provides a wrapper around write() that handles EINTR. */ diff --git a/lib/save-cwd.c b/lib/save-cwd.c index fa4c70899b..4930952b4e 100644 --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -49,10 +49,10 @@ the getcwd-lgpl module, but to be truly robust, use the getcwd module. Some systems lack fchdir altogether: e.g., OS/2, pre-2001 Cygwin, - SCO Xenix. Also, SunOS 4 and Irix 5.3 provide the function, yet it - doesn't work for partitions on which auditing is enabled. If - you're still using an obsolete system with these problems, please - send email to the maintainer of this code. */ + SCO Xenix. Also, SunOS 4 provides the function, yet it doesn't work + for partitions on which auditing is enabled. If you're still using + an obsolete system with these problems, please send email to the + maintainer of this code. */ int save_cwd (struct saved_cwd *cwd) diff --git a/lib/stdbool.in.h b/lib/stdbool.in.h index c599305a5c..d6c3873884 100644 --- a/lib/stdbool.in.h +++ b/lib/stdbool.in.h @@ -78,8 +78,6 @@ Need to define _Bool ourselves. As 'signed char' or as an enum type? Use of a typedef, with SunPRO C, leads to a stupid "warning: _Bool is a keyword in ISO C99". - Use of an enum type, with IRIX cc, leads to a stupid - "warning(1185): enumerated type mixed with another type". The only benefit of the enum, debuggability, is not important with these compilers. So use 'signed char' and no enum. */ # define _Bool signed char diff --git a/lib/striconv.c b/lib/striconv.c index c8cd1662d2..4a94ed87c2 100644 --- a/lib/striconv.c +++ b/lib/striconv.c @@ -79,8 +79,7 @@ mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, } # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. + /* NetBSD iconv() inserts a question mark if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) and GNU libc are known to prefer to fail rather than doing a lossy conversion. */ else if (res > 0) @@ -146,8 +145,7 @@ mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, } # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. + /* NetBSD iconv() inserts a question mark if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) and GNU libc are known to prefer to fail rather than doing a lossy conversion. */ else if (res > 0) @@ -190,8 +188,7 @@ str_cd_iconv (const char *src, iconv_t cd) conversion and add it by hand afterwards. */ # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. + /* NetBSD iconv() inserts a question mark if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) and GNU libc are known to prefer to fail rather than doing a lossy conversion. For other iconv() implementations, we have to look at the number of irreversible diff --git a/lib/striconveh.c b/lib/striconveh.c index 8730e44ef7..9289591b63 100644 --- a/lib/striconveh.c +++ b/lib/striconveh.c @@ -130,8 +130,7 @@ iconveh_close (const iconveh_t *cd) it has incremented the input pointers past the error location. */ # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) -/* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. +/* NetBSD iconv() inserts a question mark if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) and GNU libc are known to prefer to fail rather than doing a lossy conversion. */ static size_t @@ -239,8 +238,7 @@ iconv_carefully_1 (iconv_t cd, *inbytesleft = inptr_end - inptr; # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. + /* NetBSD iconv() inserts a question mark if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) and GNU libc are known to prefer to fail rather than doing a lossy conversion. */ if (res != (size_t)(-1) && res > 0) @@ -840,9 +838,7 @@ mem_cd_iconveh_internal (const char *src, size_t srclen, /* FreeBSD iconv(), NetBSD iconv(), and Solaris 11 iconv() insert a '?' if they cannot convert. This is what we want. - But IRIX iconv() inserts a NUL byte if it - cannot convert. - And musl libc iconv() inserts a '*' if it + But musl libc iconv() inserts a '*' if it cannot convert. */ : (res > 0 && !(out2ptr_try - out2ptr == 1 @@ -932,8 +928,7 @@ mem_cd_iconveh_internal (const char *src, size_t srclen, } # if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \ && !(defined __GLIBC__ && !defined __UCLIBC__) - /* IRIX iconv() inserts a NUL byte if it cannot convert. - FreeBSD iconv(), NetBSD iconv(), and Solaris 11 + /* FreeBSD iconv(), NetBSD iconv(), and Solaris 11 iconv() insert a '?' if they cannot convert. musl libc iconv() inserts a '*' if it cannot convert. Only GNU libiconv (excluding the bastard Apple iconv) diff --git a/lib/termcap.h b/lib/termcap.h index 40fd1f79b4..1279a2c531 100644 --- a/lib/termcap.h +++ b/lib/termcap.h @@ -87,7 +87,7 @@ extern char * tparam (const char *str, void *buf, int bufsize, ...); /* API provided by - GNU ncurses in , , , - - Solaris, AIX, HP-UX, IRIX curses in , + - Solaris, AIX, HP-UX curses in , - gnulib's replacement. */ /* Instantiates a string capability with format strings. diff --git a/lib/terminfo.h b/lib/terminfo.h index 15fa590fca..4df844c300 100644 --- a/lib/terminfo.h +++ b/lib/terminfo.h @@ -85,7 +85,7 @@ extern char * tparam (const char *str, void *buf, int bufsize, ...); /* API provided by - GNU ncurses in , , , - - Solaris, AIX, HP-UX, IRIX curses in , + - Solaris, AIX, HP-UX curses in , - gnulib's replacement. */ /* Instantiates a string capability with format strings. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 2784924e11..5b5838240a 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -2145,9 +2145,9 @@ _GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len), _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_NODISCARD); # endif -/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5 - and FreeBSD 6.4 the second parameter is int. On Solaris 11 - 2011-10, the first parameter is not const. */ +/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, and FreeBSD 6.4 + the second parameter is int. On Solaris 11 2011-10, the first parameter is + not const. */ _GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len)); # endif diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index afdcffd5e0..7219c741cd 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -180,7 +180,7 @@ # define SNPRINTF swprintf # endif # else - /* Old platforms such as NetBSD 3.0, OpenBSD 3.8, HP-UX 11.00, IRIX 6.5. */ + /* Old platforms such as NetBSD 3.0, OpenBSD 3.8, HP-UX 11.00. */ # define TCHAR_T char # endif #endif @@ -5001,8 +5001,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE /* Some systems produce wrong output for Inf, -Inf, and NaN. Some systems in this category - (IRIX 5.3) also do so for -0.0. Therefore we - treat this case here as well. */ + also do so for -0.0. Therefore we treat this + case here as well. */ && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif )) @@ -6992,7 +6992,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, on musl libc because we would run into an swprintf() bug. See . */ fbp[1] = '\0'; -# else /* AIX <= 5.1, HP-UX, IRIX, Solaris <= 9, BeOS */ +# else /* AIX <= 5.1, HP-UX, Solaris <= 9, BeOS */ fbp[1] = '%'; fbp[2] = 'n'; fbp[3] = '\0'; diff --git a/lib/wcrtomb.c b/lib/wcrtomb.c index c9ebcf0cbd..11d528049b 100644 --- a/lib/wcrtomb.c +++ b/lib/wcrtomb.c @@ -36,7 +36,7 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps) return (size_t)(-1); } -#if !HAVE_WCRTOMB /* IRIX 6.5 */ \ +#if !HAVE_WCRTOMB /* HP-UX 11.00, mingw */ \ || WCRTOMB_RETVAL_BUG /* Solaris 11.3, MSVC */ \ || WCRTOMB_C_LOCALE_BUG /* Android */ if (s == NULL) @@ -62,7 +62,7 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps) # else return wcrtomb (s, wc, ps); # endif -#else /* IRIX 6.5 */ +#else /* HP-UX 11.00, mingw */ /* Fallback for platforms that don't have wcrtomb(). Implement on top of wctomb(). This code is not multithread-safe. */ diff --git a/lib/wcsrtombs-state.c b/lib/wcsrtombs-state.c index a2c3f7ec6d..9cf2cdbd7a 100644 --- a/lib/wcsrtombs-state.c +++ b/lib/wcsrtombs-state.c @@ -27,8 +27,8 @@ mbstate_t _gl_wcsrtombs_state see . When it needs an initializer, use 0 or {0} as initializer? 0 only works when mbstate_t is a scalar type (such as when gnulib defines it, or on - AIX, IRIX, mingw). {0} works as an initializer in all cases: for a struct - or union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ + AIX, mingw). {0} works as an initializer in all cases: for a struct or + union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ #if defined __ELF__ /* On ELF systems, variables in BSS behave well. */ #else diff --git a/m4/fenv-environment.m4 b/m4/fenv-environment.m4 index c35a3372d2..a41c802cfb 100644 --- a/m4/fenv-environment.m4 +++ b/m4/fenv-environment.m4 @@ -1,5 +1,5 @@ # fenv-environment.m4 -# serial 5 +# serial 6 dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -62,7 +62,7 @@ AC_DEFUN([gl_FENV_ENVIRONMENT], if test $gl_cv_func_fesetenv_no_libm = yes \ || test $gl_cv_func_fesetenv_in_libm = yes; then dnl It needs linking with -lm on - dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, Solaris, Android. + dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, Solaris, Android. if test $gl_cv_func_fesetenv_no_libm = yes; then FENV_ENVIRONMENT_LIBM= else diff --git a/m4/fenv-exceptions-state.m4 b/m4/fenv-exceptions-state.m4 index 6c435a1147..b2ce980896 100644 --- a/m4/fenv-exceptions-state.m4 +++ b/m4/fenv-exceptions-state.m4 @@ -1,5 +1,5 @@ # fenv-exceptions-state.m4 -# serial 4 +# serial 5 dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -18,7 +18,7 @@ AC_DEFUN([gl_FENV_EXCEPTIONS_STATE], if test $gl_cv_func_fesetexceptflag_no_libm = yes \ || test $gl_cv_func_fesetexceptflag_in_libm = yes; then dnl It needs linking with -lm on - dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, Solaris, Android. + dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, Solaris, Android. if test $gl_cv_func_fesetexceptflag_no_libm = yes; then FENV_EXCEPTIONS_STATE_LIBM= else diff --git a/m4/fenv-exceptions-tracking.m4 b/m4/fenv-exceptions-tracking.m4 index 14df489eee..e9331d9845 100644 --- a/m4/fenv-exceptions-tracking.m4 +++ b/m4/fenv-exceptions-tracking.m4 @@ -1,5 +1,5 @@ # fenv-exceptions-tracking.m4 -# serial 4 +# serial 5 dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -138,7 +138,7 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRACKING], FENV_EXCEPTIONS_TRACKING_LIBM= else dnl It needs linking with -lm on - dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, Solaris, Android. + dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, Solaris, Android. if test $gl_cv_func_feraiseexcept_no_libm = yes; then FENV_EXCEPTIONS_TRACKING_LIBM= else diff --git a/m4/fenv-rounding.m4 b/m4/fenv-rounding.m4 index e025975d34..35ab6f1f26 100644 --- a/m4/fenv-rounding.m4 +++ b/m4/fenv-rounding.m4 @@ -1,5 +1,5 @@ # fenv-rounding.m4 -# serial 2 +# serial 3 dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -42,7 +42,7 @@ AC_DEFUN([gl_FENV_ROUNDING], FENV_ROUNDING_LIBM= else dnl It needs linking with -lm on - dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, Solaris, Android. + dnl glibc, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, Solaris, Android. if test $gl_cv_func_fesetround_no_libm = yes; then FENV_ROUNDING_LIBM= else diff --git a/m4/fmod.m4 b/m4/fmod.m4 index ac5b94ca55..e4f925fb51 100644 --- a/m4/fmod.m4 +++ b/m4/fmod.m4 @@ -1,5 +1,5 @@ # fmod.m4 -# serial 13 +# serial 14 dnl Copyright (C) 2011-2025 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,8 +31,7 @@ AC_DEFUN([gl_FUNC_FMOD], ]gl_DOUBLE_MINUS_ZERO_CODE[ ]gl_DOUBLE_SIGNBIT_CODE[ /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { diff --git a/m4/getdomainname.m4 b/m4/getdomainname.m4 index 2eae812e26..766dd1c712 100644 --- a/m4/getdomainname.m4 +++ b/m4/getdomainname.m4 @@ -1,5 +1,5 @@ # getdomainname.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2002-2003, 2008-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -45,7 +45,7 @@ AC_DEFUN([gl_FUNC_GETDOMAINNAME], dnl What about the declaration? dnl - It's int getdomainname(char *, size_t) on glibc, NetBSD, OpenBSD. - dnl - It's int getdomainname(char *, int) on Mac OS X, FreeBSD, AIX, IRIX. + dnl - It's int getdomainname(char *, int) on Mac OS X, FreeBSD, AIX. AC_CHECK_DECLS([getdomainname], , , [[#include #ifdef HAVE_SYS_SOCKET_H diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 8ab613db82..0d80b64acd 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -1,5 +1,5 @@ # getloadavg.m4 -# serial 13 +# serial 14 dnl Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2025 Free dnl Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -124,8 +124,7 @@ if test $gl_func_getloadavg_done = no; then fi # We cannot check for , because Solaris 2 does not use dwarf (it -# uses stabs), but it is still SVR4. We cannot check for because -# Irix 4.0.5F has the header but not the library. +# uses stabs), but it is still SVR4. if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ && test "$ac_cv_lib_kvm_kvm_open" = yes; then gl_func_getloadavg_done=yes diff --git a/m4/getopt.m4 b/m4/getopt.m4 index c459265c65..f219ed522c 100644 --- a/m4/getopt.m4 +++ b/m4/getopt.m4 @@ -1,5 +1,5 @@ # getopt.m4 -# serial 51 +# serial 52 dnl Copyright (C) 2002-2006, 2008-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -88,7 +88,7 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS], dnl Merging these three different test programs into a single one dnl would require a reset mechanism. On BSD systems, it can be done dnl through 'optreset'; on some others (glibc), it can be done by - dnl setting 'optind' to 0; on others again (HP-UX, IRIX, Solaris 9, + dnl setting 'optind' to 0; on others again (HP-UX, Solaris 9, dnl musl libc), there is no such mechanism. if test $cross_compiling = no; then dnl Sanity check. Succeeds everywhere (except on MSVC, @@ -238,8 +238,7 @@ dnl is ambiguous with environment values that contain newlines. nocrash_init(); /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, - and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, - Solaris 10. */ + and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, Solaris 10. */ { static char conftest[] = "conftest"; static char plus[] = "-+"; @@ -250,7 +249,7 @@ dnl is ambiguous with environment values that contain newlines. } /* This code succeeds on glibc 2.8, mingw, and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, - IRIX 6.5, Solaris 10, Cygwin 1.5.x. */ + Solaris 10, Cygwin 1.5.x. */ { static char program[] = "program"; static char p[] = "-p"; diff --git a/m4/hypot.m4 b/m4/hypot.m4 index 3b0fbcdeaa..560a3b5f9c 100644 --- a/m4/hypot.m4 +++ b/m4/hypot.m4 @@ -1,5 +1,5 @@ # hypot.m4 -# serial 13 +# serial 14 dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -32,8 +32,7 @@ AC_DEFUN([gl_FUNC_HYPOT], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { diff --git a/m4/hypotf.m4 b/m4/hypotf.m4 index 6665c6815f..5909e2db40 100644 --- a/m4/hypotf.m4 +++ b/m4/hypotf.m4 @@ -1,5 +1,5 @@ # hypotf.m4 -# serial 14 +# serial 15 dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -48,8 +48,7 @@ AC_DEFUN([gl_FUNC_HYPOTF], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (float x, float y) { diff --git a/m4/hypotl.m4 b/m4/hypotl.m4 index 9d44d236df..6dac43d10d 100644 --- a/m4/hypotl.m4 +++ b/m4/hypotl.m4 @@ -1,5 +1,5 @@ # hypotl.m4 -# serial 16 +# serial 17 dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -48,8 +48,7 @@ AC_DEFUN([gl_FUNC_HYPOTL], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (long double x, long double y) { diff --git a/m4/iconv.m4 b/m4/iconv.m4 index 62530721e9..f2b0c37d72 100644 --- a/m4/iconv.m4 +++ b/m4/iconv.m4 @@ -1,5 +1,5 @@ # iconv.m4 -# serial 31 +# serial 32 dnl Copyright (C) 2000-2002, 2007-2014, 2016-2025 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -209,7 +209,7 @@ AC_DEFUN([AM_ICONV_LINK], { /* Try standardized names. */ iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); - /* Try IRIX names. */ + /* Try possible *BSD names. */ iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); /* Try AIX names. */ iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); diff --git a/m4/intl-thread-locale.m4 b/m4/intl-thread-locale.m4 index 91a1c20896..ec8a512544 100644 --- a/m4/intl-thread-locale.m4 +++ b/m4/intl-thread-locale.m4 @@ -1,5 +1,5 @@ # intl-thread-locale.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2015-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -171,7 +171,7 @@ int main () dnl fake. So, set dnl gt_good_uselocale = gt_working_uselocale && !gt_fake_locales. dnl Expected result: HAVE_GOOD_USELOCALE is defined on all platforms except - dnl FreeBSD < 9.1, NetBSD, OpenBSD, Minix, AIX < 7, AIX 7.2, HP-UX, IRIX, + dnl FreeBSD < 9.1, NetBSD, OpenBSD, Minix, AIX < 7, AIX 7.2, HP-UX, dnl Solaris < 11.4, Cygwin < 2.6, mingw, MSVC 14, Android. if test $gt_working_uselocale = yes && test $gt_fake_locales = no; then gt_good_uselocale=yes @@ -199,7 +199,7 @@ int main () dnl Tests whether uselocale() exists and is usable. dnl Sets gt_working_uselocale and defines HAVE_WORKING_USELOCALE. dnl Expected result: HAVE_WORKING_USELOCALE is defined on all platforms except -dnl FreeBSD < 9.1, NetBSD, OpenBSD < 6.2, Minix, AIX < 7, AIX 7.2, HP-UX, IRIX, +dnl FreeBSD < 9.1, NetBSD, OpenBSD < 6.2, Minix, AIX < 7, AIX 7.2, HP-UX, dnl Solaris < 11.4, Cygwin < 2.6, mingw, MSVC 14, Android API level < 21. AC_DEFUN([gt_FUNC_USELOCALE], [ diff --git a/m4/largefile.m4 b/m4/largefile.m4 index 1f2bc2ebb6..6aa0707829 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 @@ -1,5 +1,5 @@ # largefile.m4 -# serial 3 +# serial 4 dnl Copyright 1992-1996, 1998-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -355,8 +355,7 @@ AC_DEFUN([gl_LARGEFILE], *) dnl Nothing to do on gnulib's side. dnl A 64-bit off_t is - dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX, - dnl Cygwin, + dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, Cygwin, dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on dnl glibc, HP-UX, Solaris, dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX, diff --git a/m4/libdl.m4 b/m4/libdl.m4 index 8e811560bc..4b4357b7f8 100644 --- a/m4/libdl.m4 +++ b/m4/libdl.m4 @@ -1,5 +1,5 @@ # libdl.m4 -# serial 1 +# serial 2 dnl Copyright (C) 2024-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -14,7 +14,7 @@ AC_DEFUN([gl_LIBDL], [ dnl dlopen, dlsym are dnl - in libc on glibc >= 2.34, musl libc, macOS, FreeBSD, NetBSD, OpenBSD, - dnl AIX, IRIX, Solaris, Cygwin, Haiku, + dnl AIX, Solaris, Cygwin, Haiku, dnl - in a separate libdl on glibc < 2.34, Android. AC_CACHE_CHECK([for library needed for dlopen and dlsym], [gl_cv_lib_dl], diff --git a/m4/locale-ja.m4 b/m4/locale-ja.m4 index 0c579f2a87..4b25685952 100644 --- a/m4/locale-ja.m4 +++ b/m4/locale-ja.m4 @@ -1,5 +1,5 @@ # locale-ja.m4 -# serial 20 +# serial 21 dnl Copyright (C) 2003, 2005-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -116,7 +116,7 @@ int main () if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_ja=ja_JP.eucJP else - # Test for the IRIX, FreeBSD locale name. + # Test for the FreeBSD locale name. if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_ja=ja_JP.EUC else diff --git a/m4/locale_h.m4 b/m4/locale_h.m4 index 3c768b5c53..ae01b4ffdb 100644 --- a/m4/locale_h.m4 +++ b/m4/locale_h.m4 @@ -1,5 +1,5 @@ # locale_h.m4 -# serial 38 +# serial 39 dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -63,8 +63,8 @@ AC_DEFUN_ONCE([gl_LOCALE_H], dnl Check whether 'struct lconv' is complete. dnl Bionic libc's 'struct lconv' is just a dummy. - dnl On OpenBSD 4.9, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin 1.5.x, - dnl mingw, MSVC 9, it lacks the int_p_* and int_n_* members. + dnl On OpenBSD 4.9, HP-UX 11, Solaris 9, Cygwin 1.5.x, mingw, MSVC 9, + dnl it lacks the int_p_* and int_n_* members. AC_CACHE_CHECK([whether struct lconv is properly defined], [gl_cv_sys_struct_lconv_ok], [AC_COMPILE_IFELSE( diff --git a/m4/log.m4 b/m4/log.m4 index aedfb24ebf..e3af82fb2f 100644 --- a/m4/log.m4 +++ b/m4/log.m4 @@ -1,5 +1,5 @@ # log.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,8 +29,7 @@ AC_DEFUN([gl_FUNC_LOG], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { diff --git a/m4/log10.m4 b/m4/log10.m4 index 9bf58551b3..aad4d73649 100644 --- a/m4/log10.m4 +++ b/m4/log10.m4 @@ -1,5 +1,5 @@ # log10.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,8 +29,7 @@ AC_DEFUN([gl_FUNC_LOG10], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { diff --git a/m4/log10f.m4 b/m4/log10f.m4 index 57af0b4795..a6631bb510 100644 --- a/m4/log10f.m4 +++ b/m4/log10f.m4 @@ -1,5 +1,5 @@ # log10f.m4 -# serial 16 +# serial 17 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -39,8 +39,7 @@ AC_DEFUN([gl_FUNC_LOG10F], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (float x, float y) { diff --git a/m4/logf.m4 b/m4/logf.m4 index 3a736dc23d..7b8605c171 100644 --- a/m4/logf.m4 +++ b/m4/logf.m4 @@ -1,5 +1,5 @@ # logf.m4 -# serial 16 +# serial 17 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -39,8 +39,7 @@ AC_DEFUN([gl_FUNC_LOGF], #endif #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (float x, float y) { diff --git a/m4/modf.m4 b/m4/modf.m4 index 9c1b1d716f..ff299f24ea 100644 --- a/m4/modf.m4 +++ b/m4/modf.m4 @@ -1,5 +1,5 @@ # modf.m4 -# serial 14 +# serial 15 dnl Copyright (C) 2011-2025 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,8 +31,7 @@ AC_DEFUN([gl_FUNC_MODF], ]gl_DOUBLE_MINUS_ZERO_CODE[ ]gl_DOUBLE_SIGNBIT_CODE[ /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { @@ -53,7 +52,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 6.7, IRIX 6.5. */ + This test fails on FreeBSD 6.4, OpenBSD 6.7. */ 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 d64e309685..9349e28236 100644 --- a/m4/modff.m4 +++ b/m4/modff.m4 @@ -1,5 +1,5 @@ # modff.m4 -# serial 16 +# serial 17 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -39,8 +39,7 @@ AC_DEFUN([gl_FUNC_MODFF], ]gl_FLOAT_MINUS_ZERO_CODE[ ]gl_FLOAT_SIGNBIT_CODE[ /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (float x, float y) { @@ -61,7 +60,7 @@ int main (int argc, char *argv[]) if (numeric_equal (f, f)) result |= 1; /* Test modff(-Inf,...). - This test fails on IRIX 6.5, mingw. */ + This test fails on mingw. */ f = my_modff (minus_one / zero, &i); if (!(f == 0.0f) || (signbitf (minus_zerof) && !signbitf (f))) result |= 2; diff --git a/m4/modfl.m4 b/m4/modfl.m4 index 9f5c0b0af2..7697d3160c 100644 --- a/m4/modfl.m4 +++ b/m4/modfl.m4 @@ -1,5 +1,5 @@ # modfl.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -83,8 +83,7 @@ int main (int argc, char *argv[]) ]gl_LONG_DOUBLE_MINUS_ZERO_CODE[ ]gl_LONG_DOUBLE_SIGNBIT_CODE[ /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (long double x, long double y) { @@ -99,7 +98,7 @@ int main (int argc, char *argv[]) long double i; long double f; /* Test modfl(-Inf,...). - This test fails on IRIX 6.5, mingw. */ + This test fails on mingw. */ f = my_modfl (minus_one / zero, &i); if (!(f == 0.0L) || (signbitl (minus_zerol) && !signbitl (f))) return 1; diff --git a/m4/pthread-rwlock.m4 b/m4/pthread-rwlock.m4 index 21db0fd7e9..877da63f7a 100644 --- a/m4/pthread-rwlock.m4 +++ b/m4/pthread-rwlock.m4 @@ -1,5 +1,5 @@ # pthread-rwlock.m4 -# serial 8 +# serial 9 dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -93,8 +93,8 @@ AC_DEFUN([gl_PTHREAD_RWLOCK], [Define if all pthread_rwlock* functions don't exist.]) else dnl On Mac OS X 10.5, FreeBSD 5.2.1, OpenBSD 3.8, AIX 5.1, HP-UX 11, - dnl IRIX 6.5, Solaris 9, Cygwin, the pthread_rwlock_timed*lock functions - dnl don't exist, although the other pthread_rwlock* functions exist. + dnl Solaris 9, Cygwin, the pthread_rwlock_timed*lock functions don't + dnl exist, although the other pthread_rwlock* functions exist. AC_CHECK_DECL([pthread_rwlock_timedrdlock], , [HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=0 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=0 diff --git a/m4/semaphore.m4 b/m4/semaphore.m4 index 1dd437a790..a5d278f6fa 100644 --- a/m4/semaphore.m4 +++ b/m4/semaphore.m4 @@ -1,5 +1,5 @@ # semaphore.m4 -# serial 3 +# serial 4 dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -13,7 +13,7 @@ AC_DEFUN([gl_SEMAPHORE], [ AC_REQUIRE([gl_THREADLIB]) dnl sem_post is - dnl - in libc on macOS, FreeBSD, AIX, IRIX, Solaris 11, Haiku, Cygwin, + dnl - in libc on macOS, FreeBSD, AIX, Solaris 11, Haiku, Cygwin, dnl - in libpthread on glibc systems, OpenBSD, dnl - in libpthread or librt on NetBSD, dnl - in librt on HP-UX 11, Solaris 10. diff --git a/m4/socklen.m4 b/m4/socklen.m4 index 9251dccf2e..a4d49bfdc0 100644 --- a/m4/socklen.m4 +++ b/m4/socklen.m4 @@ -1,5 +1,5 @@ # socklen.m4 -# serial 12 +# serial 13 dnl Copyright (C) 2005-2007, 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,7 +11,7 @@ dnl From Albert Chin, Windows fixes from Simon Josefsson. dnl Check for socklen_t: historically on BSD it is an int, and in dnl POSIX 1g it is a type of its own, but some platforms use different dnl types for the argument to getsockopt, getpeername, etc.: -dnl HP-UX 10.20, IRIX 6.5, Interix 3.5, BeOS. +dnl HP-UX 10.20, Interix 3.5, BeOS. dnl So we have to test to find something that will work. AC_DEFUN([gl_TYPE_SOCKLEN_T], diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 2d69088b67..5a289e6df4 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,5 +1,5 @@ # stdint.m4 -# serial 64 +# serial 65 dnl Copyright (C) 2001-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -391,9 +391,9 @@ AC_DEFUN([gl_STDINT_BITSIZEOF], ]) eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then - dnl Use a nonempty default, because some compilers, such as IRIX 5 cc, - dnl do a syntax check even on unused #if conditions and give an error - dnl on valid C code like this: + dnl Use a nonempty default, because some old compilers do a syntax check + dnl even on unused #if conditions and give an error on valid C code like + dnl this: dnl #if 0 dnl # if > 32 dnl # endif diff --git a/m4/strtod.m4 b/m4/strtod.m4 index ed93927ea5..0c804cd99c 100644 --- a/m4/strtod.m4 +++ b/m4/strtod.m4 @@ -1,5 +1,5 @@ # strtod.m4 -# serial 31 +# serial 32 dnl Copyright (C) 2002-2003, 2006-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,8 +29,7 @@ AC_DEFUN([gl_FUNC_STRTOD], #include #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (double x, double y) { diff --git a/m4/strtof.m4 b/m4/strtof.m4 index f8284d4c94..76f40c3d2c 100644 --- a/m4/strtof.m4 +++ b/m4/strtof.m4 @@ -1,5 +1,5 @@ # strtof.m4 -# serial 4 +# serial 5 dnl Copyright (C) 2002-2003, 2006-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,8 +29,7 @@ AC_DEFUN([gl_FUNC_STRTOF], #include #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (float x, float y) { diff --git a/m4/strtold.m4 b/m4/strtold.m4 index f773fc5701..0d505b4f18 100644 --- a/m4/strtold.m4 +++ b/m4/strtold.m4 @@ -1,5 +1,5 @@ # strtold.m4 -# serial 10 +# serial 11 dnl Copyright (C) 2002-2003, 2006-2025 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,7 @@ AC_DEFUN([gl_FUNC_STRTOLD], #include #include /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equal (long double x, long double y) { @@ -51,7 +50,7 @@ numeric_equal (long double x, long double y) result |= 2; } { - /* IRIX 6.5, mingw do not parse hex floats. */ + /* mingw does not parse hex floats. */ const char *string = "0XaP+1"; char *term; long double value = strtold (string, &term); @@ -59,8 +58,7 @@ numeric_equal (long double x, long double y) result |= 4; } { - /* IRIX 6.5 does not parse infinities. HP-UX 11.31/ia64 parses inf, - but mistakenly sets errno. */ + /* HP-UX 11.31/ia64 parses inf, but mistakenly sets errno. */ const char *string = "inf"; char *term; long double value; @@ -70,7 +68,7 @@ numeric_equal (long double x, long double y) result |= 8; } { - /* glibc-2.3.2, IRIX 6.5, mingw, Haiku misparse "nan()". */ + /* glibc-2.3.2, mingw, Haiku misparse "nan()". */ const char *string = "nan()"; char *term; long double value = strtold (string, &term); @@ -78,7 +76,7 @@ numeric_equal (long double x, long double y) result |= 16; } { - /* Mac OS X 10.5, IRIX 6.5 misparse "nan(". */ + /* Mac OS X 10.5 misparses "nan(". */ const char *string = "nan("; char *term; long double value = strtold (string, &term); diff --git a/modules/sigsegv b/modules/sigsegv index d33e77b787..62b17a4efa 100644 --- a/modules/sigsegv +++ b/modules/sigsegv @@ -4,10 +4,10 @@ It implements the most important features of GNU libsigsegv: catching SIGSEGV and catching stack overflow. It does *not* implement the 'sigsegv_dispatcher' type (which is not multithread-safe). It supports all modern Unix-like platforms: Linux, Hurd, FreeBSD, NetBSD, -OpenBSD, macOS, AIX, Solaris, Cygwin, Haiku, even IRIX. It does *not* support -HP-UX, Minix, native Windows; on these platforms the module compiles and -provides a header file, but it does not define HAVE_SIGSEGV_RECOVERY -and HAVE_STACK_OVERFLOW_RECOVERY. +OpenBSD, macOS, AIX, Solaris, Cygwin, Haiku. It does *not* support HP-UX, Minix, +native Windows; on these platforms the module compiles and provides a + header file, but it does not define HAVE_SIGSEGV_RECOVERY and +HAVE_STACK_OVERFLOW_RECOVERY. Unlike GNU libsigsegv, which consists of many .h and .c files, this module compiles to just two object files, rather than a library. diff --git a/posix-modules b/posix-modules index 9b534d280e..505d33d266 100755 --- a/posix-modules +++ b/posix-modules @@ -79,8 +79,6 @@ func_gnulib_dir () # according to IFS=: loses empty fields in many shells: # - /bin/sh on Solaris loses all empty fields (at the beginning, at # the end, and in the middle), - # - /bin/sh on IRIX and /bin/ksh on IRIX lose empty fields at the - # beginning and at the end, # - GNU bash, /bin/sh on AIX and HP-UX, and /bin/ksh on AIX, HP-UX, # Solaris lose empty fields at the end. # The 'case' statement is an optimization, to avoid evaluating the diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 9344c8fa9d..a0f5ec0f5e 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -358,8 +358,7 @@ class GLImport: # Emacs puts some gnulib-tool log lines in its source repository, and # git send-email rejects patch lines longer than 998 characters. # Also, config.status uses awk, and the HP-UX 11.00 awk fails if a - # line has length >= 3071; similarly, the IRIX 6.5 awk fails if a - # line has length >= 3072. + # line has length >= 3071. if len(localpath) > 0: actioncmd += ''.join([f' \\\n# --local-dir={x}' for x in localpath]) actioncmd += ' \\\n# --lib=%s' % libname diff --git a/tests/init.sh b/tests/init.sh index def831af05..2058822627 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -411,7 +411,7 @@ setup_ () if test "$VERBOSE" = yes; then # Test whether set -x may cause the selected shell to corrupt an # application's stderr. Many do, including zsh-4.3.10 and the /bin/sh - # from SunOS 5.11, OpenBSD 4.7 and Irix 6.5. + # from SunOS 5.11 and OpenBSD 4.7. # If enabling verbose output this way would cause trouble, simply # issue a warning and refrain. if $gl_set_x_corrupts_stderr_; then diff --git a/tests/test-echo.sh b/tests/test-echo.sh index 17b87ee877..6bff54092c 100755 --- a/tests/test-echo.sh +++ b/tests/test-echo.sh @@ -28,7 +28,7 @@ func_fatal_error () # or when it was built with DEFAULT_ECHO_TO_USG (bash < 2.0), # - in zsh, when sh-emulation is not set, # - in ksh (e.g. AIX /bin/sh and Solaris /usr/xpg4/bin/sh are ksh instances, -# and HP-UX /bin/sh and IRIX /bin/sh behave similarly), +# and HP-UX /bin/sh behaves similarly), # - in Solaris /bin/sh. # We try the following workarounds: # - for all: respawn using $CONFIG_SHELL if that is set and works. diff --git a/tests/test-isatty.c b/tests/test-isatty.c index 73696690af..10219bf1b3 100644 --- a/tests/test-isatty.c +++ b/tests/test-isatty.c @@ -45,7 +45,7 @@ main (void) errno = 0; ASSERT (isatty (-1) == 0); ASSERT (errno == EBADF - || errno == 0 /* seen on IRIX 6.5, Solaris 10 */ + || errno == 0 /* seen on Solaris 10 */ ); } { @@ -53,7 +53,7 @@ main (void) errno = 0; ASSERT (isatty (99) == 0); ASSERT (errno == EBADF - || errno == 0 /* seen on IRIX 6.5, Solaris 10 */ + || errno == 0 /* seen on Solaris 10 */ ); } #ifdef AT_FDCWD @@ -61,7 +61,7 @@ main (void) errno = 0; ASSERT (isatty (AT_FDCWD) == 0); ASSERT (errno == EBADF - || errno == 0 /* seen on IRIX 6.5, Solaris 10 */ + || errno == 0 /* seen on Solaris 10 */ ); } #endif diff --git a/tests/test-math-h.c b/tests/test-math-h.c index 5a9c1f491e..4a878bb3e9 100644 --- a/tests/test-math-h.c +++ b/tests/test-math-h.c @@ -75,8 +75,7 @@ long double hl = HUGE_VALL; #include "macros.h" /* Compare two numbers with ==. - This is a separate function because IRIX 6.5 "cc -O" miscompiles an - 'x == x' test. */ + This is a separate function in order to disable compiler optimizations. */ static int numeric_equalf (float x, float y) { diff --git a/tests/test-nonblocking-pipe.h b/tests/test-nonblocking-pipe.h index 7015d91668..95b8c48f1e 100644 --- a/tests/test-nonblocking-pipe.h +++ b/tests/test-nonblocking-pipe.h @@ -27,7 +27,6 @@ FreeBSD, OpenBSD, Mac OS X >= 65537 AIX >= 32769 HP-UX >= 8193 - IRIX >= 10241 Solaris <= 7 >= 10241 Solaris >= 8 >= 20481 z/OS >= 131073 diff --git a/tests/test-nonblocking-socket.h b/tests/test-nonblocking-socket.h index a46a53b1e0..a077c732b5 100644 --- a/tests/test-nonblocking-socket.h +++ b/tests/test-nonblocking-socket.h @@ -28,7 +28,6 @@ AIX 5.1 >= 125713 AIX 7.1 >= 200000 (depends on circumstances) HP-UX >= 114689 - IRIX >= 61089 Solaris 7 >= 63000 (depends on circumstances) Solaris 8 >= 49153 Solaris 9 >= 73729 diff --git a/tests/test-strtod.h b/tests/test-strtod.h index e29c9b1d83..3a02408dd2 100644 --- a/tests/test-strtod.h +++ b/tests/test-strtod.h @@ -72,7 +72,7 @@ test_function (double (*my_strtod) (const char *, char **)) result = my_strtod (input, &ptr); ASSERT (result == 0.0); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -83,7 +83,7 @@ test_function (double (*my_strtod) (const char *, char **)) result = my_strtod (input, &ptr); ASSERT (result == 0.0); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -284,7 +284,7 @@ test_function (double (*my_strtod) (const char *, char **)) errno = 0; result = my_strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (minus_zerod)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerod)); ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -346,8 +346,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* HP-UX 11.11, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.11, IRIX 6.5 */ + ASSERT (result == 1.0); /* HP-UX 11.11 */ + ASSERT (ptr == input + 1); /* HP-UX 11.11 */ ASSERT (errno == 0); } { @@ -379,7 +379,7 @@ test_function (double (*my_strtod) (const char *, char **)) errno = 0; result = my_strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (minus_zerod)); /* Mac OS X 10.3, FreeBSD 6.2, IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerod)); /* Mac OS X 10.3, FreeBSD 6.2 */ ASSERT (ptr == input + 2); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, AIX 7.1 */ ASSERT (errno == 0); } @@ -580,8 +580,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* HP-UX 11.11, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.11, IRIX 6.5 */ + ASSERT (result == 1.0); /* HP-UX 11.11 */ + ASSERT (ptr == input + 1); /* HP-UX 11.11 */ ASSERT (errno == 0); } { @@ -590,8 +590,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } @@ -602,8 +602,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -612,8 +612,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == -HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 4); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == -HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 4); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -622,8 +622,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (errno == 0); } { @@ -632,8 +632,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -642,8 +642,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (errno == 0); } @@ -659,15 +659,15 @@ test_function (double (*my_strtod) (const char *, char **)) result1 = my_strtod (input, &ptr1); result2 = my_strtod (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnand (result1)); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (isnand (result2)); /* OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (isnand (result1)); /* OpenBSD 4.0, mingw */ + ASSERT (isnand (result2)); /* OpenBSD 4.0, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, IRIX 6.5, Solaris 2.5.1, mingw */ - ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, IRIX 6.5, Solaris 2.5.1, mingw */ + ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, Solaris 2.5.1, mingw */ + ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, Solaris 2.5.1, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ #else ASSERT (result1 == 0.0); @@ -689,11 +689,11 @@ test_function (double (*my_strtod) (const char *, char **)) result1 = my_strtod (input, &ptr1); result2 = my_strtod (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (!!signbit (result1) == !!signbit (result2)); - ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, Solaris 2.5.1, mingw */ - ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, Solaris 2.5.1, mingw */ + ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, Solaris 2.5.1, mingw */ + ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, Solaris 2.5.1, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0); @@ -715,15 +715,15 @@ test_function (double (*my_strtod) (const char *, char **)) result1 = my_strtod (input, &ptr1); result2 = my_strtod (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr2 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (ptr1 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ + ASSERT (ptr2 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0); @@ -742,8 +742,8 @@ test_function (double (*my_strtod) (const char *, char **)) errno = 0; result = my_strtod (input, &ptr); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnand (result)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnand (result)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result == 0.0); @@ -765,15 +765,15 @@ test_function (double (*my_strtod) (const char *, char **)) result1 = my_strtod (input, &ptr1); result2 = my_strtod (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnand (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnand (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr2 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (ptr1 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ + ASSERT (ptr2 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0); @@ -793,8 +793,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 10.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 10.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -803,8 +803,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 10.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 10.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -813,8 +813,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -823,8 +823,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -833,8 +833,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -843,8 +843,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -853,8 +853,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -863,8 +863,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -873,8 +873,8 @@ test_function (double (*my_strtod) (const char *, char **)) double result; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } @@ -939,9 +939,9 @@ test_function (double (*my_strtod) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (result == 1.0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ } free (input); } @@ -965,9 +965,9 @@ test_function (double (*my_strtod) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtod (input, &ptr); - ASSERT (result == 1.0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (result == 1.0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ } free (input); } @@ -988,7 +988,7 @@ test_function (double (*my_strtod) (const char *, char **)) errno = 0; result = my_strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (minus_zerod)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerod)); ASSERT (ptr == input + m); ASSERT (errno == 0); } diff --git a/tests/test-strtof.h b/tests/test-strtof.h index 03ddb7c059..3e890f6bfb 100644 --- a/tests/test-strtof.h +++ b/tests/test-strtof.h @@ -72,7 +72,7 @@ test_function (float (*my_strtof) (const char *, char **)) result = my_strtof (input, &ptr); ASSERT (result == 0.0f); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -83,7 +83,7 @@ test_function (float (*my_strtof) (const char *, char **)) result = my_strtof (input, &ptr); ASSERT (result == 0.0f); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -284,7 +284,7 @@ test_function (float (*my_strtof) (const char *, char **)) errno = 0; result = my_strtof (input, &ptr); ASSERT (result == 0.0f); - ASSERT (!!signbit (result) == !!signbit (minus_zerof)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerof)); ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -346,8 +346,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* HP-UX 11.11, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.11, IRIX 6.5 */ + ASSERT (result == 1.0f); /* HP-UX 11.11 */ + ASSERT (ptr == input + 1); /* HP-UX 11.11 */ ASSERT (errno == 0); } { @@ -379,7 +379,7 @@ test_function (float (*my_strtof) (const char *, char **)) errno = 0; result = my_strtof (input, &ptr); ASSERT (result == 0.0f); - ASSERT (!!signbit (result) == !!signbit (minus_zerof)); /* Mac OS X 10.3, FreeBSD 6.2, IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerof)); /* Mac OS X 10.3, FreeBSD 6.2 */ ASSERT (ptr == input + 2); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, AIX 7.1 */ ASSERT (errno == 0); } @@ -580,8 +580,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* HP-UX 11.11, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.11, IRIX 6.5 */ + ASSERT (result == 1.0f); /* HP-UX 11.11 */ + ASSERT (ptr == input + 1); /* HP-UX 11.11 */ ASSERT (errno == 0); } { @@ -590,8 +590,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } @@ -602,8 +602,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -612,8 +612,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == -HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 4); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == -HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 4); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -622,8 +622,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 3); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (errno == 0); } { @@ -632,8 +632,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.00, IRIX 6.5, Solaris 9, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, mingw */ + ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.00, Solaris 9, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ } { @@ -642,8 +642,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (result == HUGE_VAL); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 8); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (errno == 0); } @@ -659,15 +659,15 @@ test_function (float (*my_strtof) (const char *, char **)) result1 = my_strtof (input, &ptr1); result2 = my_strtof (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanf (result1)); /* OpenBSD 4.0, IRIX 6.5, mingw */ - ASSERT (isnanf (result2)); /* OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (isnanf (result1)); /* OpenBSD 4.0, mingw */ + ASSERT (isnanf (result2)); /* OpenBSD 4.0, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, IRIX 6.5, Solaris 2.5.1, mingw */ - ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, IRIX 6.5, Solaris 2.5.1, mingw */ + ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, Solaris 2.5.1, mingw */ + ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, Solaris 2.5.1, mingw */ ASSERT (errno == 0); /* HP-UX 11.11 */ #else ASSERT (result1 == 0.0f); @@ -689,11 +689,11 @@ test_function (float (*my_strtof) (const char *, char **)) result1 = my_strtof (input, &ptr1); result2 = my_strtof (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ ASSERT (!!signbit (result1) == !!signbit (result2)); - ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, Solaris 2.5.1, mingw */ - ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, Solaris 2.5.1, mingw */ + ASSERT (ptr1 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, Solaris 2.5.1, mingw */ + ASSERT (ptr2 == input + 4); /* OpenBSD 4.0, HP-UX 11.11, Solaris 2.5.1, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0f); @@ -715,15 +715,15 @@ test_function (float (*my_strtof) (const char *, char **)) result1 = my_strtof (input, &ptr1); result2 = my_strtof (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr2 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (ptr1 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ + ASSERT (ptr2 == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0f); @@ -742,8 +742,8 @@ test_function (float (*my_strtof) (const char *, char **)) errno = 0; result = my_strtof (input, &ptr); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanf (result)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnanf (result)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (ptr == input + 6); /* glibc-2.3.6, Mac OS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result == 0.0f); @@ -765,15 +765,15 @@ test_function (float (*my_strtof) (const char *, char **)) result1 = my_strtof (input, &ptr1); result2 = my_strtof (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (isnanf (result1)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ + ASSERT (isnanf (result2)); /* OpenBSD 4.0, HP-UX 11.11, mingw */ # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, IRIX 6.5, mingw */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.6, mingw */ # endif - ASSERT (ptr1 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ - ASSERT (ptr2 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, mingw */ + ASSERT (ptr1 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ + ASSERT (ptr2 == input + 7); /* glibc-2.3.6, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, mingw */ ASSERT (errno == 0); #else ASSERT (result1 == 0.0f); @@ -793,8 +793,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 10.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 10.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -803,8 +803,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 10.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 10.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -813,8 +813,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -823,8 +823,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -833,8 +833,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -843,8 +843,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -853,8 +853,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -863,8 +863,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 2.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 6); /* NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } { @@ -873,8 +873,8 @@ test_function (float (*my_strtof) (const char *, char **)) float result; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ - ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, Solaris 10, mingw */ + ASSERT (result == 1.0f); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ + ASSERT (ptr == input + 3); /* NetBSD 3.0, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, Solaris 10, mingw */ ASSERT (errno == 0); } @@ -939,9 +939,9 @@ test_function (float (*my_strtof) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (result == 1.0f); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ } free (input); } @@ -965,9 +965,9 @@ test_function (float (*my_strtof) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtof (input, &ptr); - ASSERT (result == 1.0f); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (result == 1.0f); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, mingw */ } free (input); } @@ -988,7 +988,7 @@ test_function (float (*my_strtof) (const char *, char **)) errno = 0; result = my_strtof (input, &ptr); ASSERT (result == 0.0f); - ASSERT (!!signbit (result) == !!signbit (minus_zerof)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerof)); ASSERT (ptr == input + m); ASSERT (errno == 0); } diff --git a/tests/test-strtold.h b/tests/test-strtold.h index 37f537fa83..d8f7ae4202 100644 --- a/tests/test-strtold.h +++ b/tests/test-strtold.h @@ -72,7 +72,7 @@ test_function (long double (*my_strtold) (const char *, char **)) result = my_strtold (input, &ptr); ASSERT (result == 0.0L); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -83,7 +83,7 @@ test_function (long double (*my_strtold) (const char *, char **)) result = my_strtold (input, &ptr); ASSERT (result == 0.0L); ASSERT (!signbit (result)); - ASSERT (ptr == input); /* IRIX 6.5 */ + ASSERT (ptr == input); ASSERT (errno == 0 || errno == EINVAL); } { @@ -284,7 +284,7 @@ test_function (long double (*my_strtold) (const char *, char **)) errno = 0; result = my_strtold (input, &ptr); ASSERT (result == 0.0L); - ASSERT (!!signbit (result) == !!signbit (minus_zerol)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerol)); ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -346,8 +346,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.31/ia64, IRIX 6.5 */ + ASSERT (result == 1.0L); /* HP-UX 11.31/ia64 */ + ASSERT (ptr == input + 1); /* HP-UX 11.31/ia64 */ ASSERT (errno == 0); } { @@ -379,7 +379,7 @@ test_function (long double (*my_strtold) (const char *, char **)) errno = 0; result = my_strtold (input, &ptr); ASSERT (result == 0.0L); - ASSERT (!!signbit (result) == !!signbit (minus_zerol)); /* Mac OS X 10.5, IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerol)); /* Mac OS X 10.5 */ ASSERT (ptr == input + 2); /* glibc-2.3.2, Mac OS X 10.5, Haiku */ ASSERT (errno == 0); } @@ -588,9 +588,9 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, IRIX 6.5 */ - ASSERT (ptr == input + 1); /* HP-UX 11.31/ia64, IRIX 6.5 */ - ASSERT (errno == 0); /* HP-UX 11.31/ia64, IRIX 6.5 */ + ASSERT (result == 1.0L); /* HP-UX 11.31/ia64 */ + ASSERT (ptr == input + 1); /* HP-UX 11.31/ia64 */ + ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } { const char input[] = "0x1P 1000000"; @@ -598,8 +598,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* HP-UX 11.31/ia64, IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, mingw */ + ASSERT (ptr == input + 3); /* HP-UX 11.31/ia64, mingw */ ASSERT (errno == 0); } @@ -610,8 +610,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == HUGE_VALL); /* IRIX 6.5 */ - ASSERT (ptr == input + 3); /* IRIX 6.5 */ + ASSERT (result == HUGE_VALL); + ASSERT (ptr == input + 3); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } { @@ -620,8 +620,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == -HUGE_VALL); /* IRIX 6.5 */ - ASSERT (ptr == input + 4); /* IRIX 6.5 */ + ASSERT (result == -HUGE_VALL); + ASSERT (ptr == input + 4); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } { @@ -630,8 +630,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == HUGE_VALL); /* IRIX 6.5 */ - ASSERT (ptr == input + 3); /* IRIX 6.5 */ + ASSERT (result == HUGE_VALL); + ASSERT (ptr == input + 3); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } { @@ -640,8 +640,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == HUGE_VALL); /* IRIX 6.5 */ - ASSERT (ptr == input + 8); /* IRIX 6.5 */ + ASSERT (result == HUGE_VALL); + ASSERT (ptr == input + 8); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } { @@ -650,8 +650,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == HUGE_VALL); /* IRIX 6.5 */ - ASSERT (ptr == input + 8); /* IRIX 6.5 */ + ASSERT (result == HUGE_VALL); + ASSERT (ptr == input + 8); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ } @@ -667,15 +667,15 @@ test_function (long double (*my_strtold) (const char *, char **)) result1 = my_strtold (input, &ptr1); result2 = my_strtold (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanl (result1)); /* IRIX 6.5 */ - ASSERT (isnanl (result2)); /* IRIX 6.5 */ + ASSERT (isnanl (result1)); + ASSERT (isnanl (result2)); # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ ASSERT (!!signbit (result1) != !!signbit (result2)); # endif - ASSERT (ptr1 == input + 4); /* IRIX 6.5 */ - ASSERT (ptr2 == input + 4); /* IRIX 6.5 */ + ASSERT (ptr1 == input + 4); + ASSERT (ptr2 == input + 4); ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ #else ASSERT (result1 == 0.0L); @@ -697,11 +697,11 @@ test_function (long double (*my_strtold) (const char *, char **)) result1 = my_strtold (input, &ptr1); result2 = my_strtold (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanl (result1)); /* IRIX 6.5 */ - ASSERT (isnanl (result2)); /* IRIX 6.5 */ + ASSERT (isnanl (result1)); + ASSERT (isnanl (result2)); ASSERT (!!signbit (result1) == !!signbit (result2)); - ASSERT (ptr1 == input + 4); /* Mac OS X 10.5, IRIX 6.5 */ - ASSERT (ptr2 == input + 4); /* Mac OS X 10.5, IRIX 6.5 */ + ASSERT (ptr1 == input + 4); /* Mac OS X 10.5 */ + ASSERT (ptr2 == input + 4); /* Mac OS X 10.5 */ ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ #else ASSERT (result1 == 0.0L); @@ -723,15 +723,15 @@ test_function (long double (*my_strtold) (const char *, char **)) result1 = my_strtold (input, &ptr1); result2 = my_strtold (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanl (result1)); /* IRIX 6.5 */ - ASSERT (isnanl (result2)); /* IRIX 6.5 */ + ASSERT (isnanl (result1)); + ASSERT (isnanl (result2)); # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ - ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.2, musl libc, OpenBSD 6.0, IRIX 6.5, mingw, Haiku */ + ASSERT (!!signbit (result1) != !!signbit (result2)); /* glibc-2.3.2, musl libc, OpenBSD 6.0, mingw, Haiku */ # endif - ASSERT (ptr1 == input + 6); /* glibc-2.3.2, IRIX 6.5, mingw, Haiku */ - ASSERT (ptr2 == input + 6); /* glibc-2.3.2, IRIX 6.5, mingw, Haiku */ + ASSERT (ptr1 == input + 6); /* glibc-2.3.2, mingw, Haiku */ + ASSERT (ptr2 == input + 6); /* glibc-2.3.2, mingw, Haiku */ ASSERT (errno == 0); /* HP-UX 11.31/ia64, Haiku */ #else ASSERT (result1 == 0.0L); @@ -750,8 +750,8 @@ test_function (long double (*my_strtold) (const char *, char **)) errno = 0; result = my_strtold (input, &ptr); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanl (result)); /* IRIX 6.5 */ - ASSERT (ptr == input + 6); /* glibc-2.3.2, IRIX 6.5, mingw, Haiku */ + ASSERT (isnanl (result)); + ASSERT (ptr == input + 6); /* glibc-2.3.2, mingw, Haiku */ ASSERT (errno == 0); /* HP-UX 11.31/ia64, Haiku */ #else ASSERT (result == 0.0L); @@ -773,15 +773,15 @@ test_function (long double (*my_strtold) (const char *, char **)) result1 = my_strtold (input, &ptr1); result2 = my_strtold (input + 1, &ptr2); #if 1 /* All known CPUs support NaNs. */ - ASSERT (isnanl (result1)); /* IRIX 6.5 */ - ASSERT (isnanl (result2)); /* IRIX 6.5 */ + ASSERT (isnanl (result1)); + ASSERT (isnanl (result2)); # if 0 /* Sign bits of NaN is a portability sticking point, not worth worrying about. */ ASSERT (!!signbit (result1) != !!signbit (result2)); # endif - ASSERT (ptr1 == input + 7); /* glibc-2.3.2, IRIX 6.5, mingw, Haiku */ - ASSERT (ptr2 == input + 7); /* glibc-2.3.2, IRIX 6.5, mingw, Haiku */ + ASSERT (ptr1 == input + 7); /* glibc-2.3.2, mingw, Haiku */ + ASSERT (ptr2 == input + 7); /* glibc-2.3.2, mingw, Haiku */ ASSERT (errno == 0); /* HP-UX 11.31/ia64 */ #else ASSERT (result1 == 0.0L); @@ -801,8 +801,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 10.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* IRIX 6.5, mingw */ + ASSERT (result == 10.0L); /* mingw */ + ASSERT (ptr == input + 3); /* mingw */ ASSERT (errno == 0); } { @@ -811,8 +811,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 10.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* IRIX 6.5, mingw */ + ASSERT (result == 10.0L); /* mingw */ + ASSERT (ptr == input + 3); /* mingw */ ASSERT (errno == 0); } { @@ -821,8 +821,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* mingw */ + ASSERT (ptr == input + 3); /* mingw */ ASSERT (errno == 0); } { @@ -831,8 +831,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* mingw */ + ASSERT (ptr == input + 3); /* mingw */ ASSERT (errno == 0); } { @@ -841,8 +841,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* mingw */ + ASSERT (ptr == input + 3); /* mingw */ ASSERT (errno == 0); } { @@ -851,8 +851,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 2.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 6); /* IRIX 6.5, mingw */ + ASSERT (result == 2.0L); /* mingw */ + ASSERT (ptr == input + 6); /* mingw */ ASSERT (errno == 0); } { @@ -861,8 +861,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 2.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 6); /* IRIX 6.5, mingw */ + ASSERT (result == 2.0L); /* mingw */ + ASSERT (ptr == input + 6); /* mingw */ ASSERT (errno == 0); } { @@ -871,8 +871,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 2.0L); /* IRIX 6.5, mingw */ - ASSERT (ptr == input + 6); /* IRIX 6.5, mingw */ + ASSERT (result == 2.0L); /* mingw */ + ASSERT (ptr == input + 6); /* mingw */ ASSERT (errno == 0); } { @@ -881,8 +881,8 @@ test_function (long double (*my_strtold) (const char *, char **)) long double result; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, IRIX 6.5, mingw */ - ASSERT (ptr == input + 3); /* HP-UX 11.31/ia64, IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* HP-UX 11.31/ia64, mingw */ + ASSERT (ptr == input + 3); /* HP-UX 11.31/ia64, mingw */ ASSERT (errno == 0); } @@ -947,9 +947,9 @@ test_function (long double (*my_strtold) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, mingw */ } free (input); } @@ -973,9 +973,9 @@ test_function (long double (*my_strtold) (const char *, char **)) input[m] = '\0'; errno = 0; result = my_strtold (input, &ptr); - ASSERT (result == 1.0L); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, IRIX 6.5, mingw */ + ASSERT (result == 1.0L); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, mingw */ ASSERT (ptr == input + m); - ASSERT (errno == 0); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, IRIX 6.5, mingw */ + ASSERT (errno == 0); /* Mac OS X 10.5, FreeBSD 11.0, NetBSD 7.1, OpenBSD 6.0, Minix 3.3, mingw */ } free (input); } @@ -996,7 +996,7 @@ test_function (long double (*my_strtold) (const char *, char **)) errno = 0; result = my_strtold (input, &ptr); ASSERT (result == 0.0L); - ASSERT (!!signbit (result) == !!signbit (minus_zerol)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (minus_zerol)); ASSERT (ptr == input + m); ASSERT (errno == 0); } diff --git a/tests/test-vasnprintf.c b/tests/test-vasnprintf.c index d5c62baf62..1e5c2b6e7d 100644 --- a/tests/test-vasnprintf.c +++ b/tests/test-vasnprintf.c @@ -75,7 +75,7 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...)) 163141592653589790215729350939528493057529598899734151772468186268423257777068536614838678161083520756952076273094236944990208 On Cygwin, the result is 163141592653589790215729350939528493057529600000000000000000000000000000000000000000000000000000000000000000000000000000000000 - On HP-UX 11.31 / hppa and IRIX 6.5, the result is + On HP-UX 11.31 / hppa, the result is 163141592653589790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 */ ASSERT (strlen (result) == 126); diff --git a/tests/test-vasnwprintf.c b/tests/test-vasnwprintf.c index 1f54aca592..70a7ce1587 100644 --- a/tests/test-vasnwprintf.c +++ b/tests/test-vasnwprintf.c @@ -76,7 +76,7 @@ test_function (wchar_t * (*my_asnwprintf) (wchar_t *, size_t *, const wchar_t *, 163141592653589790215729350939528493057529598899734151772468186268423257777068536614838678161083520756952076273094236944990208 On Cygwin, the result is 163141592653589790215729350939528493057529600000000000000000000000000000000000000000000000000000000000000000000000000000000000 - On HP-UX 11.31 / hppa and IRIX 6.5, the result is + On HP-UX 11.31 / hppa, the result is 163141592653589790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 */ ASSERT (wcslen (result) == 126);