1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-20 11:01:20 +03:00
Commit Graph

146 Commits

Author SHA1 Message Date
Eric Blake
e3e47d1710 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>
2009-06-17 07:24:16 -06:00
Bruno Haible
3ad7edd60e Mention also the glibc bug on IA-64. 2009-06-14 23:40:38 +02:00
Eric Blake
7cf183c33e memchr: detect broken x86_64 and alpha implementations
* modules/memchr-tests (Depends-on): Move mmap detection...
* modules/memchr (Depends-on): ...here.
(configure.ac): Set indicator.
* lib/string.in.h (memchr): Declare replacement.
* modules/string (Makefile.am): Trigger replacement.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
bugs.
* doc/posix-functions/memchr.texi (memchr): Document the bug.
* modules/getpagesize (License): Relax license.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-06-12 21:52:09 -06:00
Bruno Haible
feb7082940 Move the fnmatch-posix module into the fnmatch module. 2009-05-04 00:32:52 +02:00
Bruno Haible
a5bd4a5602 Avoid test failures on AIX and OSF/1. 2009-04-26 12:24:08 +02:00
Bruno Haible
f66b534614 Fix cross-compilation results. 2009-04-23 03:36:20 +02:00
Ben Pfaff
533b27747f Make rename replace existing destinations on Windows. 2009-04-12 12:27:14 -07:00
Bruno Haible
c43f138345 Fix cross-compile guess for utime test. 2009-04-10 19:40:02 +02:00
Eric Blake
dbebf0e0bf doc: mention more functions added in cygwin 1.7.0
* doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
addition.
* doc/posix-functions/log2f.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-03-19 06:14:49 -06:00
Eric Blake
887f0ad188 doc: mention more functions added in cygwin 1.7.0
* doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
addition.
* doc/posix-functions/fwscanf.texi: Likewise.
* doc/posix-functions/swprintf.texi: Likewise.
* doc/posix-functions/swscanf.texi: Likewise.
* doc/posix-functions/vfwprintf.texi: Likewise.
* doc/posix-functions/vfwscanf.texi: Likewise.
* doc/posix-functions/vswprintf.texi: Likewise.
* doc/posix-functions/vswscanf.texi: Likewise.
* doc/posix-functions/vwprintf.texi: Likewise.
* doc/posix-functions/vwscanf.texi: Likewise.
* doc/posix-functions/wcscasecmp.texi: Likewise.
* doc/posix-functions/wcsdup.texi: Likewise.
* doc/posix-functions/wcsftime.texi: Likewise.
* doc/posix-functions/wcsncasecmp.texi: Likewise.
* doc/posix-functions/wprintf.texi: Likewise.
* doc/posix-functions/wscanf.texi: Likewise.
* doc/glibc-functions/gethostbyname2.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-03-17 05:58:52 -06:00
Bruno Haible
ea64fe0094 Work around select() bug on Interix 3.5. 2009-03-13 21:05:15 +01:00
Bruno Haible
217fb89cd4 Separate two tests. Mention the platforms in canonical order. 2009-02-28 16:05:43 +01:00
Eric Blake
39e5b7a29f doc: mention more functions added in cygwin 1.7.0
* doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
addition.
* doc/posix-functions/open_wmemstream.texi: Likewise.
* doc/posix-functions/wcsnlen.texi: Likewise.
* doc/posix-functions/wcsnrtombs.texi: Likewise.
* doc/posix-functions/wcstod.texi: Likewise.
* doc/posix-functions/wcstof.texi: Likewise.
* doc/posix-functions/wcstoimax.texi: Likewise.
* doc/posix-functions/wcstok.texi: Likewise.
* doc/posix-functions/wcstoumax.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-02-27 06:23:36 -07:00
Eric Blake
599e3ff6dc Detect bug in cygwin 1.5.x *printf on 1-character %ls.
* m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
* doc/posix-functions/fprintf.texi: Update.
* doc/posix-functions/printf.texi: Update.
* doc/posix-functions/snprintf.texi: Update.
* doc/posix-functions/sprintf.texi: Update.
* doc/posix-functions/vfprintf.texi: Update.
* doc/posix-functions/vprintf.texi: Update.
* doc/posix-functions/vsnprintf.texi: Update.
* doc/posix-functions/vsprintf.texi: Update.
* doc/glibc-functions/obstack_printf.texi: Update.
* doc/glibc-functions/obstack_vprintf.texi: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-02-27 06:06:47 -07:00
Bruno Haible
f7beddb6d0 Work around a *printf bug with %ls on Solaris. 2009-02-27 02:15:26 +01:00
Bruno Haible
220f76a18a Fix *printf behaviour regarding the %ls directive. 2009-02-26 12:54:20 +01:00
Bruno Haible
0f0ea3372a Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8. 2009-02-26 02:21:14 +01:00
Bruno Haible
3c05103d06 Improve doc of dirfd module. 2009-02-07 11:39:09 +01:00
Eric Blake
542406c922 doc: mention more functions added in cygwin 1.7.0
* doc/posix-functions/abort.texi (abort): Update wording related
to cygwin.
* doc/posix-functions/daylight.texi (daylight): Likewise.
* doc/posix-functions/optarg.texi (optarg): Likewise.
* doc/posix-functions/optarg.texi (opterr): Likewise.
* doc/posix-functions/optarg.texi (optind): Likewise.
* doc/posix-functions/optarg.texi (optopt): Likewise.
* doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
worked in 1.5.x, and was withdrawn in 1.7.
* doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
* doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
cygwin versions.
* doc/posix-functions/perror.texi (perror): Likewise.
* doc/posix-functions/printf.texi (printf): Likewise.
* doc/posix-functions/snprintf.texi (snprintf): Likewise.
* doc/posix-functions/sprintf.texi (sprintf): Likewise.
* doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
* doc/posix-functions/vprintf.texi (vprintf): Likewise.
* doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
* doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
* doc/glibc-functions/obstack_printf.texi (obstack_printf):
Likewise.
* doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
Likewise.
* doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
this function.
* doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
* doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
Likewise.
* doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
* doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
* doc/posix-functions/confstr.texi (confstr): Likewise.
* doc/posix-functions/dprintf.texi (dprintf): Likewise.
* doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
* doc/posix-functions/fgetws.texi (fgetws): Likewise.
* doc/posix-functions/fputwc.texi (fputwc): Likewise.
* doc/posix-functions/fputws.texi (fputws): Likewise.
* doc/posix-functions/fwide.texi (fwide): Likewise.
* doc/posix-functions/getwc.texi (getwc): Likewise.
* doc/posix-functions/getwchar.texi (getwchar): Likewise.
* doc/posix-functions/putwc.texi (putwc): Likewise.
* doc/posix-functions/putwchar.texi (putwchar): Likewise.
* doc/posix-functions/sigignore.texi (sigignore): Likewise.
* doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
* doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
* doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
* doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
* doc/posix-functions/wcstol.texi (wcstol): Likewise.
* doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
* doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
* doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
* doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-01-19 06:43:51 -07:00
Martin Lambers
d1ed8a817f New module 'link'. 2009-01-18 19:32:09 +01:00
Bruno Haible
9d33c622ce New module 'alphasort'. 2009-01-18 12:40:22 +01:00
Bruno Haible
3806f4f65a New module 'scandir'. 2009-01-18 12:28:05 +01:00
Bruno Haible
bad6928fe4 New modules 'dprintf', 'dprintf-posix'. 2009-01-18 03:22:08 +01:00
Bruno Haible
d464708e0d New modules 'vdprintf', 'vdprintf-posix'. 2009-01-18 02:48:41 +01:00
Bruno Haible
20d24b6149 Mention platform-dependent limitations of wchar_t. 2008-12-23 02:28:45 +01:00
Bruno Haible
bed49847d2 Work around mbrlen() bugs on various platforms. 2008-12-23 00:33:10 +01:00
Bruno Haible
8cfe59a0e0 Mention a glibc bug. 2008-12-22 11:33:52 +01:00
Bruno Haible
a35b7df64e New module 'wcsnrtombs'. 2008-12-22 00:42:11 +01:00
Bruno Haible
999b44930f New module 'wcsrtombs'. 2008-12-21 23:48:19 +01:00
Bruno Haible
989c3cffa1 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1. 2008-12-21 21:57:36 +01:00
Bruno Haible
222bd6c849 Work around a btowc() bug on IRIX 6.5. 2008-12-21 17:35:30 +01:00
Bruno Haible
5680a72abf New module 'wcrtomb'. 2008-12-21 16:58:29 +01:00
Bruno Haible
6906a95bfc New module 'mbsnrtowcs'. 2008-12-21 14:45:44 +01:00
Bruno Haible
da3fe7009a Work around mbsrtowcs bug on various platforms. 2008-12-21 13:36:23 +01:00
Bruno Haible
1a5312f7bb Mention that AIX has a crippled wchar_t type. 2008-12-21 13:26:10 +01:00
Bruno Haible
ab777bf8ac Update for HP-UX 11.11. 2008-12-21 12:33:42 +01:00
Bruno Haible
7ff136ec95 Work around a portability problem. 2008-12-21 12:05:35 +01:00
Bruno Haible
2c11b49f00 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris. 2008-12-21 02:55:00 +01:00
Bruno Haible
b1876e6e27 Work around wctob bug on Solaris 9. 2008-12-21 01:22:07 +01:00
Bruno Haible
99da6dddc2 Document a select() bug on Solaris 2.6. 2008-12-20 20:45:40 +01:00
Bruno Haible
1d4ebe41d6 Ensure wctob is declared on IRIX 6.5. 2008-12-20 12:48:18 +01:00
Bruno Haible
7ec4dd0757 New module 'mbsrtowcs'. 2008-12-20 02:02:35 +01:00
Bruno Haible
975a170121 New module 'mbrlen'. 2008-12-19 13:01:07 +01:00
Bruno Haible
ed95c63aeb New module 'mbrtowc'. 2008-12-19 03:30:28 +01:00
Bruno Haible
172b44d208 New module 'wctob'. 2008-12-19 03:12:24 +01:00
Bruno Haible
82b3be219d New module 'btowc'. 2008-12-18 00:19:07 +01:00
Bruno Haible
7697f254b9 New module 'mbsinit'. 2008-12-17 13:05:50 +01:00
Bruno Haible
78ef466426 Tweak wording. 2008-12-16 00:13:22 +01:00
Eric Blake
0460b26278 Update doc for cygwin 1.7.
* doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
functions.
* doc/posix-functions/fchmodat.texi: Likewise.
* doc/posix-functions/fchownat.texi: Likewise.
* doc/posix-functions/fdopendir.texi: Likewise.
* doc/posix-functions/fmemopen.texi: Likewise.
* doc/posix-functions/freeaddrinfo.texi: Likewise.
* doc/posix-functions/fstatat.texi: Likewise.
* doc/posix-functions/futimens.texi: Likewise.
* doc/posix-functions/gai_strerror.texi: Likewise.
* doc/posix-functions/getaddrinfo.texi: Likewise.
* doc/posix-functions/getnameinfo.texi: Likewise.
* doc/posix-functions/if_freenameindex.texi: Likewise.
* doc/posix-functions/if_indextoname.texi: Likewise.
* doc/posix-functions/if_nameindex.texi: Likewise.
* doc/posix-functions/if_nametoindex.texi: Likewise.
* doc/posix-functions/insque	.texi: Likewise.
* doc/posix-functions/linkat.texi: Likewise.
* doc/posix-functions/llrint.texi: Likewise.
* doc/posix-functions/llrintf.texi: Likewise.
* doc/posix-functions/llrintl.texi: Likewise.
* doc/posix-functions/lockf.texi: Likewise.
* doc/posix-functions/lrintl.texi: Likewise.
* doc/posix-functions/mkdirat.texi: Likewise.
* doc/posix-functions/mkfifoat.texi: Likewise.
* doc/posix-functions/mknodat.texi: Likewise.
* doc/posix-functions/mq_close.texi: Likewise.
* doc/posix-functions/mq_getattr.texi: Likewise.
* doc/posix-functions/mq_notify.texi: Likewise.
* doc/posix-functions/mq_open.texi: Likewise.
* doc/posix-functions/mq_receive.texi: Likewise.
* doc/posix-functions/mq_send.texi: Likewise.
* doc/posix-functions/mq_setattr.texi: Likewise.
* doc/posix-functions/mq_timedreceive.texi: Likewise.
* doc/posix-functions/mq_timedsend.texi: Likewise.
* doc/posix-functions/mq_unlink.texi: Likewise.
* doc/posix-functions/open_memstream.texi: Likewise.
* doc/posix-functions/openat.texi: Likewise.
* doc/posix-functions/posix_fadvise.texi: Likewise.
* doc/posix-functions/posix_fallocate.texi: Likewise.
* doc/posix-functions/posix_madvise.texi: Likewise.
* doc/posix-functions/posix_memalign.texi: Likewise.
* doc/posix-functions/posix_openpt.texi: Likewise.
* doc/posix-functions/readlinkat.texi: Likewise.
* doc/posix-functions/remque.texi: Likewise.
* doc/posix-functions/renameat.texi: Likewise.
* doc/posix-functions/rintl.texi: Likewise.
* doc/posix-functions/sem_unlink.texi: Likewise.
* doc/posix-functions/shm_open.texi: Likewise.
* doc/posix-functions/shm_unlink.texi: Likewise.
* doc/posix-functions/signgam.texi: Likewise.
* doc/posix-functions/sigset.texi: Likewise.
* doc/posix-functions/stpcpy.texi: Likewise.
* doc/posix-functions/stpncpy.texi: Likewise.
* doc/posix-functions/strerror.texi: Likewise.
* doc/posix-functions/strtod.texi: Likewise.
* doc/posix-functions/symlinkat.texi: Likewise.
* doc/posix-functions/unlinkat.texi: Likewise.
* doc/posix-functions/utimensat.texi: Likewise.
* doc/glibc-functions/bindresvport.texi: Likewise.
* doc/glibc-functions/dn_expand.texi: Likewise.
* doc/glibc-functions/exp10.texi: Likewise.
* doc/glibc-functions/exp10f.texi: Likewise.
* doc/glibc-functions/fgetxattr.texi: Likewise.
* doc/glibc-functions/flistxattr.texi: Likewise.
* doc/glibc-functions/fopencookie.texi: Likewise.
* doc/glibc-functions/freeifaddrs.texi: Likewise.
* doc/glibc-functions/fremovexattr.texi: Likewise.
* doc/glibc-functions/fsetxattr.texi: Likewise.
* doc/glibc-functions/getifaddrs.texi: Likewise.
* doc/glibc-functions/getxattr.texi: Likewise.
* doc/glibc-functions/lgetxattr.texi: Likewise.
* doc/glibc-functions/listxattr.texi: Likewise.
* doc/glibc-functions/llistxattr.texi: Likewise.
* doc/glibc-functions/lremovexattr.texi: Likewise.
* doc/glibc-functions/lsetxattr.texi: Likewise.
* doc/glibc-functions/pow10.texi: Likewise.
* doc/glibc-functions/pow10f.texi: Likewise.
* doc/glibc-functions/rcmd_af.texi: Likewise.
* doc/glibc-functions/removexattr.texi: Likewise.
* doc/glibc-functions/res_init.texi: Likewise.
* doc/glibc-functions/res_mkquery.texi: Likewise.
* doc/glibc-functions/res_query.texi: Likewise.
* doc/glibc-functions/res_querydomain.texi: Likewise.
* doc/glibc-functions/res_send.texi: Likewise.
* doc/glibc-functions/rresvport_af.texi: Likewise.
* doc/glibc-functions/setxattr.texi: Likewise.
* doc/glibc-functions/strcasestr.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-12-15 07:05:41 -07:00
Bruno Haible
f30bf56d92 Document the 'openat' module. 2008-12-15 12:32:33 +01:00