Mercurial > hg > octave-kai > gnulib-hg
view doc/posix-functions/strtod.texi @ 11628:59047bad770e
strstr, strcasestr: replace on platforms with broken memchr
* modules/strstr: Split into...
* modules/strstr-simple: ...new module that does not care about
performance, but does care about glibc bug.
* m4/strstr.m4 (gl_FUNC_STRSTR): Split...
(gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
if platform memchr is broken, per Debian bug 521737.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
memchr.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
* doc/posix-functions/strstr.texi (strstr): Document the fix.
* doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
* modules/mountlist (Depends-on): Add strstr-simple.
* modules/gen-uni-tables (Depends-on): Likewise.
* modules/argz (Depends-on): Add strstr.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Tue, 16 Jun 2009 06:14:05 -0600 |
parents | e578654f58d3 |
children | 4ccc551d5cb6 |
line wrap: on
line source
@node strtod @section @code{strtod} @findex strtod POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strtod.html} Gnulib module: strtod Portability problems fixed by Gnulib: @itemize @item This function is missing on some old platforms. @item This function mis-parses strings with leading @samp{+} on some old platforms: Old versions of Linux. @item This function returns a wrong end pointer on some old platforms. @item This function consumes whitespace even when there is nothing that should be parsed on some platforms: IRIX 6.5, OSF/1 5.1. @item This function allows whitespace between @samp{e} and the exponent on some platforms: HP-UX 11.11, IRIX 6.5, OSF/1 4.0. @item This function returns the wrong end pointer for @samp{-0x} on some platforms: glibc 2.4, MacOS X 10.3, FreeBSD 6.2, Cygwin < 1.5.25-11. @item This function returns +0.0 (not -0.0) for @samp{-0} on some platforms: IRIX 6.5, OSF/1 4.0. @item This function fails to parse Infinities and plain NaNs on some platforms: OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw. @item This function fails to parse @samp{NaN()} on some platforms: glibc-2.3.6, MacOS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Cygwin < 1.5.25-11, mingw. @item This function fails to parse @samp{NaN(@var{n-char-sequence})} on some platforms: OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, mingw. @item This function parses @samp{NaN(@var{n-char-sequence})}, but returns the wrong end pointer on some platforms: glibc-2.4, AIX 5.1. @item This function fails to parse C99 hexadecimal floating point on some platforms: NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw. @end itemize Portability problems not fixed by Gnulib: @itemize @item This function returns +0.0 (not -0.0) for negative underflow on some platforms: glibc 2.7, Cygwin 1.5.x, mingw. @item This function cannot distinguish between ``nan'' and ``-nan'' on some platforms: glibc 2.7, IRIX 6.5, OSF/1 5.1, mingw. @item This function fails to correctly parse very long strings on some platforms: MacOS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, OSF/1 5.1, Cygwin, mingw. @item The replacement function does not always return correctly rounded results. @end itemize