* 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.
2025-09-10 Bruno Haible <bruno@clisp.org>
+ 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.
# 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
-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 \
;;
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
# 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
# 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
# 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
# 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.
# 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"
return NULL;
}
-# elif HAVE_MEMALIGN /* HP-UX, IRIX, Solaris <= 10 */
+# elif HAVE_MEMALIGN /* HP-UX, Solaris <= 10 */
/* Use memalign. */
static inline
/* 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
/* 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)
see <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html>.
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
/* 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)
/* 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 ();
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
{
#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);
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. */
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 <ieeefp.h>
}
# 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 <ieeefp.h>
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 <ieeefp.h>
}
# 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 <ieeefp.h>
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 <ieeefp.h>
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 <ieeefp.h>
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 <ieeefp.h>
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);
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 */
(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 <pty.h>
# include <unistd.h>
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);
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;
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;
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;
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
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;
#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 */
#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 */
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;
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;
fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_fsize);
-#elif defined STAT_STATFS4 /* SVR3, old Irix */
+#elif defined STAT_STATFS4 /* SVR3 */
struct statfs fsd;
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;
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;
#include <string.h>
#include <errno.h>
-#if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H /* IRIX, Solaris */
+#if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H /* Solaris */
# include <sys/systeminfo.h>
#endif
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)
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 */
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 */
# 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
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
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
# 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
#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)
#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__
#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)
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) \
# 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. */
see <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html>.
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
see <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html>.
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
return ret;
}
-#elif HAVE_PTHREAD_API /* AIX, IRIX, Cygwin */
+#elif HAVE_PTHREAD_API /* AIX, Cygwin */
extern
# if defined _WIN32 || defined __CYGWIN__
# 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
#define _MINMAX_H
/* Note: MIN, MAX are also defined in <sys/param.h> 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. */
#error "Please include config.h first."
#endif
-/* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and
- 'struct hostent' on MinGW. */
+/* Get <netdb.h> definitions such as 'socklen_t' and 'struct hostent'
+ on MinGW. */
#include <sys/socket.h>
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
write() call may fail with EAGAIN, simply because sufficient
space is not available in the pipe. See POSIX:2008
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html>.
- 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 =
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.
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);
# 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;
# 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
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
# 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)
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
# 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
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);
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. */
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. */
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)
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
}
# 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)
}
# 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)
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
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
*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)
/* 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
}
# 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)
/* API provided by
- GNU ncurses in <term.h>, <curses.h>, <ncurses.h>,
- - Solaris, AIX, HP-UX, IRIX curses in <term.h>,
+ - Solaris, AIX, HP-UX curses in <term.h>,
- gnulib's replacement. */
/* Instantiates a string capability with format strings.
/* API provided by
- GNU ncurses in <term.h>, <curses.h>, <ncurses.h>,
- - Solaris, AIX, HP-UX, IRIX curses in <term.h>,
+ - Solaris, AIX, HP-UX curses in <term.h>,
- gnulib's replacement. */
/* Instantiates a string capability with format strings.
(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
# 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
|| (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
))
on musl libc because we would run into an swprintf() bug.
See <https://www.openwall.com/lists/musl/2023/03/19/1>. */
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';
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)
# 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. */
see <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html>.
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
# 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,
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
# 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,
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
# 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,
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
# 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,
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
# 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,
]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)
{
# 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,
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 <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
# 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
fi
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
-# uses stabs), but it is still SVR4. We cannot check for <elf.h> 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
# 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,
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,
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[] = "-+";
}
/* 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";
# 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,
#endif
#include <math.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_equal (double x, double y)
{
# 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,
#endif
#include <math.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_equal (float x, float y)
{
# 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,
#endif
#include <math.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_equal (long double x, long double y)
{
# 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
{
/* 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");
# 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,
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
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],
[
# 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,
*)
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,
# 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,
[
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],
# 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,
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
# 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,
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(
# 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,
#endif
#include <math.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_equal (double x, double y)
{
# 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,
#endif
#include <math.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_equal (double x, double y)
{
# 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,
#endif
#include <math.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_equal (float x, float y)
{
# 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,
#endif
#include <math.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_equal (float x, float y)
{
# 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,
]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)
{
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;
# 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,
]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)
{
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;
# 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,
]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)
{
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;
# 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,
[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
# 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,
[
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.
# 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,
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],
# 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,
])
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
# 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,
#include <math.h>
#include <errno.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_equal (double x, double y)
{
# 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,
#include <math.h>
#include <errno.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_equal (float x, float y)
{
# 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,
#include <errno.h>
#include <string.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_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);
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;
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);
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);
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 <sigsegv.h> 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
+<sigsegv.h> 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.
# 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
# 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
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
# 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.
errno = 0;
ASSERT (isatty (-1) == 0);
ASSERT (errno == EBADF
- || errno == 0 /* seen on IRIX 6.5, Solaris 10 */
+ || errno == 0 /* seen on Solaris 10 */
);
}
{
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
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
#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)
{
FreeBSD, OpenBSD, Mac OS X >= 65537
AIX >= 32769
HP-UX >= 8193
- IRIX >= 10241
Solaris <= 7 >= 10241
Solaris >= 8 >= 20481
z/OS >= 131073
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
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);
}
{
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);
}
{
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);
}
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);
}
{
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);
}
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);
}
{
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);
}
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 */
}
{
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 */
}
{
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);
}
{
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 */
}
{
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);
}
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);
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);
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);
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);
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);
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
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);
}
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);
}
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);
}
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);
}
{
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);
}
{
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);
}
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);
}
{
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);
}
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);
}
{
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);
}
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 */
}
{
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 */
}
{
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);
}
{
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 */
}
{
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);
}
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);
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);
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);
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);
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);
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
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);
}
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);
}
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);
}
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);
}
{
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);
}
{
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);
}
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);
}
{
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);
}
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";
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);
}
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 */
}
{
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 */
}
{
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 */
}
{
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 */
}
{
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 */
}
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);
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);
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);
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);
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);
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
{
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);
}
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);
}
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);
}
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);
}
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);
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);