diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-17 14:43:55 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-17 14:43:55 +0000 |
commit | 2de9abc5c9d40b3c716307d67d16146f823fd554 (patch) | |
tree | 6979db67934ddc8b564150b465846a383b428ff8 /gnulib/doc/glibc-functions/memmem.texi | |
parent | 33cc1c6fda6e72a7bae1401e9b2cec495a4d3ff1 (diff) | |
download | patch-baserock/bootstrap.tar.gz |
add the output of bootstrapbaserock/bootstrap-pass2baserock/bootstrap
Diffstat (limited to 'gnulib/doc/glibc-functions/memmem.texi')
m--------- | gnulib | 0 | ||||
-rw-r--r-- | gnulib/doc/glibc-functions/memmem.texi | 42 |
2 files changed, 42 insertions, 0 deletions
diff --git a/gnulib b/gnulib deleted file mode 160000 -Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1 diff --git a/gnulib/doc/glibc-functions/memmem.texi b/gnulib/doc/glibc-functions/memmem.texi new file mode 100644 index 0000000..92c39cd --- /dev/null +++ b/gnulib/doc/glibc-functions/memmem.texi @@ -0,0 +1,42 @@ +@node memmem +@subsection @code{memmem} +@findex memmem + +Gnulib module: memmem or memmem-simple + +Both modules implement the same replacement for the @code{memmem} function +with the memmem module providing a replacement on more platforms where +the existing @code{memmem} function has a quadratic worst-case complexity. + +Portability problems fixed by either Gnulib module @code{memmem-simple} +or @code{memmem}: +@itemize +@item +This function is missing on some platforms: +MacOS X 10.5, FreeBSD 5.2.1, OpenBSD 4.0, Minix 3.1.8, AIX 4.3.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, MSVC 9, Interix 3.5, BeOS. +@item +This function has reversed arguments on some older platforms: +Linux libc 5.0.9 +@item +This function can trigger false positives for long periodic needles on +some platforms: +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, Cygwin 1.5.x. +@end itemize + +Performance problems fixed by Gnulib module @code{memmem}: +@itemize +@item +This function has quadratic instead of linear worst-case complexity on some +platforms: +glibc 2.8, FreeBSD 6.2, NetBSD 5.0, AIX 5.1, Solaris 11 2010-11, Cygwin 1.5.x. +Note for small needles the replacement may be slower. +@end itemize + +Portability problems not fixed by Gnulib: +@itemize +@end itemize |