From: Bruno Haible Date: Tue, 28 Mar 2023 11:13:55 +0000 (+0200) Subject: doc: Update regarding linear string search. X-Git-Tag: v1.0~1558 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=63ccbd657f9632731ec3f53eb7bf119a61495860;p=gnulib.git doc: Update regarding linear string search. * doc/glibc-functions/memmem.texi: Update platforms list. * doc/posix-functions/strstr.texi: Likewise. * doc/glibc-functions/strcasestr.texi: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 80a07ae330..7c3459f716 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-03-28 Bruno Haible + + doc: Update regarding linear string search. + * doc/glibc-functions/memmem.texi: Update platforms list. + * doc/posix-functions/strstr.texi: Likewise. + * doc/glibc-functions/strcasestr.texi: Likewise. + 2023-03-27 Bruno Haible ialloc: Add comments. diff --git a/doc/glibc-functions/memmem.texi b/doc/glibc-functions/memmem.texi index ef5b4ffed2..f3bf80611c 100644 --- a/doc/glibc-functions/memmem.texi +++ b/doc/glibc-functions/memmem.texi @@ -40,7 +40,7 @@ glibc 2.12, Cygwin 1.7.7. @item This function returns incorrect values in some cases, such as when given an empty needle: -glibc <= 2.0, Solaris 11.4, Cygwin 1.5.x. +glibc <= 2.0, macOS 12.5, AIX 7.2, Solaris 11.3, Cygwin 1.5.x. @end itemize Performance problems fixed by Gnulib module @code{memmem}: @@ -48,7 +48,7 @@ Performance problems fixed by Gnulib module @code{memmem}: @item This function has quadratic instead of linear worst-case complexity on some platforms: -glibc 2.8, FreeBSD 6.2, NetBSD 9.0, AIX 5.1, Solaris 11.4, Cygwin 1.5.x. +glibc 2.8, macOS 12.5, FreeBSD 11.4, NetBSD 8.2, OpenBSD 6.6, AIX 7.2, Solaris 11.4, Cygwin 1.5.x. Note for small needles the replacement may be slower. @end itemize diff --git a/doc/glibc-functions/strcasestr.texi b/doc/glibc-functions/strcasestr.texi index 2860103155..9a7ca477cd 100644 --- a/doc/glibc-functions/strcasestr.texi +++ b/doc/glibc-functions/strcasestr.texi @@ -24,8 +24,7 @@ or @code{strcasestr}: @itemize @item This function is missing on some platforms: -AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 10, Cygwin 1.5.x, -mingw, MSVC 14. +AIX 7.2, HP-UX 11, IRIX 6.5, Solaris 10, Cygwin 1.5.x, mingw, MSVC 14. @item This function can trigger memchr bugs on some platforms: glibc 2.10. @@ -43,7 +42,7 @@ Portability problems fixed by Gnulib module @code{strcasestr}: @item This function has quadratic instead of linear worst-case complexity on some platforms: -glibc 2.8, FreeBSD 6.2, NetBSD 9.0, OpenBSD 4.0, Solaris 11.4. +glibc 2.8, musl libc 1.2.3, macOS 12.5, FreeBSD 13.1, NetBSD 9.0, OpenBSD 7.2, Solaris 11.4. @end itemize Portability problems not fixed by Gnulib: diff --git a/doc/posix-functions/strstr.texi b/doc/posix-functions/strstr.texi index 3a36cfdeed..a2f711da9c 100644 --- a/doc/posix-functions/strstr.texi +++ b/doc/posix-functions/strstr.texi @@ -26,7 +26,7 @@ Portability problems fixed by Gnulib module @code{strstr}: @item This function has quadratic instead of linear worst-case complexity on some platforms: -glibc 2.8, macOS 11.1, FreeBSD 6.2, NetBSD 9.0, OpenBSD 4.0, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14. +glibc 2.8, macOS 12.5, FreeBSD 11.4, NetBSD 9.0, OpenBSD 6.1, AIX 7.2, HP-UX 11, IRIX 6.5, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14. @end itemize Portability problems not fixed by Gnulib: