X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=3246438ba1ef728b299e677fb8ef966c6ec67d4f;hb=6d62642d28119a6eed354809c7686bdd3b20e243;hp=897387c6a1e93fa44295634306d5311a13332a35;hpb=84ee3b1cd87b3a9161eee3634c529eb835703fba;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 897387c6a..3246438ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,377 @@ +2010-07-31 Bruno Haible + + Update modules list. + * MODULES.html.sh (Sorting functions ): Add array-mergesort. + (String handling ): Add memcmp2, memxfrm. + (Container data structures): Add xlist, xsublist, xoset. + (Core language properties): Add alignof, unused-parameter. + (Process control, Numeric conversion functions ): Renamed + from Numeric conversion functions . Add _Exit, atoll. + (Unibyte characters ): New section. + (String handling ): New section. + (Mathematics ): Add acos, acosl, asin, asinl, atan, atan2, + atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs, + fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl, + modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl, + tan, tanh, tanl, y0, y1, yn. + (Support for systems lacking POSIX:2008): Add alphasort, dirent, + dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix, + grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread, + ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname, + unlockpt, vdprintf, vdprintf-posix. + (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt. + (File system functions): Add concat-filename, sys_file, sys_ioctl, + xconcat-filename. + (File descriptor based Input/Output): Add dup3, fd-safer-flag, + getdtablesize, pipe2, pipe2-safer. + (Security): New section. + (Networking functions): Add accept4. + (Signal handling): Add sigpipe. + (Internationalization functions): Add xstriconveh, mbmemcasecmp, + mbmemcasecoll. + (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2, + unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*. + (Executing programs): Add findprog-lgpl, pipe-filter-gi, + pipe-filter-ii. + (Misc): Add argp-version-etc, login_tty, parse-duration. + +2010-07-31 Bruno Haible + + Improve doc in MODULES.html. + * modules/linkat (Description): Add the word "function". + * modules/mkfifo (Description): Likewise. + * modules/mknod (Description): Likewise. + * modules/remove (Description): Likewise. + * modules/renameat (Description): Likewise. + * modules/stat (Description): Likewise. + * modules/symlink (Description): Likewise. + * modules/unlink (Description): Likewise. + +2010-07-31 Bruno Haible + + ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible. + * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide + option --enable/disable-c++ instead of --enable/disable-cxx. + +2010-07-31 Bruno Haible + + readlink, areadlink: Relax test a bit. + * tests/test-readlink.h (test_readlink): Accept EINVAL as an + alternative to ENOTDIR. + * tests/test-areadlink.h (test_areadlink): Likewise. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case. + * lib/unistr/u-strstr.h (FUNC): When the needle contains only one + character, perform the search using U_STRCHR. + * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro. + * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise. + * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc. + * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc. + Suggested by Paolo Bonzini. + +2010-07-31 Bruno Haible + + unistr/u*-strstr: Fix dependencies. + * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr. + * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr. + * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr. + +2010-07-31 Bruno Haible + + unistr/u8-chr, unistr/u8-strchr: Optimize and add comments. + * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at + the beginning of the loop. + * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through + cases in 'switch' statement. + + unistr/u8-strchr: Fix several bugs. + * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of + the string. When not found, return NULL, not a pointer near the end. + + More tests for unistr/u8-strchr. + * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check + that the function does not read past the first occurrence of the byte + being searched. + * tests/unistr/test-u8-strchr.c (main): New function, with more tests. + * tests/unistr/test-u16-strchr.c (main): New function. + * tests/unistr/test-u32-strchr.c (main): New function. + +2010-07-31 Bruno Haible + + posix-modules: Ignore backup files of documentation files. + * posix-modules: grep only through files named *.texi. + +2010-07-31 Bruno Haible + + symlinkat: Fix documentation. + * doc/posix-functions/readlinkat.texi: Fix module name. + +2010-07-31 Bruno Haible + + fchownat: Replace also when chown has the trailing slash bug. + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN + outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression + introduced on 2010-04-10. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + linkat: Work around AIX 7.1 bug. + * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test + whether linkat handles trailing slash correctly. If not, replace linkat + and define LINKAT_TRAILING_SLASH_BUG. + * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined, + check whether (fd1,file1) points to a directory if file1 or file2 ends + in a slash. Code taken from lib/link.c. + * doc/posix-functions/linkat.texi: Mention trailing slash bug. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + Correctly determine whether pow is available in libc on AIX 7 with xlc. + * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable. + This disables an xlc optimization that was causing wrong test results. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + iconv: Work around AIX 6.1..7.1 bug. + * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug. + * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When + cross-compiling, guess no on all versions of AIX. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + readlink: Relax test a bit. + * tests/test-readlink.h (test_readlink): Allow different errno value + when readlink is called with a file name that ends in / and refers to + a file. + Suggested by Eric Blake. + Reported by Rainer Tammer. + +2010-07-31 Bruno Haible + + copysign: Does not require -lm on glibc systems. + * modules/copysign (configure.ac): Use gl_MATHFUNC, not + gl_COMMON_DOUBLE_MATHFUNC. + * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments. + +2010-07-31 Bruno Haible + + duplocale: Work around AIX 7.1 bug. + * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when + duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0. + * lib/duplocale.c (rpl_duplocale): Update comment. + * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + dirfd: Avoid link error on AIX 7.1. + * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD. + * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not + exist, set REPLACE_DIRFD. + * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD. + * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD. + * doc/posix-functions/dirfd.texi: Update. + Reported by Rainer Tammer. + +2010-07-30 Eric Blake + + strtod: next round of AIX fixes + * lib/strtod.c (strtod): Work around AIX bug of parsing p with no + exponent. + * tests/test-strtod.c (main): Enhance tests. + * doc/posix-functions/strtod.texi (strtod): Document next bug. + Reported by Rainer Tammer. + + futimens: fix configure check + * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic. + Reported by Bruno Haible. + +2010-07-30 Bruno Haible + + getline: Update regarding AIX. + * doc/posix-functions/getline.texi: Mention bug on AIX 7.1. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + wcwidth: Drop replacement on AIX 7. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on + AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler. + * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to + a 'char *'. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + unlink: Update regarding AIX. + * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1. + * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + symlink: Update regarding AIX. + * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1. + * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + strndup: Update regarding AIX. + * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on + AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + stat: Update regarding AIX. + * doc/posix-functions/stat.texi: Mention bug on AIX 7.1. + * m4/stat.m4 (gl_FUNC_STAT): Update comment. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + truncl: Fix autoconf test. + * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing + whether truncl works. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + round: Update regarding AIX. + * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7. + * doc/posix-functions/round.texi: Mention bug on AIX 7.1. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + rename: Update regarding AIX. + * doc/posix-functions/rename.texi: Mention bug on AIX 7.1. + * m4/rename.m4 (gl_FUNC_RENAME): Update comment. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + printf.m4: Update regarding AIX. + * m4/printf.m4: Update comments regarding AIX. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + iconv: Update regarding AIX. + * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on + AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + getopt: Update regarding AIX. + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess + no on AIX. + * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + ldexpl; Update regarding AIX. + * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes + on AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + frexpl: Update regarding AIX. + * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes + on AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + open, fopen: Update regarding AIX. + * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX. + * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise. + * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX. + * doc/posix-functions/fopen.texi: Likewise. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + chown: Update doc regarding AIX. + * doc/posix-functions/chown.texi: Mention bug on AIX 7.1. + * m4/chown.m4 (gl_FUNC_CHOWN): Update comment. + Reported by Rainer Tammer. + +2010-07-30 Eric Blake + + strtod: fix bug in replacement function on AIX + * lib/strtod.c (strtod): Special case broken "0x" parse in + underlying strtod. + * tests/test-strtod.c (main): Document AIX 7.1 bugs. + * doc/posix-functions/strtod.texi (strtod): Likewise. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + + mbrlen: Fix cross-compilation guess for AIX. + * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation + guess. Leftover from 2008-12-22. + +2010-07-30 Bruno Haible + + mbrtowc: Fix cross-compilation guess for AIX. + * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation + guess. Leftover from 2008-12-21. + +2010-07-29 Peter O'Gorman (tiny change) + + init.sh: work around trap limitation of some shells + * tests/init.sh (setup_): Move exit trap outside of shell function. + +2010-07-29 Eric Blake + + strtod: aid debugging + * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid + understanding why strtod is rejected. + +2010-07-28 Bruno Haible + + unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings. + * lib/unistr/u8-chr.c: Include . + * tests/unistr/test-u8-chr.c: Likewise. + * tests/unistr/test-u16-chr.c: Likewise. + * tests/unistr/test-u32-chr.c: Likewise. + * tests/unistr/test-u8-strchr.c: Likewise. + * tests/unistr/test-u16-strchr.c: Likewise. + * tests/unistr/test-u32-strchr.c: Likewise. + * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set. + * modules/unistr/u16-chr-tests (Depends-on): Likewise. + * modules/unistr/u8-strchr-tests (Depends-on): Likewise. + * modules/unistr/u16-strchr-tests (Depends-on): Likewise. + +2010-07-28 Bruno Haible + + Use spaces for indentation, not tabs. + * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify. + +2010-07-27 Bruno Haible + + mbspcasecmp: Fix function specification. + * lib/string.in.h (mbspcasecmp): Fix specification comment. + * lib/mbspcasecmp.c (mbspcasecmp): Likewise. + Reported by Eric Blake . + 2010-07-26 Paul R. Eggert timespec: use cast and not conditional, as truncation isn't possible @@ -5,6 +379,40 @@ instead of a conditional. Comment about the situation in more detail. This undoes most of the 2009-10-29 patch. +2010-07-23 Paolo Bonzini + + unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm. + * lib/unistr/u8-chr.c: Add Boyer-Moore like operation. + * lib/unistr/u8-strchr.c: Likewise. + * modules/unistr/u8-chr: Depend on memchr. + + unistr/u*-strchr: add tests + * modules/unistr/u8-strchr-tests: New file. + * modules/unistr/u16-strchr-tests: New file. + * modules/unistr/u32-strchr-tests: New file. + * tests/unistr/test-strchr.h: New file. + * tests/unistr/test-u8-strchr.c: New file. + * tests/unistr/test-u16-strchr.c: New file. + * tests/unistr/test-u32-strchr.c: New file. + + unistr/u*-chr: test multibyte sequences more + * tests/unistr/test-chr.h: Do complete testing of the characters in the + test vector. + * tests/unistr/test-u8-chr.c (U_UCTOMB): Define. + * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise. + * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise. + + unistr/u*-chr: test multibyte sequences + * tests/unistr/test-chr.h: Put characters above 0-127 in the test input. + + unistr/u*-chr: prepare for multibyte tests + * modules/unistr/u8-chr-tests: Depend on u32-to-u8. + * modules/unistr/u16-chr-tests: Depend on u32-to-u16. + * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert. + * tests/unistr/test-u8-chr.c (U32_TO_U): Define. + * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise. + * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise. + 2010-07-18 Bruno Haible unistr/u8-strchr: Optimize non-ASCII argument case.