X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=88fffb876dfe0f5ca848fe2b293c9f5908e860a7;hb=b219cbd;hp=56b098722a7d4adb892b29e055a189c3fc6a4abe;hpb=602e3e6b709592f883ebb7bf58df1f955ea4b8f2;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 56b098722..71d19cc43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,1829 @@ +2010-04-24 Ian Beckwith + + make check: avoid an error when no .git dir present. + * Makefile (sc_prefer_ac_check_funcs_once): Don't run git grep + if .git directory is not present (e.g. in stable snapshot tarballs). + +2010-04-24 Bruno Haible + + vasnprintf: Correct errno value in case of out-of-memory. + * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF + or sprintf. Use the errno value from SNPRINTF or sprintf. + Reported by Ian Beckwith . + +2010-04-20 Andreas Gruenbacher + + * build-aux/bootstrap: Use "git -h" for testing for supported options + instead of "git --help". The short-form option only shows a summary, + and doesn't layout the full man page. Grep for the full option name + in the summary, too. + +2010-04-19 Bruno Haible + + relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am. + * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP. + * doc/relocatable-maint.texi (Supporting Relocation): Remove the + mention of RELOCATABLE_STRIP. + Reported by Sylvain Beucler . + +2010-04-19 Bruno Haible + + ioctl: Move autoconf macro to a .m4 file. + * m4/ioctl.m4: New file, extracted from modules/ioctl. + * modules/ioctl (Files): Add it. + (configure.ac): Simply invoke gl_FUNC_IOCTL. + Reported by Ian Beckwith . + +2010-04-16 Bruno Haible + + Override netdb.h always. + * modules/netdb (Makefile.am): Augment BUILT_SOURCES always. + * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H. + Reported by Ludovic Courtès . + +2010-04-15 Bruno Haible + + openpty: Fix mistake from 2010-03-21. + * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists. + Reported by Simon Josefsson. + +2010-04-15 Eric Blake + + test-forkpty: fix expected signature + * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const. + Reported by Simon Josefsson. + +2010-04-14 Eric Blake + + strtok_r: relax license to LGPLv2+ + * modules/strtok_r (License): Relax license. + Reported by Matthias Bolte. + +2010-04-13 Eric Blake + + getopt-gnu: match recent glibc fixes and posix ruling + * tests/test-getopt.h (test_getopt): Strengthen tests of leading + '+' handling, when requesting extensions. + * tests/test-getopt_long.h (test_getopt_long): Strengthen test of + 'W;' handling. + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug. + * doc/posix-functions/getopt.texi (getopt): Document this. + * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise. + * doc/glibc-functions/getopt_long_only.texi (getopt_long_only): + Likewise. + + getopt: merge bug fixes from glibc + * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;' + diagnostics. Honor '+:' correctly. Reject ';'. + + getopt-posix: detect MacOS bug + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of + optind when missing a required argument. + * doc/posix-functions/getopt.texi (getopt): Document the bug. + * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise. + * doc/glibc-functions/getopt_long_only.texi (getopt_long_only): + Likewise. + + getopt-posix: avoid spurious failure on Solaris + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as + an indicator that setting optind=1 is sufficient for reset. + + getopt-posix: avoid spurious failure on FreeBSD + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even + in POSIX mode, since the m4 test uses it. + +2010-04-13 Jim Meyering + + doc: users.txt: GNU patch now uses gnulib + * users.txt: Add patch. + +2010-04-12 Andreas Gruenbacher + + git-version-gen: use "git update-index..." rather than "git status" + * build-aux/git-version-gen: Use git update-index --refresh, not + "git status". With some versions of git, "git status" would fail + to update the index and result in an unwarranted "-dirty" suffix. + +2010-04-11 Bruno Haible + + libunistring: Correct value of $LTLIBUNISTRING. + * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv, + correct the value of $LTLIBUNISTRING. + +2010-04-11 Bruno Haible + + havelib: Add static libraries to LIBS in the right order. + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no + -l options, prepend it to $LIBS, instead of appending it to $LIBS. + +2010-04-11 Bruno Haible + + libunistring: Detect libunistring also when it depends on libiconv. + * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before + the second AC_LIB_HAVE_LINKFLAGS invocation. + +2010-04-11 Bruno Haible + + * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment. + +2010-04-10 Bruno Haible + + mkdir: Make it work on mingw64. + * lib/sys_stat.in.h: Include together with . + * lib/mkdir.c: Update comment. + Reported by Roman Donchenko (Роман Донченко) . + +2010-04-10 Jim Meyering + + maint.mk: correct a diagnostic + * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re + in diagnostic; now use $prohibit. + +2010-04-10 Bruno Haible + + fchownat: Fix a C++ test error on Solaris 8. + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if + the function does not exist. + +2010-04-10 Bruno Haible + + vasnprintf: Add more tests. + * tests/test-vasnprintf-posix.c: Include . + (test_function): Test converting an invalid wide string. + + vasnprintf: Correct handling of unconvertible wide string arguments. + * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and + gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99. + * modules/vasnprintf (Files): Add m4/printf.m4. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix crash in %ls directive. + * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide + string is passed as argument to %ls, with no precision and no width. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix multiple test failures on mingw. + * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not + _snprintf, or snwprintf, not _snwprintf. + +2010-04-10 Bruno Haible + + write: Fix a C++ test error on mingw. + * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-10 Bruno Haible + + vasnprintf test: Reduce code duplication. + * tests/test-vasnprintf.c (test_function): New function, extracted from + test_vasnprintf. + (test_vasnprintf, test_asnprintf): Invoke it. + +2010-04-08 James Youngman + + * doc/manywarnings.texi (manywarnings): Add missing parenthesis in + the example. + +2010-04-09 Jim Meyering + + init.sh: run tr in the "C" locale to avoid multibyte interpretation + * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does + not try to interpret its random input bytes. Jarno Rajahalme reported + that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence". + on Darwin 10.3.0 with LC_CTYPE=UTF-8. + (mktempd_): Likewise, just in case. + + ftruncate: add two years to projected module removal date: 2012 + * m4/ftruncate.m4: Adjust comments. + + ftruncate: mark module as obsolete; even MinGW provides it, now + * modules/ftruncate (Status): Obsolete. + (Notice): Say that. + * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it. + http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203 + +2010-04-08 Bruno Haible + + Fix side effects from tests-related modules. + * modules/dprintf-posix (Comment): New section. + * modules/fprintf-posix (Comment): Likewise. + * modules/obstack-printf-posix (Comment): Likewise. + * modules/printf-posix (Comment): Likewise. + * modules/snprintf-posix (Comment): Likewise. + * modules/sprintf-posix (Comment): Likewise. + * modules/vasnprintf-posix (Comment): Likewise. + * modules/vasprintf-posix (Comment): Likewise. + * modules/vdprintf-posix (Comment): Likewise. + * modules/vfprintf-posix (Comment): Likewise. + * modules/vprintf-posix (Comment): Likewise. + * modules/vsnprintf-posix (Comment): Likewise. + * modules/vsprintf-posix (Comment): Likewise. + * modules/xprintf-posix (Comment): Likewise. + * modules/xvasprintf-posix (Comment): Likewise. + * modules/ceilf-tests (Depends-on): Remove fprintf-posix. + * modules/floorf-tests (Depends-on): Likewise. + * modules/round-tests (Depends-on): Likewise. + * modules/roundf-tests (Depends-on): Likewise. + * modules/trunc-tests (Depends-on): Likewise. + * modules/truncf-tests (Depends-on): Likewise. + * tests/test-ceilf2.c (check): Don't invoke fprintf if the + 'fprintf-posix' module is not present. + * tests/test-floorf2.c (check): Likewise. + * tests/test-trunc2.c (check): Likewise. + * tests/test-truncf2.c (check): Likewise. + * tests/test-round2.c (equal): Likewise. + Reported by Jarno Rajahalme . + +2010-04-07 Karl Berry + + * config/srclist.txt, + * config/srclistvars.sh, + * config/srclist-update: doc fixes. + +2010-04-07 Jim Meyering + + maint.mk: add a PATH crosschecking syntax-check rule + * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule. + Useful if you use a test like the one in help-version (coreutils, + diffutils, grep, gzip) that ensures $(VERSION) matches what is + printed by prog --version. + +2010-04-06 Bruno Haible + + Fix link error on mingw. + * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET. + * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise. + +2010-04-06 Bruno Haible + + Assume rmdir exists. + * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program. + +2010-04-06 Giuseppe Scrivano + + doc: update users.txt + * users.txt: Add gcal. + +2010-04-06 Jim Meyering + + init.sh: simply unset TMPDIR rather than risking env -i + * tests/init.sh (mktempd_): Using env -i is rather harsh, and + although it probably works fine on all Unix-based systems, some + systems (Cygwin?) cannot tolerate a totally cleared environment. + Suggestion from Eric Blake. + +2010-04-06 Jim Meyering + + init.sh: portability fix: use env's POSIX-specified -i option not -u + * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather + than unportable env -u. Solaris 5.11's env lacks support for -u. + +2010-04-05 Bruno Haible + + btowc: Work around Cygwin 1.7.2 bug. + * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function + does not map NUL to 0. + * doc/posix-functions/btowc.texi: Mention the Cygwin bug. + +2010-04-05 Bruno Haible + + Make the multithread modules work on Cygwin 1.7.2. + * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether + imported symbols can be declared weak, so that it returns "no" on + Cygwin 1.7.2. + +2010-04-05 Bruno Haible + + Use the module 'strncat'. + * modules/unistr/u8-strncat (Depends-on): Add strncat. + + Tests for module 'strncat'. + * modules/strncat-tests: New file. + * tests/test-strncat.c: New file. + + New module 'strncat'. + * lib/string.in.h (strncat): New declaration. + * lib/strncat.c: New file, based on lib/unistr/u-strncat.h. + * m4/strncat.m4: New file, based on m4/memchr.m4. + * modules/strncat: New file. + * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat + is declared. + (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT, + REPLACE_STRNCAT. + * modules/string (Makefile.am): Substitute GNULIB_STRNCAT, + REPLACE_STRNCAT. + * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new + module. + * tests/test-string-c++.cc: Check signature of strncat. + +2010-04-05 Jim Meyering + + xstrtoumax-tests: convert to use init.sh + * modules/xstrtoumax-tests (Files): Add tests/init.sh. + * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + xstrtoimax-tests: convert to use init.sh + * modules/xstrtoimax-tests (Files): Add tests/init.sh. + * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + +2010-04-05 Bruno Haible + + sys_socket: Avoid #define replacements in C++ mode. + * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a + warning to the function if possible, rather than #defining the symbol + to a dysfunctional alias. + +2010-04-05 Bruno Haible + + fseeko: Fix C++ test error on mingw. + * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from + gl_FUNC_FSEEKO. + (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate. + (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update. + * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the + fseeko module. Instead, invoke gl_REPLACE_FSEEKO. + +2010-04-05 Bruno Haible + + duplocale: Improve test output. + * tests/test-duplocale.c (main): Print reason for skipped test. + +2010-04-05 Bruno Haible + + Assume rmdir exists. + * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists. + * doc/posix-functions/rmdir.texi: Remove mention of "old platforms". + +2010-04-05 Bruno Haible + + Fix link error on Solaris 8 with cc. + * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL. + +2010-04-05 Bruno Haible + + frexpl: Fix a C++ test error on Solaris 8 and Cygwin. + * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation. + +2010-04-05 Bruno Haible + + vasprintf: Update documentation. + * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module. + +2010-04-05 Bruno Haible + + ptsname: Improve test. + * tests/test-ptsname.c (main): Also try the various master names of BSD + systems. + +2010-04-05 Bruno Haible + + memchr: Avoid a possible C++ test error. + * lib/string.in.h (memchr): Provide declaration if function is missing. + * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set + HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR. + * modules/string (Makefile.am): Substitute HAVE_MEMCHR. + +2010-04-05 Bruno Haible + + strtok_r: Improve idiom. + * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when + AC_LIBOBJ is used. + +2010-04-05 Bruno Haible + + strdup: Improve idiom. + * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when + AC_LIBOBJ is used. + (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX + compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only + when AC_LIBOBJ is used. + +2010-04-05 Bruno Haible + + mbsinit, mbrtowc, wcrtomb: Improve idioms. + * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist, + don't set REPLACE_MBSINIT to 1. + * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist, + don't set REPLACE_MBRTOWC to 1. + * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not + exist, don't set REPLACE_MBSRTOWCS to 1. + * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not + exist, don't set REPLACE_MBSNRTOWCS to 1. + * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist, + don't set REPLACE_WCRTOMB to 1. + * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not + exist, don't set REPLACE_WCSRTOMBS to 1. + * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not + exist, don't set REPLACE_WCSNRTOMBS to 1. + +2010-04-05 Bruno Haible + + ldexpl: Improve idiom. + * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared, + make sure to set HAVE_DECL_LDEXPL to 0. + +2010-04-05 Jim Meyering + + xstrtol-tests: convert to use init.sh + * modules/xstrtol-tests (Files): Add tests/init.sh. + * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + atexit-tests: convert to use init.sh + * modules/atexit-tests (Files): Add tests/init.sh. + * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + init.sh: fix typo + * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization. + + init.sh: make it easier for a test script to write to the tty, ... + when using automake's parallel-tests mode. + * tests/init.sh (stderr_fileno_): Define overridable variable. + (warn_): New function, to use it. + (fail_, skip_, framework_failure_): Use warn_. + +2010-04-04 Bruno Haible + + btowc: Avoid warning. + * lib/btowc.c: Include . + Reported by Hauke Fath . + +2010-04-04 Hauke Fath (tiny change) + Bruno Haible + + wchar: Port to NetBSD 1.5. + * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists. + * lib/wctype.in.h (WEOF): Likewise. + +2010-04-04 Hauke Fath (tiny change) + Bruno Haible + + Port extended stdio to NetBSD 1.5. + * lib/stdio-impl.h [NetBSD]: Include . + (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and + older. + +2010-04-04 Bruno Haible + + string: Remove unused substitution. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize + HAVE_DECL_STRERROR. + * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR. + +2010-04-04 Bruno Haible + + strtod: Avoid a possible C++ test error. + * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't + set REPLACE_STRTOD. + +2010-04-04 Bruno Haible + + strerror: Update documentation. + * doc/posix-functions/strerror.texi: Remove mention of old platforms. + +2010-04-04 Bruno Haible + + stdio: Fix some C++ test errors on Solaris 8 with GCC. + * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use + _GL_CXXALIAS_SYS_CAST. + +2010-04-04 Bruno Haible + + frexpl: Fix a C++ test error on Solaris 8 and Cygwin. + * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the + function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting + REPLACE_FREXPL to 1. + * doc/posix-functions/frexpl.texi: Update documentation. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Solaris 8 and Cygwin. + * lib/math.in.h (cosl, logl, sinl): Use simpler idiom. + +2010-04-04 Bruno Haible + + Implement nanosleep for native Windows. + * lib/nanosleep.c (nanosleep): New implementation for native Windows. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Solaris 8. + * lib/math.in.h (truncf, trunc): Use simpler idiom. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Cygwin. + * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl, + truncl): Provide declaration if the system does not have it. + * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set + HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1. + * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set + HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1. + * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set + HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1. + * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set + HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1. + * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set + HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1. + * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set + HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1. + * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set + HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1. + * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set + HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1. + * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF, + HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND, + HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL. + * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF, + HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND, + HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL. + +2010-04-04 Bruno Haible + + * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation. + * m4/ceill.m4 (gl_FUNC_CEILL): Likewise. + * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise. + * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise. + * m4/isfinite.m4 (gl_ISFINITE): Likewise. + * m4/isinf.m4 (gl_ISINF): Likewise. + * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise. + +2010-04-04 Bruno Haible + + * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation. + * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise. + +2010-04-04 Bruno Haible + + * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE. + * modules/tmpfile (configure.ac): Update. + + tmpfile: Fix C++ test error on mingw. + * lib/stdio.in.h (tmpfile): New declaration. + * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set + REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h. + * modules/tmpfile (Depends-on): Add stdio. + (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR. + * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared. + (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE. + * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and + REPLACE_TMPFILE. + * tests/test-stdio-c++.cc (tmpfile): Verify signature. + +2010-04-04 Bruno Haible + + ioctl: Fix C++ test error on mingw. + * lib/ioctl.c (ioctl): Renamed from rpl_ioctl. + * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1, + use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL. + +2010-04-03 Bruno Haible + + wcwidth: Fix C++ test error on mingw. + * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not + exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH. + +2010-04-03 Bruno Haible + + nanosleep: Fix C++ test error on mingw. + * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep. + * lib/time.in.h (nanosleep): Use modern idiom. + * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a + nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting + REPLACE_NANOSLEEP to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP. + * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP. + +2010-04-03 Bruno Haible + + strptime: Fix C++ test error on mingw. + * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME. + * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not + REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME. + (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME, + not REPLACE_STRPTIME. + * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not + REPLACE_STRPTIME. + +2010-04-03 Bruno Haible + + timegm: Fix C++ test error on mingw. + * lib/time.in.h (timegm): Use modern idiom. + * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set + HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM. + * modules/time (Makefile.am): Substitute HAVE_TIMEGM. + +2010-04-03 Bruno Haible + + timegm: Assume declaration if function exists. + * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only + if it exists. Don't clobber ac_cv_func_timegm. + +2010-04-03 Bruno Haible + + time_r: Fix C++ test error on mingw. + * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom. + * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set + HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R. + * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R. + +2010-04-03 Bruno Haible + + time_r: Minor updates. + * modules/time_r (Description): Mention the provided functions. + * lib/time_r.c: Don't include . + * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module. + * doc/posix-functions/localtime_r.texi: Likewise. + +2010-04-03 Bruno Haible + + time: Fix regression introduced on 2010-03-08. + * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require + gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS. + +2010-04-03 Jim Meyering + + maint.mk: don't silently disable project-specific syntax-check rules + * top/maint.mk (_prohibit_regexp): Define, to help people realize + that they need to convert their project-specific syntax-check rules + to use the new _sc_search_regexp. + +2010-04-03 Bruno Haible + + fchdir: Fix regression introduced on 2010-03-08. + * lib/unistd.in.h (fchdir): Fix declaration. + * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not + REPLACE_FCHDIR. + * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not + REPLACE_FCHDIR. + +2010-04-03 Bruno Haible + + getpagesize: Fix C++ test error on mingw. + * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the + system does not declare the function. + * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's + declared. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize + HAVE_DECL_GETPAGESIZE. + * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE. + +2010-04-03 Bruno Haible + + stdio: Make C++ tests work on mingw. + * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system + does not declare the function. + +2010-04-03 Bruno Haible + + ftello: Fix C++ test error on mingw. + * lib/stdio.in.h (ftello): Use modern idiom. + * lib/ftello.c (ftello): Renamed from rpl_ftello. + * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function + is missing and that it needs to be replaced. + (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO. + * modules/stdio (Makefile.am): Substitute HAVE_FTELLO. + +2010-04-03 Bruno Haible + + fseeko: Fix C++ test error on mingw. + * lib/stdio.in.h (fseeko): Use modern idiom. + * lib/fseeko.c (fseeko): Renamed from rpl_fseeko. + * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function + is missing and that it needs to be replaced. + (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO. + * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO. + +2010-04-03 Bruno Haible + + mkstemp: Fix C++ test error on mingw. + * lib/stdlib.in.h (mkstemp): Use modern idiom. + * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the + function is missing and that it needs to be replaced. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP. + * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP. + +2010-04-03 Bruno Haible + + stpncpy: Fix C++ test error on mingw. + * lib/string.in.h (stpncpy): Use modern idiom. + * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the + function is missing and that it needs to be replaced. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize + REPLACE_STPNCPY. + * modules/string (Makefile.am): Substitute REPLACE_STPNCPY. + +2010-04-03 Bruno Haible + + sys_stat: Fix C++ test error on mingw. + * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro. + * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1. + +2010-04-03 Bruno Haible + + pty: Update doc. + * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18. + +2010-04-03 Bruno Haible + + unistd: Fix C++ test error on mingw. + * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-03 Bruno Haible + + Update doc regarding mingw. + * doc/glibc-functions/openpty.texi: Update regarding mingw. + * doc/glibc-functions/login_tty.texi: Likewise. + * doc/glibc-functions/forkpty.texi: Likewise. + +2010-04-03 Bruno Haible + + stdlib: Avoid compilation failure of c-strtold on mingw. + * lib/stdlib.in.h: Don't include on native Windows systems. + +2010-04-03 Bruno Haible + + locale: Make C++ tests work on Cygwin and mingw. + * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib + cannot provide the function. + Reported by Simon Josefsson. + +2010-04-03 Bruno Haible + + localename: Port to MacOS X 10.6. + * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the + memory layout of the locales in MacOS X 10.6 as well. + Reported by Panu Kekäläinen . + +2010-04-02 Bruno Haible + + gnulib-tool: Ensure that long-running tests are executed last. + * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long- + running tests after the one for the other tests. + +2010-04-02 Bruno Haible + + gnulib-tool: Ensure the tests in the main directory are executed first. + * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to + start with the current directory. + +2010-04-02 Bruno Haible + + Tests for module 'havelib', moved here from GNU gettext. + * modules/havelib-tests: New file, from gettext/autoconf-lib-link with + modifications. + * tests/havelib/README: New file, from gettext/autoconf-lib-link. + * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link + with modifications. + * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with + modifications. + * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link + with modifications. + * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link + with modifications. + * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link + with modifications. + * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link + with modifications. + * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link. + * tests/havelib/rpathx/rpathx.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathx/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathx/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathy/rpathy.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathy/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathy/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathz/rpathz.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathz/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathz/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathlx/usex.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlx/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlx/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathly/usey.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathly/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathly/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathlz/usez.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlz/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlz/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathlyx/usey.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlyx/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlyx/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathlzyx/usez.c: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlzyx/Makefile.am: New file, from + gettext/autoconf-lib-link. + * tests/havelib/rpathlzyx/configure.ac: New file, from + gettext/autoconf-lib-link with modifications. + * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link + with modifications. + +2010-04-02 Bruno Haible + + gnulib-tool: Create distributed built sources also for the tests. + * gnulib-tool (func_create_testdir): Also generate distributed built + sources in the tests directory. + +2010-04-02 Bruno Haible + + gnulib-tool: Obey user's environment variables. + * gnulib-tool (func_create_testdir): When creating built sources, + respect the environment variables for autoconf, automake, etc. given by + the user. + +2010-04-02 Bruno Haible + + gnulib-tool: Provide the value of --m4-base to modules. + * gnulib-tool (func_import, func_create_testdir): Emit a definition + of gl_m4_base. + +2010-04-02 Eric Blake + + maint.mk: fix some fallout + * NEWS: Document the incompatible change, and its effect on cfg.mk. + * top/maint.mk (sc_prohibit_test_minus_ao): Update. + +2010-03-28 Jose E. Marchesi + + maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp + * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp. + (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp. + (sc_cast_of_x_alloc_return_value): Likewise. + (sc_cast_of_alloca_return_value): Likewise. + (sc_space_tab): Likewise. + (sc_prohibit_atoi_atof): Likewise. + (sc_prohibit_magic_number_exit): Likewise. + (sc_error_exit_success): Likewise. + (sc_file_system): Likewise. + (sc_prohibit_have_config_h): Likewise. + (sc_require_config_h): Likewise. + (sc_prohibit_HAVE_MBRTOWC): Likewise. + (sc_obsolete_symbols): Likewise. + (sc_changelog): Likewise. + (sc_program_name): Likewise. + (sc_the_the): Likewise. + (sc_trailing_blank): Likewise. + (sc_two_space_separator_in_usage): Likewise. + (sc_useless_cpp_parens): Likewise. + (sc_GPL_version): Likewise. + (sc_GFDL_version): Likewise. + (sc_texinfo_acronym): Likewise. + (sc_prohibit_cvs_keyword): Likewise. + (sc_prohibit_stat_st_blocks): Likewise. + (sc_prohibit_S_IS_definition): Likewise. + (sc_redundant_const): Likewise. + (sc_makefile_TAB_only_indentation): Likewise. + (sc_m4_quote_check): Likewise. + (sc_makefile_path_separator_check): Likewise. + (sc_copyright_check): Likewise. + (sc_Wundef_boolean): Likewise. + (sc_vulnerable_makefile_CVE-2009-4029): Likewise. + + maint.mk: match 0 or more whitespace-before-function-call '(' + * top/maint.mk (sc_error_exit_success): Relax regexp to match uses + that have zero or two-and-more spaces between the function name + and the open parenthesis. + (sc_error_message_warn_fatal): Likewise. + (sc_error_message_uppercase): Likewise. + (sc_error_message_period): Likewise. + +2010-03-31 Eric Blake + + maint.mk: check for [ as well as test + * top/maint.mk (sc_prohibit_test_minus_ao): Extend test. + Based on a libvirt report by Matthias Bolte. + + gnumakefile: don't squelch _version output + * top/GNUmakefile (_version): Create one-shot dependency rather + than using $(shell) when version must be regenerated. + (_autoreconf): Run verbosely, by default. + + sys_time: avoid compiler warnings + * lib/sys_time.in.h (includes): Ensure gcc pragma is + unconditional, fixing regression from 2010-03-29. + Reported by Simon Josefsson. + +2010-03-28 Jose E. Marchesi + + maint.mk: s/_header_without_use/_sc_header_without_use/ + * top/maint.mk (_sc_header_without_use): Rename from _header_without_use. + (sc_prohibit_assert_without_use): Use the new name. + (sc_prohibit_close_stream_without_use): Likewise. + (sc_prohibit_getopt_without_use): Likewise. + (sc_prohibit_quotearg_without_use): Likewise. + (sc_prohibit_quote_without_use): Likewise. + (sc_prohibit_long_options_without_use): Likewise. + (sc_prohibit_inttostr_without_use): Likewise. + (sc_prohibit_ignore_value_without_use): Likewise. + (sc_prohibit_error_without_use): Likewise. + (sc_prohibit_xalloc_without_use): Likewise. + (sc_prohibit_hash_without_use): Likewise. + (sc_prohibit_hash_pjw_without_use): Likewise. + (sc_prohibit_safe_read_without_use): Likewise. + (sc_prohibit_argmatch_without_use): Likewise. + (sc_prohibit_canonicalize_without_use): Likewise. + (sc_prohibit_root_dev_ino_without_use): Likewise. + (sc_prohibit_openat_without_use): Likewise. + (sc_prohibit_c_ctype_without_use): Likewise. + (sc_prohibit_signal_without_use): Likewise. + (sc_prohibit_intprops_without_use): Likewise. + +2010-03-30 Eric Blake + + maint: improve module indicators + * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE) + (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80 + columns, and avoid extra macro expansion. + + fdopendir: work around FreeBSD bug + * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness. + * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it. + * modules/dirent (Makefile.am): Substitute it. + * lib/dirent.in.h (fdopendir): Supply missing FreeBSD + declaration. + * doc/posix-functions/fdopendir.texi (fdopendir): Document the + fix. + Reported by Christian Weisgerber . + +2010-03-29 Bruno Haible + + Emit #pragma system_header after the inclusion guard, not before. + * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion + guard that spans the entire file, not before. This enables an + optimization in GCC's preprocessor. + * lib/ctype.in.h: Likewise. + * lib/dirent.in.h: Likewise. + * lib/errno.in.h: Likewise. + * lib/float.in.h: Likewise. + * lib/getopt.in.h: Likewise. + * lib/iconv.in.h: Likewise. + * lib/langinfo.in.h: Likewise. + * lib/locale.in.h: Likewise. + * lib/math.in.h: Likewise. + * lib/netdb.in.h: Likewise. + * lib/netinet_in.in.h: Likewise. + * lib/pty.in.h: Likewise. + * lib/sched.in.h: Likewise. + * lib/se-selinux.in.h: Likewise. + * lib/search.in.h: Likewise. + * lib/spawn.in.h: Likewise. + * lib/stdarg.in.h: Likewise. + * lib/stdint.in.h: Likewise. + * lib/string.in.h: Likewise. + * lib/strings.in.h: Likewise. + * lib/sys_file.in.h: Likewise. + * lib/sys_ioctl.in.h: Likewise. + * lib/sys_time.in.h: Likewise. + * lib/sys_times.in.h: Likewise. + * lib/sys_utsname.in.h: Likewise. + * lib/sys_wait.in.h: Likewise. + * lib/sysexits.in.h: Likewise. + * lib/wctype.in.h: Likewise. + +2010-03-28 James Youngman + + save-cwd: don't leak a file descriptor when the caller execs. + * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the + saved file descriptor. + * modules/save-cwd (Depends-on): Depend on cloexec. + +2010-03-29 Bruno Haible + + Remove vestiges of fts-lgpl module. + * lib/fts_.h: Assume GNULIB_FTS is 1. + * lib/fts.c: Likewise. + * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation. + +2010-03-28 Bruno Haible + + Fix definition of tests witness macro. + * gnulib-tool (func_import): Fix definition of witness macro. + +2010-03-28 Bruno Haible + + Fix ioctl's protoype on glibc systems. + * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use + _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST. + * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper. + * modules/ioctl (configure.ac): Test whether ioctl has the POSIX + signature. If not, arrange to replace the ioctl function. + * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize + REPLACE_IOCTL. + * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL. + * doc/posix-functions/ioctl.texi: Mention the glibc problem. + Reported by Ludovic Courtès . + +2010-03-28 Javier Villavicencio + + exclude: fix the case of globs vs. EXCLUDE_INCLUDE + * lib/exclude.c (excluded_file_pattern_p): Fix logic error that + made it so grep -r --include=GLOB* ... did not work. + +2010-03-26 Jim Meyering + Eric Blake + + maint.mk: prohibit use of test's -o and -a operators + * top/maint.mk (sc_prohibit_test_minus_ao): New rule. + +2010-03-28 Bruno Haible + + Remove unused GNULIB_XYZ macro definitions. + * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR + invocation. + +2010-03-28 Bruno Haible + + Mark privileged tests modules. + * modules/idpriv-drop-tests (Status): New section. + * modules/idpriv-droptemp-tests (Status): New section. + +2010-03-28 Bruno Haible + + Split C++ tests into separate tests modules. + * modules/dirent-c++-tests: New file, extracted from + modules/dirent-tests. + * modules/dirent-tests: Depend on it. + * modules/fcntl-h-c++-tests: New file, extracted from + modules/fcntl-h-tests. + * modules/fcntl-h-tests: Depend on it. + * modules/glob-c++-tests: New file, extracted from modules/glob-tests. + * modules/glob-tests: Depend on it. + * modules/iconv-h-c++-tests: New file, extracted from + modules/iconv-h-tests. + * modules/iconv-h-tests: Depend on it. + * modules/langinfo-c++-tests: New file, extracted from + modules/langinfo-tests. + * modules/langinfo-tests: Depend on it. + * modules/locale-c++-tests: New file, extracted from + modules/locale-tests. + * modules/locale-tests: Depend on it. + * modules/math-c++-tests: New file, extracted from modules/math-tests. + * modules/math-tests: Depend on it. + * modules/pty-c++-tests: New file, extracted from modules/pty-tests. + * modules/pty-tests: Depend on it. + * modules/search-c++-tests: New file, extracted from + modules/search-tests. + * modules/search-tests: Depend on it. + * modules/signal-c++-tests: New file, extracted from + modules/signal-tests. + * modules/signal-tests: Depend on it. + * modules/spawn-c++-tests: New file, extracted from + modules/spawn-tests. + * modules/spawn-tests: Depend on it. + * modules/stdio-c++-tests: New file, extracted from + modules/stdio-tests. + * modules/stdio-tests: Depend on it. + * modules/stdlib-c++-tests: New file, extracted from + modules/stdlib-tests. + * modules/stdlib-tests: Depend on it. + * modules/string-c++-tests: New file, extracted from + modules/string-tests. + * modules/string-tests: Depend on it. + * modules/sys_ioctl-c++-tests: New file, extracted from + modules/sys_ioctl-tests. + * modules/sys_ioctl-tests: Depend on it. + * modules/sys_select-c++-tests: New file, extracted from + modules/sys_select-tests. + * modules/sys_select-tests: Depend on it. + * modules/sys_socket-c++-tests: New file, extracted from + modules/sys_socket-tests. + * modules/sys_socket-tests: Depend on it. + * modules/sys_stat-c++-tests: New file, extracted from + modules/sys_stat-tests. + * modules/sys_stat-tests: Depend on it. + * modules/sys_time-c++-tests: New file, extracted from + modules/sys_time-tests. + * modules/sys_time-tests: Depend on it. + * modules/time-c++-tests: New file, extracted from modules/time-tests. + * modules/time-tests: Depend on it. + * modules/unistd-c++-tests: New file, extracted from + modules/unistd-tests. + * modules/unistd-tests: Depend on it. + * modules/wchar-c++-tests: New file, extracted from + modules/wchar-tests. + * modules/wchar-tests: Depend on it. + * modules/wctype-c++-tests: New file, extracted from + modules/wctype-tests. + * modules/wctype-tests: Depend on it. + Reported by Simon Josefsson. + +2010-03-28 Bruno Haible + + gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'. + * gnulib-tool (func_exists_module): New function, extracted from + func_verify_module. + (func_verify_module): Use it. + (func_get_dependencies): Synthetize a dependency from 'foo-tests' to + 'foo' only if 'foo' exists. + * doc/gnulib.texi (Extra tests modules): Explain how to split a tests + module. + +2010-03-28 Bruno Haible + + gnulib-tool: Add support for special categories of tests. + * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests, + --with-privileged-tests, --with-unportable-tests, --with-all-tests. + (func_usage): Document them. + (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests, + inc_unportable_tests, inc_all_tests): New variables. + (func_acceptable): Consider these variables. + (func_modules_transitive_closure): Make it work when the 'Status' field + consists of multiple words. + (func_import): Store and restore the values of inc_cxx_tests, + inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests, + inc_all_tests in gnulib-comp.m4. + (func_create_testdir): Set inc_all_tests to true. + * doc/gnulib.texi (Extra tests modules): New section. + Suggested by Jim Meyering. + +2010-03-28 Bruno Haible + + ansi-c++-opt: Allow turning off the C++ build by default. + * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if + gl_CXX_CHOICE_DEFAULT_NO is defined. + Requested by Eric Blake. + +2010-03-28 Bruno Haible + + unistd: Avoid #define replacements in C++ mode. + * lib/unistd.in.h (socket, connect, accept, bind, getpeername, + getsockname, getsockopt, listen, recv, send, recvfrom, sendto, + setsockopt, shutdown, select): In C++, attach a warning to the function + if possible, rather than #defining the symbol to a dysfunctional alias. + Reported by John W. Eaton . + +2010-03-28 Bruno Haible + + Fix link errors on mingw. + * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom. + * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with + $(LIBSOCKET). + * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with + $(LIBSOCKET). + +2010-03-28 Bruno Haible + Ralf Wildenhues + + lib-ignore: Determine different options for different compilers. + * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which + depends on the current language (C/C++/Fortran). Don't set LDFLAGS. + Add comments. + (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro. + * NEWS: Mention the change. + +2010-03-27 Bruno Haible + + Remove unused GNULIB_XYZ macro definitions. + * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation. + * modules/fseek (configure.ac): Likewise. + * modules/ioctl (configure.ac): Likewise. + * modules/open (configure.ac): Likewise. + * modules/stdlib-safer (configure.ac): Likewise. + +2010-03-27 Bruno Haible + + Add a remark about certain modules. + * modules/malloc (Comment): New section. + * modules/realloc (Comment): Likewise. + * modules/sigpipe (Comment): Likewise. + +2010-03-27 Bruno Haible + + Resolve conflict between the two kinds of module indicators. + * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define + GNULIB_TEST_XYZ instead of GNULIB_XYZ. + * modules/canonicalize (configure.ac): Invoke + gl_MODULE_INDICATOR_FOR_TESTS. + * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of + GNULIB_XYZ. + * tests/test-dirent-c++.cc: Likewise. + * tests/test-dirent-safer.c: Likewise. + * tests/test-dup2.c: Likewise. + * tests/test-fchdir.c: Likewise. + * tests/test-fcntl-h-c++.cc: Likewise. + * tests/test-getopt.c: Likewise. + * tests/test-getopt.h: Likewise. + * tests/test-langinfo-c++.cc: Likewise. + * tests/test-locale-c++.cc: Likewise. + * tests/test-math-c++.cc: Likewise. + * tests/test-pty-c++.cc: Likewise. + * tests/test-search-c++.cc: Likewise. + * tests/test-signal-c++.cc: Likewise. + * tests/test-spawn-c++.cc: Likewise. + * tests/test-stdio-c++.cc: Likewise. + * tests/test-stdlib-c++.cc: Likewise. + * tests/test-string-c++.cc: Likewise. + * tests/test-sys_ioctl-c++.cc: Likewise. + * tests/test-sys_select-c++.cc: Likewise. + * tests/test-sys_socket-c++.cc: Likewise. + * tests/test-sys_stat-c++.cc: Likewise. + * tests/test-sys_time-c++.cc: Likewise. + * tests/test-time-c++.cc: Likewise. + * tests/test-unistd-c++.cc: Likewise. + * tests/test-wchar-c++.cc: Likewise. + * tests/uninorm/test-u8-nfc.c: Likewise. + * tests/uninorm/test-u8-nfd.c: Likewise. + * tests/uninorm/test-u8-nfkc.c: Likewise. + * tests/uninorm/test-u8-nfkd.c: Likewise. + * tests/uninorm/test-u16-nfc.c: Likewise. + * tests/uninorm/test-u16-nfd.c: Likewise. + * tests/uninorm/test-u16-nfkc.c: Likewise. + * tests/uninorm/test-u16-nfkd.c: Likewise. + * tests/uninorm/test-u32-nfc.c: Likewise. + * tests/uninorm/test-u32-nfc-big.c: Likewise. + * tests/uninorm/test-u32-nfd.c: Likewise. + * tests/uninorm/test-u32-nfd-big.c: Likewise. + * tests/uninorm/test-u32-nfkc.c: Likewise. + * tests/uninorm/test-u32-nfkc-big.c: Likewise. + * tests/uninorm/test-u32-nfkd.c: Likewise. + * tests/uninorm/test-u32-nfkd-big.c: Likewise. + * tests/uninorm/test-u32-normalize-big.c: Likewise. + +2010-03-27 Bruno Haible + + Distinguish two kinds of module indicators. + * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from + gl_MODULE_INDICATOR. + (gl_MODULE_INDICATOR): New macro. + * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke + gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR. + * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise. + * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise. + * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise. + * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise. + * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise. + * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise. + * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise. + * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise. + * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise. + * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise. + * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise. + * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise. + * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise. + * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise. + * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise. + * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise. + * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise. + * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise. + * modules/cloexec (configure.ac): Likewise. + * modules/getopt-gnu (configure.ac): Likewise. + * modules/uninorm/u8-normalize (configure.ac): Likewise. + * modules/uninorm/u16-normalize (configure.ac): Likewise. + * modules/uninorm/u32-normalize (configure.ac): Likewise. + * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR. + +2010-03-27 Bruno Haible + + New module description field 'Comment'. + * gnulib-tool: New option --extract-comment. + (func_usage): Document it. + (sed_extract_prog, sed_extract_field_header): Support 'Comment' field. + (func_get_comment): New function. + * modules/TEMPLATE-EXTENDED: Add a blank Comment field. + +2010-03-27 Bruno Haible + + Addendum to 2010-02-07 commit. + * gnulib-tool (func_usage): Document --extract-applicability option. + +2010-03-27 Bruno Haible + + Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK. + * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test + GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings + rather than link errors. + +2010-03-27 Bruno Haible + + Avoid side effects from tests-related modules on the compilation of lib. + * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro. + (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value. + * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro + parameter. Emit into AM_CPPFLAGS a definition of the designated C + macro. + (func_import): Define a witness macro. Assign it a value that depends + on the current package. Override gl_MODULE_INDICATOR_CONDITION for the + tests-related modules. + (func_create_testdir): Update func_emit_tests_Makefile_am invocation. + Reported by Jim Meyering. + +2010-03-27 Bruno Haible + + Factorize common .m4 code. + * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro. + * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it. + * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise. + * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise. + * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise. + * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise. + * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise. + * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise. + * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise. + * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise. + * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise. + * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise. + * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise. + * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise. + * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise. + * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise. + * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise. + * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise. + * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise. + * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise. + * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise. + * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise. + * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise. + * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise. + * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise. + * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise. + * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise. + * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise. + * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise. + * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise. + * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise. + +2010-03-27 Bruno Haible + + Fix a compilation error on Cygwin with g++ >= 4.3. + * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function + if it is undefined or if we alias it to chmod. + (lstat): Don't warn about the use of this function if it is undefined + or if we alias it to stat. + Reported by Simon Josefsson. + +2010-03-27 Bruno Haible + + * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN. + * modules/getlogin (configure.ac): Update. + + * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R. + * modules/getlogin_r (configure.ac): Update. + + * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP. + * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update. + * modules/inet_ntop (configure.ac): Update. + + * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON. + * modules/inet_pton (configure.ac): Update. + + * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN. + * modules/mbslen (configure.ac): Update. + + * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY. + (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY. + * modules/forkpty (configure.ac): Update. + * modules/openpty (configure.ac): Update. + +2010-03-26 Simon Josefsson + + * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is + no *.texi files. Reported by Eric Blake . + +2010-03-25 Eric Blake + + maint: use pragma consistently across replacement headers + * lib/ctype.in.h (system_header): Hoist for consistent placement. + * lib/dirent.in.h (system_header): Likewise. + * lib/errno.in.h (system_header): Likewise. + * lib/float.in.h (system_header): Likewise. + * lib/getopt.in.h (system_header): Likewise. + * lib/iconv.in.h (system_header): Likewise. + * lib/inttypes.in.h (system_header): Likewise. + * lib/langinfo.in.h (system_header): Likewise. + * lib/locale.in.h (system_header): Likewise. + * lib/math.in.h (system_header): Likewise. + * lib/netdb.in.h (system_header): Likewise. + * lib/netinet_in.in.h (system_header): Likewise. + * lib/pty.in.h (system_header): Likewise. + * lib/sched.in.h (system_header): Likewise. + * lib/se-selinux.in.h (system_header): Likewise. + * lib/search.in.h (system_header): Likewise. + * lib/spawn.in.h (system_header): Likewise. + * lib/stdarg.in.h (system_header): Likewise. + * lib/stdint.in.h (system_header): Likewise. + * lib/string.in.h (system_header): Likewise. + * lib/strings.in.h (system_header): Likewise. + * lib/sys_file.in.h (system_header): Likewise. + * lib/sys_ioctl.in.h (system_header): Likewise. + * lib/sys_socket.in.h (system_header): Likewise. + * lib/sys_times.in.h (system_header): Likewise. + * lib/sys_utsname.in.h (system_header): Likewise. + * lib/sys_wait.in.h (system_header): Likewise. + * lib/sysexits.in.h (system_header): Likewise. + * lib/unistd.in.h (system_header): Likewise. + * lib/wctype.in.h (system_header): Likewise. + + arpa/inet: fix mingw compilation warning + * lib/arpa_inet.in.h (system_header): Hoist to be unconditional. + Reported by Matthew Bolte. + +2010-03-25 Bruno Haible + + Avoid collision between gnulib wrapper and libintl wrapper. + * lib/printf.c (printf): Don't define if a printf wrapper is already + defined in intl/printf.c. + Reported by Michel Boaventura . + +2010-03-25 Bruno Haible + + Use ANSI C. + * lib/readutmp.h (getutent): Provide ANSI C prototype. + +2010-03-25 Bruno Haible + + Minor formatting changes. + * lib/acosl.c: Insert space before function argument list. + * lib/argz.c: Likewise. + * lib/asinl.c: Likewise. + * lib/expl.c: Likewise. + * lib/gen-uni-tables.c: Likewise. + * lib/gettext.h: Likewise. + * lib/glthread/lock.h: Likewise. + * lib/tanl.c: Likewise. + * lib/uniname/uniname.c: Likewise. + * tests/test-idpriv-drop.c: Likewise. + * tests/test-idpriv-droptemp.c: Likewise. + * tests/test-lock.c: Likewise. + * tests/test-tls.c: Likewise. + * lib/argp-help.c: Insert space before function-like macro argument + list. + * lib/memcmp.c: Likewise. + * tests/test-base64.c: Likewise. + * lib/localename.c: Insert space before sizeof's argument list. + * lib/safe-alloc.h: Likewise. + * lib/file-set.h: Insert space before macro argument list. + * tests/test-argp.c: Likewise. + * lib/argp-namefrob.h: Insert space before function parameter list. + * lib/getaddrinfo.c: Likewise. + * lib/netdb.in.h: Likewise. + * lib/parse-duration.h: Likewise. + * lib/parse-duration.c: Likewise. + * lib/poll.c: Likewise. + * lib/select.c: Likewise. + * lib/trim.h: Likewise. + * tests/test-usleep.c: Likewise. + * lib/ldexpl.c: Insert space before function parameter list and before + function argument list. + * lib/logl.c: Likewise. + * lib/sqrtl.c: Likewise. + * lib/trim.c: Likewise. + * lib/cosl.c: Use GNU style indentation. Insert space before function + argument list. + * lib/sinl.c: Likewise. + * lib/tsearch.c: Insert space after 'for'. + Reported by Jim Meyering. + +2010-03-23 Pádraig Brady (tiny change) + + * maint.mk (sc_Wundef_boolean): Check for the presence of the + config header before grepping, as it's not present before + autoreconf/configure are run. Reported by Simon Josefsson. + +2010-03-23 Bruno Haible + + pt_chown: Make it work with automake < 1.11. + * modules/pt_chown (Makefile.am): Define pkglibexecdir. + Reported by Simon Josefsson. + +2010-03-23 Bruno Haible + + pt_chown: Don't depend on GPLed modules. + * lib/pt_chown.c: Don't include idpriv.h. + (main): Don't drop privileges. + * modules/pt_chown (Depends-on): Remove idpriv-drop. + Reported by Simon Josefsson. + +2010-03-24 Simon Josefsson + + * top/maint.mk (sc_texinfo_acronym): Add rule, based on + suggestions from karl@freefriends.org (Karl Berry). + +2010-03-22 Eric Blake + + gethostname: further tweaks + * lib/unistd.in.h (includes): Only worry about if we + are overriding gethostname. + Suggested by Bruno Haible. + +2010-03-21 Bruno Haible + + Fix comments. + * lib/forkpty.c (rpl_forkpty): Fix comment. + * lib/openpty.c (rpl_openpty): Likewise. + Reported by Eric Blake. + +2010-03-22 Eric Blake + + gethostname: fix build on mingw + * lib/unistd.in.h (includes): Work around fact that mingw + re-includes , by avoiding any + redeclarations if we are being included by . + Reported by Matthias Bolte. + +2010-03-21 Bruno Haible + + forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris. + * lib/forkpty.c (forkpty): New replacement function, from glibc with + modifications. + * lib/pty.in.h (forkpty): Update declaration. Add comments. + * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to + provide the replacement. + * modules/forkpty (Depends-on): Add openpty, login_tty. + * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY. + * modules/pty (Makefile.am): Substitute HAVE_FORKPTY. + * doc/glibc-functions/forkpty.texi: More supported platforms. + * config/srclist.txt: Add forkpty.c (commented). + +2010-03-21 Bruno Haible + + * modules/forkpty-tests: Use the common TEMPLATE-TESTS. + (Makefile.am): Verify that PTY_LIB is defined. + + * modules/openpty-tests: Use the common TEMPLATE-TESTS. + +2010-03-21 Bruno Haible + + Tests for module 'login_tty'. + * modules/login_tty-tests: New file. + * tests/test-login_tty.c: New file. + + New module 'login_tty'. + * lib/login_tty.c: New file. + * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro. + * modules/login_tty: New file. + * doc/glibc-functions/login_tty.texi: Mention the new module. + +2010-03-21 Bruno Haible + + login_tty: Documentation. + * doc/glibc-functions/login_tty.texi: New file. + * doc/gnulib.texi (Glibc ): Include it. + +2010-03-21 Bruno Haible + + pty: Consistent macro naming. + * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY. + * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update. + * modules/pty (configure.ac): Update. + +2010-03-21 Bruno Haible + + Tests for openpty: Make stricter. + * tests/test-openpty.c (main): Add test of canonical processing and + erase. + * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined. + + openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris. + * lib/openpty.c (openpty): New replacement function. + * lib/pty.in.h: Include . + (openpty): Update declaration. Add comments. + * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty + is not declared, arrange to provide the replacement. Check for _getpty + and posix_openpt. + * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl. + * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY. + * modules/pty (Makefile.am): Substitute HAVE_OPENPTY. + * modules/pty-tests (test_pty_c___LDADD): New variable. + * doc/glibc-functions/openpty.texi: More supported platforms. + +2010-03-21 Bruno Haible + + setenv: Tweaks. + * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in + the test program. + * doc/posix-functions/setenv.texi: Update platforms list. + +2010-03-21 Bruno Haible + + New module 'unlockpt'. + * lib/unlockpt.c: New file, from glibc with modifications. + * m4/unlockpt.m4: New file. + * modules/unlockpt: New file. + * lib/stdlib.in.h (unlockpt): New declaration. + * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared. + (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT. + * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT, + HAVE_UNLOCKPT. + * doc/posix-functions/unlockpt.texi: Mention the new module. + * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt. + * config/srclist.txt: Add unlockpt.c (commented). + +2010-03-21 Jim Meyering + + maint.mk: prohibit inclusion of "intprops.h" without use + * top/maint.mk (sc_prohibit_intprops_without_use): New rule. + +2010-03-21 Bruno Haible + + New module 'grantpt'. + * lib/grantpt.c: New file, from glibc with modifications. + * m4/grantpt.m4: New file. + * modules/grantpt: New file. + * lib/stdlib.in.h (grantpt): New declaration. + * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared. + (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT. + * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT, + HAVE_GRANTPT. + * doc/posix-functions/grantpt.texi: Mention the new module. + * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt. + * config/srclist.txt: Add grantpt.c (commented). + +2010-03-21 Bruno Haible + + New module 'pt_chown'. + * lib/pt_chown.c: New file, from glibc with modifications. + * lib/pty-private.h: New file, from glibc with modifications. + * modules/pt_chown: New file. + * config/srclist.txt: Add pt_chown.c, pty-private.h (commented). + +2010-03-21 Bruno Haible + + Tests for module 'ptsname'. + * modules/ptsname-tests: New file. + * tests/test-ptsname.c: New file. + + New module 'ptsname'. + * lib/ptsname.c: New file, from glibc with modifications. + * m4/ptsname.m4: New file. + * modules/ptsname: New file. + * lib/stdlib.in.h (ptsname): New declaration. + * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared. + (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME. + * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME, + HAVE_PTSNAME. + * doc/posix-functions/ptsname.texi: Mention the new module. + * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname. + * config/srclist.txt: Add ptsname.c (commented). + +2010-03-21 Bruno Haible + + Tests for module 'ttyname_r'. + * modules/ttyname_r-tests: New file. + * tests/test-ttyname_r.c: New file. + + New module 'ttyname_r'. + * lib/ttyname_r.c: New file. + * m4/ttyname_r.m4: New file. + * modules/ttyname_r: New file. + * lib/unistd.in.h (ttyname_r): New declaration. + * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared. + (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R. + * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R, + HAVE_TTYNAME_R. + * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r. + * doc/posix-functions/ttyname_r.texi: Mention the new module. + +2010-03-20 Bruno Haible + + signal: Undefine macro definitions in C++ mode. + * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset, + sigfillset): Undefine macro definitions from the system header in C++ + mode. + Reported by John W. Eaton . + +2010-03-20 Bruno Haible + + Ensure no #include statements inside extern "C" { ... }. + * lib/obstack.h: Shrink extern "C" { ... } region so that it does not + contain #include statements. + * lib/time.in.h: Likewise. + +2010-03-20 Bruno Haible + + Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation. + * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro. + (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise. + Reported by John W. Eaton . + +2010-03-20 Bruno Haible + + * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit. + Reported by Jim Meyering. + +2010-03-20 Bruno Haible + + pipe: Set errno upon failure. + * lib/pipe.h: Specify that when -1 is returned, errno is set. + * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right + errno value in error message. + +2010-03-20 Bruno Haible + Jim Meyering + + lchown: Avoid "unused variable" warning. + * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block. + +2010-03-20 Bruno Haible + + Work around unlink() bug on MacOS X 10.5.6. + * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when + attempting to unlink a parent directory. + * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for + MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and + activate for the replacement function. + * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug. + +2010-03-20 Bruno Haible + + Fix link errors on Solaris 8. + * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP. + * modules/wctype-tests (test_wctype_c___LDADD): Likewise. + 2010-03-19 Jim Meyering regcomp.c: make non-_LIBC implementation of build_range_exp consistent