X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=8a4fcc7cf2d86694978872969f6bfe61f37a854e;hb=b187ff0528e2a081392a834e684d1d0c161708a7;hp=ef4086fa1a4c08817799e7b1ad29b688c42bec22;hpb=3d4f5487005371c35984ee7a73236f73a47fda44;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index ef4086fa1..6cc031532 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,1546 @@ +2010-03-19 Jim Meyering + + regex.m4: correct the reversed range endpoint ([b-a]) test + * m4/regex.m4: When requiring that [b-a] evoke failure, + use RE_NO_EMPTY_RANGES. This makes this entire configure-time + test pass once again for x86-based systems. + +2010-03-19 Bruno Haible + + scandir: Fix link error on Solaris 8. + * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback + macros. + +2010-03-19 Bruno Haible + + getusershell: Fix documentation. + * doc/glibc-functions/endusershell.texi: Refer to the getusershell + module. + * doc/glibc-functions/setusershell.texi: Likewise. + + getusershell: Provide declaration, missing on Solaris 9. + * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare + also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL. + * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists, + check whether it is declared. Set HAVE_DECL_GETUSERSHELL. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize + HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL. + * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not + HAVE_GETUSERSHELL. + * doc/glibc-functions/getusershell.texi: Mention the Solaris problem. + +2010-03-19 Bruno Haible + + wctype: Provide iswblank function. + * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl + exists and is fine. + * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists. + * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK. + * tests/test-wctype.c (main): Re-enable the iswblank tests. + * doc/posix-functions/iswblank.texi: Update. + +2010-03-19 Bruno Haible + + Tests of module 'pty' in C++ mode. + * modules/pty-tests: New file. + * tests/test-pty-c++.cc: New file. + * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR. + +2010-03-19 Eric Blake + + logb: fix documentation + * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin + 1.5 declaration bug. + + forkpty, openpty: prefer glibc's const-safe prototype + * lib/forkpty.c (rpl_forkpty): New file. + * lib/openpty.c (rpl_openpty): Likewise. + * modules/forkpty (Files): Distribute it. + * modules/openpty (Files): Likewise. + * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl + check... + * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request + replacement for for non-const BSD signature. + * modules/pty (Makefile.am): Substitute witnesses. + * lib/pty.in.h (forkpty, openpty): Declare replacements. + * tests/test-forkpty.c: Update signature check. + * tests/test-openpty.c: Likewise. + * doc/glibc-functions/forkpty.texi (forkpty): Document the fix. + * doc/glibc-functions/openpty.texi (openpty): Likewise. + + forkpty, openpty: split functions into new modules + * modules/pty (Makefile.am): Substitute new witnesses. + (Libraries): Move library detection... + * modules/forkpty: ...into new module. + * modules/openpty: Another new module. + * modules/pty-tests: Rename and split... + * modules/forkpty-tests: ...to this... + * modules/openpty-tests: ...and this. + * tests/test-pty.c: Rename and split... + * tests/test-forkpty.c: ...to this... + * tests/test-openpty.c: ...and this. + * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. + (gl_PTY): Split library searching... + * m4/pty.m4 (gl_PTY_LIB): ...into new file. + (gl_FORKPTY, gl_OPENPTY): New macros. + * lib/pty.in.h (forkpty, openpty): Honor new witnesses. + * NEWS: Mention the split. + * MODULES.html.sh (Misc): Document the modules. + * doc/glibc-functions/forkpty.texi (forkpty): Likewise. + * doc/glibc-functions/openpty.texi (openpty): Likewise. + + pty: improve replacement header + * lib/pty.in.h: New file. + * modules/pty (Files): Ship it. + (Makefile.am): Always build replacement. + * m4/pty.m4: Rename... + * m4/pty_h.m4: ...to this. + (gl_PTY): Modernize setting of witness macros; update check of + forkpty to take proper advantage of cache. + (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros. + + getopt: avoid compiler warning + * lib/getopt.c (attribute_hidden): Remove unused macro. + +2010-03-18 Bruno Haible + + Fix link errors on Solaris 8. + * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP. + * modules/search-tests (test_search_c___LDADD): Likewise. + * modules/signal-tests (test_signal_c___LDADD): Likewise. + * modules/spawn-tests (test_spawn_c___LDADD): Likewise. + * modules/stdio-tests (test_stdio_c___LDADD): Likewise. + * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise. + * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise. + * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise. + * modules/wchar-tests (test_wchar_c___LDADD): Likewise. + +2010-03-18 Bruno Haible + + Fix bug introduced on 2010-03-14. + * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro. + (gl_SPAWN_H): Require it. + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise. + Reported by Simon Josefsson. + +2010-03-18 Bruno Haible + + Fix typo introduced on 2009-12-31. + * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of + posix_spawn_file_actions_adddup2. + +2010-03-17 Bert Wesarg (tiny change) + and Eric Blake + + test-vc-list-files-git: make more robust + * tests/test-vc-list-files-git.sh: Unset problematic environment + variables. Chain commands together. + +2010-03-17 Ludovic Courtès (tiny change) + + * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second + `AC_CHECK_DECL' invocation. + +2010-03-15 Sergey Poznyakoff + + * lib/inttostr.c (inttostr): Make sure the invocation of verify + appears before executable statements. Suggested by Petr Sumbera + . + +2010-03-14 Bruno Haible + + * tests/test-flock.c (test_exclusive): Comment out a test that causes + portability problems. Instead use a simpler test. + (main): Check that invalid arguments are rejected only on Linux. + +2010-03-14 Bruno Haible + + Fix bug introduced on 2009-12-31. + * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke + gl_PREREQ_SYS_H_WINSOCK2 always. + * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove + SYS_SOCKET_H variable. + * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock. + Update comments. + * m4/ctype.m4 (gl_CTYPE_H): Update comments. + * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise. + * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise. + * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise. + * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise. + +2010-03-14 Bruno Haible + + Fix values returned by sinl, cosl. + * lib/trigl.h: Add specification comments. + * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula + that combines the values from the precomputed table with the values of + the Chebyshev polynomials. + +2010-03-14 Bruno Haible + + Fix compilation error when modules 'posix_spawn[p]' are not used. + * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here. + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here. + +2010-03-14 Bruno Haible + + Fix compilation error on mingw when module 'time_r' is not used. + * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R + is 1. + * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise. + * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR. + * modules/time (Makefile.am): Substitute GNULIB_TIME_R. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R. + +2010-03-14 Bruno Haible + + Fix compilation error with Sun C. + * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN. + Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX + instead of GCC specific ULONG_LONG_MAX. + * lib/xstrtoll.c: Likewise. + * lib/xstrtoull.c: Likewise. + +2010-03-13 Bruno Haible + + Allow the user to disable C++ code and tests. + * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro. + (gl_PROG_ANSI_CXX): Require it. + +2010-03-13 Bruno Haible + + * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special + cases. + +2010-03-13 Bruno Haible + + Test that gnulib does not break the standard C++ headers. + * tests/test-locale-c++2.cc: New file. + * modules/locale-tests (Files): Add it. + (Makefile.am): Compile it for test-locale-c++. + * tests/test-math-c++2.cc: New file. + * modules/math-tests (Files): Add it. + (Makefile.am): Compile it for test-math-c++. + * tests/test-signal-c++2.cc: New file. + * modules/signal-tests (Files): Add it. + (Makefile.am): Compile it for test-signal-c++. + * tests/test-stdio-c++2.cc: New file. + * modules/stdio-tests (Files): Add it. + (Makefile.am): Compile it for test-stdio-c++. + * tests/test-stdlib-c++2.cc: New file. + * modules/stdlib-tests (Files): Add it. + (Makefile.am): Compile it for test-stdlib-c++. + * tests/test-string-c++2.cc: New file. + * modules/string-tests (Files): Add it. + (Makefile.am): Compile it for test-string-c++. + * tests/test-time-c++2.cc: New file. + * modules/time-tests (Files): Add it. + (Makefile.am): Compile it for test-time-c++. + Reported by John W. Eaton . + +2010-03-13 Bruno Haible + + * gnulib-tool (func_usage): Clarify which options are available for + --create-testdir and --create-megatestdir. + +2010-03-13 Bruno Haible + + Fix compilation error with glibc >= 2.10 and g++ >= 4.4. + * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro. + * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro. + * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk, + strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN + when appropriate. + Reported by Jim Meyering. + +2010-03-12 Simon Josefsson + + * gnulib-tool (func_import): Explain origin of code. + +2010-03-12 Bruno Haible + + Fix problem with automake's definition of CXXLINK. + * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG. + Reported by Simon Josefsson and Ludovic Courtès. + +2010-03-12 Bruno Haible + + * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's + stable releases. + +2010-03-11 Bruno Haible + + Fix problems with overloaded C++ definitions of memchr, strpbrk, etc. + * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless + whether the system provides one variant or multiple variants of the + function. + * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all + C++ compilers. + (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use + _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. + Reported by Jim Meyering. + +2010-03-09 Simon Josefsson + + * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug. + +2010-03-08 Bruno Haible + + gnulib-tool: Add support for --libtool in --create-testdir. + * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables. + (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE. + +2010-03-08 Eric Blake + + gnulib-tool.texi: mention possibility of git submodule + * doc/gnulib-tool.texi (VCS Issues): Add details about using git + submodules. + * doc/.gitignore: Ignore another generated file. + +2010-03-08 Karl Berry + + * doc/gnulib-tool.texi (VCS Issues): Mention third option + of committing gnulib files while skipping others. + +2010-03-07 Bruno Haible + + Tests of module 'wctype' in C++ mode. + * tests/test-wctype-c++.cc: New file. + * modules/wctype-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-wctype-c++. + + Tests of module 'wchar' in C++ mode. + * tests/test-wchar-c++.cc: New file. + * modules/wchar-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-wchar-c++. + * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'unistd' in C++ mode. + * tests/test-unistd-c++.cc: New file. + * modules/unistd-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-unistd-c++. + * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'time' in C++ mode. + * tests/test-time-c++.cc: New file. + * modules/time-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-time-c++. + * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR. + + Tests of module 'sys_time' in C++ mode. + * tests/test-sys_time-c++.cc: New file. + * modules/sys_time-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-sys_time-c++. + * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'sys_stat' in C++ mode. + * tests/test-sys_stat-c++.cc: New file. + * modules/sys_stat-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-sys_stat-c++. + * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'sys_socket' in C++ mode. + * tests/test-sys_socket-c++.cc: New file. + * modules/sys_socket-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-sys_socket-c++. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'sys_select' in C++ mode. + * tests/test-sys_select-c++.cc: New file. + * modules/sys_select-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-sys_select-c++. + * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'sys_ioctl' in C++ mode. + * tests/test-sys_ioctl-c++.cc: New file. + * modules/sys_ioctl-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-sys_ioctl-c++. + * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'string' in C++ mode. + * tests/test-string-c++.cc: New file. + * modules/string-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-string-c++. + * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'stdlib' in C++ mode. + * tests/test-stdlib-c++.cc: New file. + * modules/stdlib-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-stdlib-c++. + * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'stdio' in C++ mode. + * tests/test-stdio-c++.cc: New file. + * modules/stdio-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-stdio-c++. + * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'spawn' in C++ mode. + * tests/test-spawn-c++.cc: New file. + * modules/spawn-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-spawn-c++. + * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'signal' in C++ mode. + * tests/test-signal-c++.cc: New file. + * modules/signal-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-signal-c++. + * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'search' in C++ mode. + * tests/test-search-c++.cc: New file. + * modules/search-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-search-c++. + * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'math' in C++ mode. + * tests/test-math-c++.cc: New file. + * modules/math-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-math-c++. + * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR. + + Tests of module 'locale' in C++ mode. + * tests/test-locale-c++.cc: New file. + * modules/locale-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-locale-c++. + * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'langinfo' in C++ mode. + * tests/test-langinfo-c++.cc: New file. + * modules/langinfo-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-langinfo-c++. + * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'iconv-h' in C++ mode. + * tests/test-iconv-h-c++.cc: New file. + * modules/iconv-h-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-iconv-h-c++. + + Tests of module 'glob' in C++ mode. + * tests/test-glob-c++.cc: New file. + * modules/glob-tests (Files): Add it. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-glob-c++. + + Tests of module 'fcntl-h' in C++ mode. + * tests/test-fcntl-h-c++.cc: New file. + * modules/fcntl-h-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-fcntl-h-c++. + * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + Tests of module 'dirent' in C++ mode. + * tests/test-dirent-c++.cc: New file. + * modules/dirent-tests (Files): Add it and tests/signature.h. + (Depends-on): Add ansi-c++-opt. + (Makefile.am): Arrange to compile and run test-dirent-c++. + * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR. + + New module 'ansi-c++-opt'. + * modules/ansi-c++-opt: New file. + * m4/ansi-c++.m4: New file, from GNU gettext with modifications. + + Document C++ namespace mode. + * doc/gnulib.texi (A C++ namespace for gnulib): New section. + + wctype: Avoid #define replacements in C++ mode. + * lib/wctype.in.h: Include c++defs.h, warn-on-use.h. + (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, + iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper): + In C++, define a namespaced alias symbol. + * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H. + * modules/wctype (Depends-on): Add c++defs, warn-on-use. + (Makefile.am): Provide a wctype.h replacement always. Update wctype.h + rule. + + wchar: Avoid #define replacements in C++ mode. + * lib/wchar.in.h: Include c++defs.h. + (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, + wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias + symbol. + (wcwidth): Likewise. Fix prototype to be POSIX compliant. + * modules/wchar (Depends-on): Add c++defs. + (Makefile.am): Update wchar.h rule. + + unistd: Avoid #define replacements in C++ mode. + * lib/unistd.in.h: Include c++defs.h. + (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir, + fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize, + getgroups, gethostname, getlogin, getlogin_r, getpagesize, + getusershell, setusershell, endusershell, lchown, link, linkat, lseek, + pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat, + unlink, unlinkat, usleep, write): In C++, define a namespaced alias + symbol. + (environ): Update. + * modules/unistd (Depends-on): Add c++defs. + (Makefile.am): Update unistd.h rule. + + time: Avoid #define replacements in C++ mode. + * lib/time.in.h: Include c++defs.h, warn-on-use.h. + (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++, + define a namespaced alias symbol. + * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro. + (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME, + GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM. + * modules/time (Depends-on): Add c++defs, warn-on-use. + (Makefile.am): Update time.h rule. + * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR. + * modules/nanosleep (configure.ac): Likewise. + * modules/strptime (configure.ac): Likewise. + * modules/timegm (configure.ac): Likewise. + + sys_time: Avoid #define replacements in C++ mode. + * lib/sys_time.in.h: Include c++defs.h. + (gettimeofday): In C++, define a namespaced alias symbol. + * modules/sys_time (Depends-on): Add c++defs. + (Makefile.am): Update sys/time.h rule. + + sys_stat: Avoid #define replacements in C++ mode. + * lib/sys_stat.in.h: Include c++defs.h. + (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat, + mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a + namespaced alias symbol. + In C++, define a namespaced alias symbol. + * modules/sys_stat (Depends-on): Add c++defs. + (Makefile.am): Update sys/stat.h rule. + + sys_socket: Avoid #define replacements in C++ mode. + * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin. + Include c++defs.h. Include warn-on-use.h earlier. Enable the function + definitions also when the system has a . + (socket, connect, accept, bind, getpeername, getsockname, getsockopt, + listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4): + In C++, define a namespaced alias symbol. + * modules/sys_socket (Depends-on): Add c++defs. + (Makefile.am): Update sys/socket.h rule. + + sys_select: Avoid #define replacements in C++ mode. + * lib/sys_select.in.h: Include c++defs.h. Enable the function + definitions also when the system has a . + (select): In C++, define a namespaced alias symbol. + * modules/sys_select (Depends-on): Add c++defs. + (Makefile.am): Update sys/select.h rule. + + sys_ioctl: Avoid #define replacements in C++ mode. + * lib/sys_ioctl.in.h: Include c++defs.h. + (ioctl): In C++, define a namespaced alias symbol. + * modules/sys_ioctl (Depends-on): Add c++defs. + (Makefile.am): Update sys/ioctl.h rule. + + string: Avoid #define replacements in C++ mode. + * lib/string.in.h: Include c++defs.h. + (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy. + (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy, + strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr, + strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror, + strsignal, strverscmp): In C++, define a namespaced alias symbol. + * modules/string (Depends-on): Add c++defs. + (Makefile.am): Update string.h rule. + + stdlib: Avoid #define replacements in C++ mode. + * lib/stdlib.in.h: Include c++defs.h. + (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc, + mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r, + srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv, + strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias + symbol. + * modules/stdlib (Depends-on): Add c++defs. + (Makefile.am): Update stdlib.h rule. + + stdio: Avoid #define replacements in C++ mode. + * lib/stdio.in.h: Include c++defs.h. + (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs, + freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline, + obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar, + puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf, + vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a + namespaced alias symbol. + * modules/stdio (Depends-on): Add c++defs. + (Makefile.am): Update stdio.h rule. + + spawn: Avoid #define replacements in C++ mode. + * lib/spawn.in.h: Include c++defs.h. + (posix_spawn, posix_spawnp, posix_spawnattr_init, + posix_spawnattr_destroy, posix_spawnattr_getsigdefault, + posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask, + posix_spawnattr_setsigmask, posix_spawnattr_getflags, + posix_spawnattr_setflags, posix_spawnattr_getpgroup, + posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy, + posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, + posix_spawnattr_setschedparam, posix_spawn_file_actions_init, + posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen, + posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2): + In C++, define a namespaced alias symbol. + * modules/spawn (Depends-on): Add c++defs. + (Makefile.am): Update spawn.h rule. + + signal: Avoid #define replacements in C++ mode. + * lib/signal.in.h: Include c++defs.h. + (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset, + sigpending, sigprocmask, signal, raise, sigaction): In C++, define a + namespaced alias symbol. + * modules/signal (Depends-on): Add c++defs. + (Makefile.am): Update signal.h rule. + + search: Avoid #define replacements in C++ mode. + * lib/search.in.h: Include c++defs.h. + (_gl_search_compar_fn, _gl_search_action_fn): New types. + (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias + symbol. + * modules/search (Depends-on): Add c++defs. + (Makefile.am): Update search.h rule. + + math: Avoid #define replacements in C++ mode. + * lib/math.in.h: Include c++defs.h. + (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl, + frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf, + trunc, truncl): In C++, define a namespaced alias symbol. + * modules/math (Depends-on): Add c++defs. + (Makefile.am): Update math.h rule. + + locale: Avoid #define replacements in C++ mode. + * lib/locale.in.h: Include c++defs.h. + (duplocale): In C++, define a namespaced alias symbol. + * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE. + * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE. + * modules/locale (Depends-on): Add c++defs. + (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE. + + langinfo: Avoid #define replacements in C++ mode. + * lib/langinfo.in.h: Include c++defs.h. + (nl_langinfo): In C++, define a namespaced alias symbol. + * modules/langinfo (Depends-on): Add c++defs. + (Makefile.am): Update langinfo.h rule. + + iconv-h: Avoid #define replacements in C++ mode. + * lib/iconv.in.h: Include c++defs.h, warn-on-use.h. + (iconv_open, iconv, iconv_close): In C++, define a namespaced alias + symbol. + * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H + whenever iconv is present. + * modules/iconv-h (Depends-on): Add c++defs, warn-on-use. + (Makefile.am): Update iconv.h rule. + + glob: Avoid #define replacements in C++ mode. + * lib/glob.in.h: Include c++defs.h, warn-on-use.h. + (_gl_glob_errfunc_fn): New type. + (glob, globfree, glob_pattern_p): In C++, define a namespaced alias + symbol. + * modules/glob (Depends-on): Add c++defs, warn-on-use. + (Makefile.am): Update glob.h rule. + + fcntl-h: Avoid #define replacements in C++ mode. + * lib/fcntl.in.h: Include c++defs.h. + (fcntl, open, openat): In C++, define a namespaced alias symbol. + * modules/fcntl-h (Depends-on): Add c++defs. + (Makefile.am): Update fcntl.h rule. + + dirent: Avoid #define replacements in C++ mode. + * lib/dirent.in.h: Include c++defs.h. + (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a + namespaced alias symbol. + (dirfd): Update declaration. + * modules/dirent (Depends-on): Add c++defs. + (Makefile.am): Update dirent.h rule. + + ctype: Make it usable in C++ code. + * lib/ctype.in.h: Include c++defs.h. + (isblank): Declare as extern "C". + * modules/ctype (Depends-on): Add c++defs. + (Makefile.am): Update ctype.h rule. + + New module 'c++defs'. + * modules/c++defs: New file. + * build-aux/c++defs.h: New file. + Reported by John W. Eaton . + +2010-03-07 Bruno Haible + + logb: Provide missing declaration for Cygwin. + * lib/math.in.h (logb): New declaration. + * m4/logb.m4: New file. + * modules/logb (Files): Add m4/logb.m4. + (Depends-on): Add math. + (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR. + * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration. + (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB. + * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB. + * doc/posix-functions/logb.texi: Mention the Cygwin bug. + +2010-03-07 Bruno Haible + + Fix test-cond link error. + * tests/test-cond.c: Include . + +2010-03-07 Bruno Haible + + Fix test-dirent-safer link error. + * modules/dirent-safer-tests (Makefile.am): Define + test_dirent_safer_LDADD. + +2010-03-07 Bruno Haible + + * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module + among default module list. + +2010-03-07 Bruno Haible + + Fix link error on platforms with GNU libiconv. + * modules/unistr/u8-strcoll-tests (Makefile): Define + test_u8_strcoll_LDADD. + * modules/unistr/u16-strcoll-tests (Makefile): Define + test_u16_strcoll_LDADD. + * modules/unistr/u32-strcoll-tests (Makefile): Define + test_u32_strcoll_LDADD. + +2010-03-07 Bruno Haible + + Use POSIX declarations for socket functions. + * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind, + rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom, + rpl_sendto): Change declaration to match POSIX. + * lib/connect.c (rpl_connect): Likewise. + * lib/accept.c (rpl_accept): Likewise. + * lib/bind.c (rpl_bind): Likewise. + * lib/getpeername.c (rpl_getpeername): Likewise. + * lib/getsockname.c (rpl_getsockname): Likewise. + * lib/recv.c (rpl_recv): Likewise. + * lib/send.c (rpl_send): Likewise. + * lib/recvfrom.c (rpl_recvfrom): Likewise. + * lib/sendto.c (rpl_sendto): Likewise. + +2010-03-06 Bruno Haible + + Clarify access, euidaccess, faccessat. + * doc/posix-functions/faccessat.texi: Mention security problem under + "Other problems", not "Portability problems". + * doc/posix-functions/access.texi: Likewise. Mention a related security + problem. + * doc/glibc-functions/euidaccess.texi: Mention security problems. + * lib/euidaccess.c: Add comments about platforms. + * lib/unistd.in.h (access, euidaccess): Add warnings. + +2010-03-07 Bruno Haible + + Ensure posix_spawnattr_{get,set}sched{policy,param} are defined. + * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback. + (POSIX_SPAWN_SETSCHEDULER): Likewise. + (POSIX_SPAWN_USEVFORK): Define in a way that works when + POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero. + (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also + declare when POSIX_SPAWN_SETSCHEDULER is zero. + (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also + declare when POSIX_SPAWN_SETSCHEDPARAM is zero. + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether + POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero. + * modules/posix_spawnattr_getschedparam (configure.ac): Enable the + replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero. + * modules/posix_spawnattr_setschedparam (configure.ac): Likewise. + * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the + replacement also when POSIX_SPAWN_SETSCHEDULER is zero. + * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise. + * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do + nothing if POSIX_SPAWN_SETSCHEDPARAM is zero. + * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam): + Likewise. + * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do + nothing if POSIX_SPAWN_SETSCHEDULER is zero. + * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy): + Likewise. + * tests/test-spawn.c (main): Make it work when + POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero. + +2010-03-07 Bruno Haible + + Fix incorrect Makefile.am generation in German locale. + * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): + Execute sed command with character range in C locale. + +2010-03-06 Bruno Haible + + Tests for module 'iconv-h'. + * modules/iconv-h-tests: New file. + * tests/test-iconv-h.c: New file. + + New module 'iconv-h'. + * modules/iconv-h: New file. + * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4. + (Depends-on): Add iconv-h. Remove include_next, arg-nonnull. + (configure.ac): Remove gl_ICONV_H. + (Makefile.am): Remove rule for iconv.h. + +2010-03-06 Bruno Haible + + More consistent naming of *.m4 files. + * m4/wctype_h.m4: Renamed from m4/wctype.m4. + * modules/wctype (Files): Update. + + More consistent naming of *.m4 files. + * m4/wchar_h.m4: Renamed from m4/wchar.m4. + * modules/wchar (Files): Update. + +2010-03-06 Jim Meyering + + euidaccess: relax license to LGPLv2+ + * modules/euidaccess (License): Relax to LGPLv2+. + +2010-03-06 Bruno Haible + + Prefer lib_SOURCES over unconditional AC_LIBOBJ. + * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation. + (Makefile.am): Augment lib_SOURCES instead. + +2010-03-04 Jim Meyering + + utime: remove obsolete module + This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been + unnecessary for years, and has been marked as obsolete for 10 months. + * modules/utime: Remove file. + * lib/utime.c: Remove file. + * m4/utime.m4: Remove file. + * m4/utimes-null.m4: Remove file. + * doc/posix-functions/utime.texi (utime): Remove reference to + the module. Move the sole "fixed by gnulib" item into the + "problems not fixed by Gnulib" list. + * MODULES.html.sh (func_all_modules): Remove reference to "utime". + +2010-03-05 Simon Josefsson + + * modules/exit (License): Relax license to LGPLv2+. + (Status): Mark as obsolete. + * NEWS: Mention deprecated 'exit' module. + * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead + of now obsolete 'exit'. + +2010-03-02 Ralf Wildenhues + + fts-lgpl: remove unused module + * modules/fts-lgpl: Remove. + * MODULES.html.sh (func_all_modules): Adjust. + * check-module (find_included_lib_files): Adjust. + * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove. + +2010-03-02 Ben Walton (tiny change) + + copy-acl: enhance Solaris ACL error handling + * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP. + * lib/set-mode-acl.c (qset_acl): Likewise. + +2010-03-02 Bruno Haible + + spawn: Don't override the system defined values on FreeBSD 8. + * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP, + POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK, + POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine + if HAVE_POSIX_SPAWN is 1. + Reported by Johan van Selst via Eric Blake. + +2010-03-01 Bruno Haible + + * doc/gnulib-tool.texi (Initial import): Clarify the requirements + regarding Automake. + +2010-02-25 Bruno Haible + + Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21. + * gnulib-tool: Define 'echo' as a function only before the ksh alias + setting, not afterwards. + Reported by Ben Walton . + +2010-02-24 Eric Blake + + bootstrap, git-version-gen: use timestamp + * build-aux/git-version-gen (scriptversion): Force UTC. + * build-aux/bootstrap (scriptversion): New variable. + + bootstrap: allow older git + * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is + older than 1.6.4. Requested by the libvirt project. + +2010-02-23 Eric Blake + + warn-on-use: work with old autoconf + * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older + AS_VAR semantics of autoconf 2.60. + Reported by Bruno Haible. + + bootstrap: improve some comments + * build-aux/bootstrap: Drop unneeded emacs hint. Add some + clarification comments. + + gettimeofday: provide correct function + * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only + when replacement is declared, otherwise provide gettimeofday. + Reported by Michael Goffioul. + +2010-02-23 Jim Meyering + + lib-ignore: relax license to "unlimited", not LGPLv2+ + * modules/lib-ignore (License): Relax to "unlimited". + +2010-02-23 Jim Meyering + + lib-ignore: relax license to LGPLv2+ + * modules/lib-ignore (License): Relax to LGPLv2+. + +2010-02-22 Eric Blake + + lseek: avoid bash 3.2 broken pipe bug + * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious + warning from bash 3.2. + Reported by Ben Pfaff, with analysis from Bruno Haible. + + bootstrap: support non-FSF copyright holder + * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow + bootstrap.conf override of COPYRIGHT_HOLDER. + (MSGID_BUGS_ADDRESS): Allow URL rather than email. + + bootstrap: interoperate with gettext 0.14.1 + * build-aux/bootstrap (slurp): Fix typo when using older gettext. + + bootstrap: allow for alternate submodule location + * build-aux/bootstrap (gnulib_path): New variable; use instead of + hardcoding submodule location. + (gnulib_mk): Allow direct use of Makefile.am. + + bootstrap: use GNULIB_SRCDIR to reduce disk usage + * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference, + rather than reconfiguring where the submodule points. + + gettimeofday: restore support for platforms that lack function + * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile + replacement if function is missing. + * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness. + * modules/sys_time (Makefile.am): Substitute it. + * lib/sys_time.in.h (gettimeofday): Check it. + Reported by Michael Goffioul. + +2010-02-21 Bruno Haible + + * lib/stdio.in.h (obstack_printf): Fix typo. + +2010-02-21 Jose E. Marchesi + + vc-list-files: use bzr ls's -R option + * build-aux/vc-list-files: Invoke bazaar to generate a recursive + list of versioned files based on 'dir' (usage of -R in 'bzr ls'). + +2010-02-21 Jim Meyering + + init.sh: fix EXEEXT shims to work also for names like test-prog + * tests/init.sh: Re-exec a better shell, when needed. + If the current shell lacks support for posix $(...), an init.sh-using + test will now try to find a shell that supports that. If EXEEXT is + nonempty, we also require support for hyphen-in-alias-name and shell + substitutions like ${var#glob}. Failure to find such a shell results + in a skipped test. + +2010-02-21 Bruno Haible + + Really work around around "broken pipe" error message from bash 3.2. + * gnulib-tool (func_reset_sigpipe): Remove function. + (echo): In bash 3.2, define to a function that uses printf. + Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff. + +2010-02-20 Bruno Haible + + Restore support for automake 1.9.6 with autoconf 2.61. + * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed. + Reported by James Youngman . + +2010-02-20 Bruno Haible + + Improve *printf warning condition. + * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning + also if GNULIB_POSIXCHECK is defined, the *-posix module is not used, + and the function is overridden due to SIGPIPE emulation. + +2010-02-20 Bruno Haible + + * lib/stdio.in.h: Tweak comments. + +2010-02-19 Bruno Haible + + Make it easier to find modules. New gnulib-tool option '--find'. + * gnulib-tool: New option --find. + (func_usage): Document it. + (func_sanitize_modulelist): New function, extracted from + func_all_modules. + (func_all_modules): Invoke it. + * doc/gnulib-tool.texi (Which modules?): New node. + +2010-02-18 Markus Duft (tiny change) + + * lib/sys_select.in.h: Provide select replacement even if + sys/select.h exists on a system, for Interix. + +2010-02-18 Jim Meyering + + init.sh: don't use $(...) just yet + * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...), + to accommodate e.g., Solaris' /bin/sh. + +2010-02-17 Bruno Haible + + * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem. + Reported by Ludovic Courtès . + +2010-02-16 Simon Josefsson + + * modules/userspec-tests (test_userspec_LDADD): Add variable, for + linking with -lintl. + +2010-02-17 Simon Josefsson + + * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0 + if not provided by the system's netdb.h. Reported by + ludo@gnu.org (Ludovic Courtès). + +2010-02-15 Jim Meyering + + init.sh: improve portability and efficiency + * tests/init.sh (find_exe_basenames_): Remove unnecessary use of + "dummy" in a for loop. + Use '!', not '^' to select the complement of a character set used + in a "case" statement. + Use shell variable manipulation, a la ${...%.exe}, rather than sed. + Suggestions from Eric Blake. + + init.sh: automatically accommodate programs with the .exe suffix + Automatically arrange for an invocation of "prog" to execute the + program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations + may use the simpler "prog", yet still work when built on a system + that requires specifying the added suffix. + Do this by constructing a function named "prog" that invokes + "prog.exe" for each .exe file in selected directories. + * tests/init.sh (find_exe_basenames_): New function. + (create_exe_shim_functions_): New function. + (path_prepend_): Use it. + + maint.mk: mark syntax-check sc_*.m rules as .PHONY + * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that + "make -t syntax-check" doesn't create a ton of sc_*.m files. + +2010-02-14 Jim Meyering + + maint.mk: prohibit inclusion of "hash-pjw.h" without_use + * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@". + (sc_prohibit_hash_pjw_without_use): New rule. + + maint.mk: allow the default upload destination dir to be overridden + * top/maint.mk (upload_dest_dir_): Define with a default that + preserves the status quo. + (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE). + Reported by Peter Simons. + + maint.mk: prohibit inclusion of "hash.h" without_use + * top/maint.mk (sc_prohibit_hash_without_use): New rule. + +2010-02-10 Jim Meyering + + maint.mk: prohibit inclusion of "ignore-value.h" without_use + * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule. + +2010-02-09 Eric Blake + and Bruno Haible + + obstack-printf-posix: ensure declaration + * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro, + extracted from gl_FUNC_OBSTACK_PRINTF. + (gl_FUNC_OBSTACK_PRINTF): Invoke it. + * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): + Likewise. + * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also + if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is + 0. + +2010-02-08 Bruno Haible + + gnulib-tool: Fix typo in 2010-02-07 commit. + * gnulib-tool (func_get_dependencies): Fix typo in last commit. + Reported by Eric Blake. + +2010-02-07 Bruno Haible + + gnulib-tool: Fix up caching patches. + * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove + option --no-cache. Use associative arrays when supported by the shell. + (sed_comments): New variable. + (modcache): Renamed from do_cache. + (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't + abbreviate unnecessarily. + (have_associative): New variable. + (func_cache_var): Define correctly for bash 1.x. Define in an optimized + way also for ksh and zsh. + (func_init_sed_convert_to_cache_statements): New function, extracted + from func_cache_lookup_module. Add support for associative arrays. + Don't set the c_MODULE_cached variable here. Ignore all lines before + the first field header. Remove only the final newline, not all trailing + newlines. Support empty fields correctly. Limit the use of 'eval' to + assignments. + (func_get_description, func_get_status, func_get_notice, + func_get_applicability, func_get_filelist, func_get_dependencies, + func_get_autoconf_early_snippet, func_get_autoconf_snippet, + func_get_automake_snippet, func_get_include_directive, + func_get_link_directive, func_get_license, func_get_maintainer): + Update documentation. List the unoptimized code first. Add support for + associative arrays. Limit the use of 'eval' to assignments. + (func_get_applicability): Undo stylistic pessimisations. + (func_get_automake_snippet, func_get_include_directive): Reduce code + duplication. + (func_modules_transitive_closure, func_modules_add_dummy, + func_modules_notice, func_modules_to_filelist, func_add_file, + func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars, + func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import, + func_create_testdir, func_create_megatestdir): Update documentation. + +2010-01-18 Ralf Wildenhues + + * gnulib-tool (func_cache_lookup_module): Store the module name + belonging to the cache variable; error out if two different + module names map to the same cache variable name. + +2010-01-18 Ralf Wildenhues + + gnulib-tool: Make caching optional. + * gnulib-tool: Accept option --no-cache, turning off $do_cache. + Update matching short versions of --no-changelog. + (func_usage): Update. + (sed_extract_cache_prog): Renamed from ... + (sed_extract_prog): ... this; revert to old extraction script. + (func_get_description, func_get_status) + (func_get_notice, func_get_applicability, func_get_filelist) + (func_get_dependencies, func_get_autoconf_early_snippet) + (func_get_autoconf_snippet, func_get_automake_snippet) + (func_get_include_directive, func_get_link_directive) + (func_get_license, func_get_maintainer): If $do_cache is false, + use old, non-caching extraction scripts. + Suggestion by Bruno Haible. + +2010-01-17 Ralf Wildenhues + + gnulib-tool: cache module metainformation. + * gnulib-tool (sed_extract_prog): Match newline before each + header, and rewrite header to a shell variable suffix. + (func_cache_var, func_cache_lookup_module): New functions, + to turn a module name into a cache variable prefix, and to + look up and cache module metainformation. + (func_get_description, func_get_status) + (func_get_notice, func_get_applicability, func_get_filelist) + (func_get_dependencies, func_get_autoconf_early_snippet) + (func_get_autoconf_snippet, func_get_automake_snippet) + (func_get_include_directive, func_get_link_directive) + (func_get_license, func_get_maintainer): Use + func_cache_lookup_module. + +2010-02-07 Bruno Haible + + fnctl: Fix missing dependency. + * modules/fcntl (Depends-on): Add getdtablesize. + Reported by John W. Eaton . + +2010-02-05 Sergey Poznyakoff + + Argp: fix recognition of short alias options. + + * lib/argp-parse.c (convert_options): Fix improper use of + `|' between character values. + * tests/test-argp.c (group1_option): New alias option + --read (-r). + (group1_parser): Special handling for 'r'. + (test15): New test case. + (test_fun): Add test15. + * tests/test-argp-2.sh: Update expected --help and --usage + outputs. + +2010-02-05 Sergey Poznyakoff + + * tests/test-argp.c: Fix indentation. + +2010-02-04 Eric Blake + + gettimeofday: expose type of second argument + * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection + of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE. + * tests/test-gettimeofday.c: Use it to silence warning. + * doc/posix-functions/gettimeofday.texi (gettimeofday): Document + the issue. + +2010-02-03 Jim Meyering + + regcomp.c: avoid the sole warning from gcc's -Wtype-limits + * lib/regcomp.c (TYPE_SIGNED): Define. + (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits. + + regcomp.c: avoid a new -Wshadow warning + * lib/regcomp.c (create_initial_state): Do not shadow local "err". + +2010-02-01 Jim Meyering + + removing useless parentheses in cpp #define directives + For motivation, see commit c0221df4, "define STREQ(a,b) + consistently, removing useless parentheses" + * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses. + * lib/mountlist.c (MNT_IGNORE): Likewise. + * lib/trim.h (trim, trim_trailing, trim_leading): Likewise. + +2010-02-01 Eric Blake + + sys_time: use link-warning + * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults... + (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro. + (gl_SYS_TIME_MODULE_INDICATOR): New macro. + * modules/sys_time (Depends-on): Add warn-on-use. + (Makefile.am): Always build replacement. + (configure.ac): Update substitutions. + * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY) + (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer + bother with SYS_TIME_H. + * modules/gettimeofday (configure.ac): Declare indicator. + * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not + in use. + + closein-tests: silence compiler warning + * tests/test-closein.c (main): Ignore fread result. + * modules/closein-tests (Depends-on): Add ignore-value. + + tests: silence warning about system return + * tests/test-areadlink-with-size.c (main): Ignore system result. + * tests/test-areadlink.c (main): Likewise. + * tests/test-areadlinkat-with-size.c (main): Likewise. + * tests/test-areadlinkat.c (main): Likewise. + * tests/test-canonicalize-lgpl.c (main): Likewise. + * tests/test-canonicalize.c (main): Likewise. + * tests/test-chown.c (main): Likewise. + * tests/test-fchownat.c (main): Likewise. + * tests/test-fdutimensat.c (main): Likewise. + * tests/test-fstatat.c (main): Likewise. + * tests/test-futimens.c (main): Likewise. + * tests/test-lchown.c (main): Likewise. + * tests/test-link.c (main): Likewise. + * tests/test-linkat.c (main): Likewise. + * tests/test-lstat.c (main): Likewise. + * tests/test-mkdir.c (main): Likewise. + * tests/test-mkdirat.c (main): Likewise. + * tests/test-mkfifo.c (main): Likewise. + * tests/test-mkfifoat.c (main): Likewise. + * tests/test-mknod.c (main): Likewise. + * tests/test-readlink.c (main): Likewise. + * tests/test-remove.c (main): Likewise. + * tests/test-rename.c (main): Likewise. + * tests/test-renameat.c (main): Likewise. + * tests/test-rmdir.c (main): Likewise. + * tests/test-symlink.c (main): Likewise. + * tests/test-symlinkat.c (main): Likewise. + * tests/test-unlink.c (main): Likewise. + * tests/test-unlinkat.c (main): Likewise. + * tests/test-utimens.c (main): Likewise. + * tests/test-utimensat.c (main): Likewise. + * modules/areadlink-tests (Depends-on): Add ignore-value. + * modules/areadlink-with-size-tests (Depends-on): Likewise. + * modules/areadlinkat-tests (Depends-on): Likewise. + * modules/areadlinkat-with-size-tests (Depends-on): Likewise. + * modules/canonicalize-lgpl-tests (Depends-on): Likewise. + * modules/canonicalize-tests (Depends-on): Likewise. + * modules/chown-tests (Depends-on): Likewise. + * modules/fdutimensat-tests (Depends-on): Likewise. + * modules/futimens-tests (Depends-on): Likewise. + * modules/lchown-tests (Depends-on): Likewise. + * modules/link-tests (Depends-on): Likewise. + * modules/linkat-tests (Depends-on): Likewise. + * modules/lstat-tests (Depends-on): Likewise. + * modules/mkdir-tests (Depends-on): Likewise. + * modules/mkfifo-tests (Depends-on): Likewise. + * modules/mkfifoat-tests (Depends-on): Likewise. + * modules/mknod-tests (Depends-on): Likewise. + * modules/openat-tests (Depends-on): Likewise. + * modules/readlink-tests (Depends-on): Likewise. + * modules/remove-tests (Depends-on): Likewise. + * modules/rename-tests (Depends-on): Likewise. + * modules/renameat-tests (Depends-on): Likewise. + * modules/rmdir-tests (Depends-on): Likewise. + * modules/symlink-tests (Depends-on): Likewise. + * modules/symlinkat-tests (Depends-on): Likewise. + * modules/unlink-tests (Depends-on): Likewise. + * modules/utimens-tests (Depends-on): Likewise. + * modules/utimensat-tests (Depends-on): Likewise. + +2010-01-31 Bruno Haible + + Perform the same test for many functions. + * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC, + gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros. + * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead + of gl_MATHFUNC. + * modules/acos (configure.ac): Likewise. + * modules/asin (configure.ac): Likewise. + * modules/atan (configure.ac): Likewise. + * modules/atan2 (configure.ac): Likewise. + * modules/cbrt (configure.ac): Likewise. + * modules/copysign (configure.ac): Likewise. + * modules/cos (configure.ac): Likewise. + * modules/cosh (configure.ac): Likewise. + * modules/erf (configure.ac): Likewise. + * modules/erfc (configure.ac): Likewise. + * modules/exp (configure.ac): Likewise. + * modules/fmod (configure.ac): Likewise. + * modules/hypot (configure.ac): Likewise. + * modules/j0 (configure.ac): Likewise. + * modules/j1 (configure.ac): Likewise. + * modules/jn (configure.ac): Likewise. + * modules/lgamma (configure.ac): Likewise. + * modules/log (configure.ac): Likewise. + * modules/log10 (configure.ac): Likewise. + * modules/log1p (configure.ac): Likewise. + * modules/pow (configure.ac): Likewise. + * modules/remainder (configure.ac): Likewise. + * modules/sin (configure.ac): Likewise. + * modules/sinh (configure.ac): Likewise. + * modules/tan (configure.ac): Likewise. + * modules/tanh (configure.ac): Likewise. + * modules/y0 (configure.ac): Likewise. + * modules/y1 (configure.ac): Likewise. + * modules/yn (configure.ac): Likewise. + Suggested by Paolo Bonzini. + +2010-01-31 Bruno Haible + + * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE. + +2010-01-31 Bruno Haible + + Work around getdelim() bug on FreeBSD 8.0. + * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an + initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does + not work. + * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM + is 1. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM. + * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM. + * tests/test-getdelim.c (main): Also test result for a NULL buffer and + a non-zero size. + * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug. + +2010-01-31 Bruno Haible + + Work around getline() bug on FreeBSD 8.0. + * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer + and a non-zero size. + * tests/test-getline.c (main): Likewise. + * doc/posix-functions/getline.texi: Mention the FreeBSD bug. + Reported by Dennis via Eric Blake. + +2010-01-28 Eric Blake + + regex: fix build failure + * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc + platforms. + +2010-01-28 Jim Meyering + + regex: do not ignore memory allocation failure + * lib/regex_internal.c (create_cd_newstate): Detect + re_node_set_init_copy failure. Extracted from glibc commit + 2da42bc06566bc89785e580fa1ac89b4c9f2a63c. + + regex: sync more white-space changes from libc + * lib/regex_internal.c: White-space only changes. + * lib/regexec.c: Likewise. + + regex: add many uses of __attribute_warn_unused_result__ + * lib/regex_internal.c: Use __attribute_warn_unused_result__. + * lib/regexec.c: Likewise. + Extracted from a messy glibc commit. + + regcomp.c: spelling and merge-artifact from glibc + * lib/regcomp.c: Merge remainder of glibc's + 2da42bc06566bc89785e580fa1ac89b4c9f2a63c. + + regcomp.c: sync white-space changes from glibc + * lib/regcomp.c: Merge to accommodate white space + changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c. + + regcomp.c: do not ignore internal return values + * lib/regcomp.c: Do not ignore internal return values. + This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c, + but without its white-space changes and spelling fixes. + + regex_internal.h: define __attribute_warn_unused_result__ + * lib/regex_internal.h (__attribute_warn_unused_result__): Define. + + maint: add a syntax-check rule to check for vulnerable Makefile.in + * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule. + +2010-01-27 Jim Meyering + + ncftpput-ftp: clean up spaces + * build-aux/ncftpput-ftp: Make Copyright line consistent. + Remove trailing blanks. + +2010-01-27 Simon Josefsson + + * build-aux/git-version-gen: Fix copyright statement. + * build-aux/gnupload: Likewise. + * tests/test-arcfour.c: Likewise. + * tests/test-arctwo.c: Likewise. + * tests/test-count-one-bits.c: Likewise. + * tests/test-crc.c: Likewise. + * tests/test-des.c: Likewise. + * tests/test-gc-arcfour.c: Likewise. + * tests/test-gc-arctwo.c: Likewise. + * tests/test-gc-des.c: Likewise. + * tests/test-gc-hmac-md5.c: Likewise. + * tests/test-gc-hmac-sha1.c: Likewise. + * tests/test-gc-md2.c: Likewise. + * tests/test-gc-md4.c: Likewise. + * tests/test-gc-md5.c: Likewise. + * tests/test-gc-pbkdf2-sha1.c: Likewise. + * tests/test-gc-rijndael.c: Likewise. + * tests/test-gc-sha1.c: Likewise. + * tests/test-gc.c: Likewise. + * tests/test-gethostname.c: Likewise. + * tests/test-gettimeofday.c: Likewise. + * tests/test-hash.c: Likewise. + * tests/test-hmac-md5.c: Likewise. + * tests/test-hmac-sha1.c: Likewise. + * tests/test-md2.c: Likewise. + * tests/test-md4.c: Likewise. + * tests/test-md5.c: Likewise. + * tests/test-memchr.c: Likewise. + * tests/test-memchr2.c: Likewise. + * tests/test-memcmp.c: Likewise. + * tests/test-memmem.c: Likewise. + * tests/test-memrchr.c: Likewise. + * tests/test-rawmemchr.c: Likewise. + * tests/test-read-file.c: Likewise. + * tests/test-rijndael.c: Likewise. + * tests/test-sockets.c: Likewise. + * tests/test-strchrnul.c: Likewise. + * tests/test-strstr.c: Likewise. + * tests/test-strtod.c: Likewise. + * build-aux/ncftpput-ftp: Likewise. + +2010-01-26 Eric Blake + + ignore-value: update recommended header name + * modules/ignore-value (Include): Only use <> for headers that + exist in glibc. + +2010-01-26 Jim Meyering + + test-userspec.c: avoid compiler warnings + * tests/test-userspec.c (main): Avoid shadowing ("uid"), + and "initialization discards qualifiers..." warnings. + Put the first "uid" in its own scope, and make char* members "const". + +2010-01-25 Bruno Haible + + gnulib-tool: Make warning diagnostics consistent. + * gnulib-tool (func_warning): New function. + Use it everywhere where gnulib-tool produces output to stderr and it is + not a fatal error. + +2010-01-25 Bruno Haible + + Fix test dependencies. + * modules/xstrtol-tests (Depends-on): Add inttypes. + * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll. + +2010-01-25 Pádraig Brady + + syntax-check: detect incorrect boolean macro values in config.h + * modules/maintainer-makefile (configure.ac): Parameterize the location + of config.h which will be available to makefiles as $(CONFIG_INCLUDE). + The logic is from Eric Blake and the location indicated by Jim Meyering. + Note the more natural CONFIG_HEADER name is prohibited by automake + for backwards compatibility reasons. + * top/maint.mk (sc_Wundef_boolean): New rule. + +2010-01-25 Jim Meyering + + bootstrap: detect MacOS 10.6's shasum, too + * build-aux/bootstrap: Also recognize MacOS 10.6's shasum. + Suggested by Thomas Treichl . + +2010-01-23 Jim Meyering + + xstrtoll: new module + * modules/xstrtoll: New file. + * MODULES.html.sh (Numeric conversion functions): Add xstrtoll. + * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull. + * lib/xstrtoll.c, lib/xstrtoull.c: New files. + ./configure fails if you use this module and lack "long long". + * modules/xstrtoll-tests: New module. + * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files. + * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the + new init.sh-based test framework. + 2010-01-24 Bruno Haible + Tests for module 'yn'. + * modules/yn-tests: New file. + * tests/test-yn.c: New file. + + Tests for module 'y1'. + * modules/y1-tests: New file. + * tests/test-y1.c: New file. + + Tests for module 'y0'. + * modules/y0-tests: New file. + * tests/test-y0.c: New file. + + Tests for module 'tanh'. + * modules/tanh-tests: New file. + * tests/test-tanh.c: New file. + + Tests for module 'tan'. + * modules/tan-tests: New file. + * tests/test-tan.c: New file. + + Tests for module 'sqrt'. + * modules/sqrt-tests: New file. + * tests/test-sqrt.c: New file. + + Tests for module 'sinh'. + * modules/sinh-tests: New file. + * tests/test-sinh.c: New file. + Tests for module 'sin'. * modules/sin-tests: New file. * tests/test-sin.c: New file. @@ -712,7 +2253,7 @@ * tests/test-xalloc-die.sh: Use $EXEEXT. 2010-01-12 Simon Josefsson - Bruno Haible + Bruno Haible getlogin, getlogin_r: Avoid test failure. * tests/test-getlogin.c: Include . @@ -1964,7 +3505,7 @@ (posix_spawn_file_actions_destroy) (posix_spawn_file_actions_addopen) (posix_spawn_file_actions_addclose) - (posix_spawwn_file_actions_adddup2): Likewise. + (posix_spawn_file_actions_adddup2): Likewise. * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t. * tests/test-signal.c (main): Enhance test.