X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=6cc031532e4e480944bee545bd53c1290d6d3834;hb=b187ff0528e2a081392a834e684d1d0c161708a7;hp=e97760a82547f06f8417a3c7fe94c0cc0144b766;hpb=94a90dcd0c3f540a91fa72038466c8af73730dcd;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index e97760a82..6cc031532 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,719 @@ +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 @@ -2789,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.