-2010-10-15 Bruno Haible <bruno@clisp.org>
+2010-11-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ fdopendir: fix bug on MacOS X when low on file descriptors
+
+ * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
+ (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
+ All callers changed.
+ (fdopendir): Invoke save_cwd at the top level, not after using
+ multiple dup() calls to use up file descriptors. Then retry
+ fdopendir_with_dup. This avoids failure with EMFILE if FD is 1
+ less than the maximum number of open file descriptors, because
+ save_cwd fails with errno == EMFILE. Problem reported by tsteven4
+ on Mac OS X 10.6.4 for tar 1.24
+ <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
+ <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
+ and for tar 1.25
+ <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
+
+2010-11-07 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: Support I flag on glibc systems.
+ * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
+ * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
+ * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
+ snprintf function.
+ * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
+ glibc systems.
+ * tests/test-vasnprintf-posix3.c: New file.
+ * modules/vasnprintf-posix-tests (Files): Add it.
+ (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
+
+2010-11-05 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
+
+ [html] Fix copy/paste bug: Use unique name for compiler warnings.
+ * MODULES.html.sh: For compiler warnings, use name
+ `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
+
+2010-11-05 Eric Blake <eblake@redhat.com>
+
+ ceil, floor: avoid spurious failure with icc
+ * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
+ [denormals-as-zero] when optimizing without -mieee-fp option.
+ * tests/test-floorf2.c (floorf_reference): Likewise.
+ * tests/test-ceilf1.c (dummy): New function.
+ (main): Use it to outsmart icc's optimization.
+ * tests/test-floorf1.c (dummy, main): Likewise.
+
+ tests: require working signbit
+ * modules/ceilf-tests (Depends-on): Add signbit.
+ * modules/ceill-tests (Depends-on): Likewise.
+ * modules/floorf-tests (Depends-on): Likewise.
+ * modules/floorl-tests (Depends-on): Likewise.
+ * modules/round-tests (Depends-on): Likewise.
+ * modules/roundf-tests (Depends-on): Likewise.
+ * modules/roundl-tests (Depends-on): Likewise.
+ * modules/trunc-tests (Depends-on): Likewise.
+ * modules/truncf-tests (Depends-on): Likewise.
+ * modules/truncl-tests (Depends-on): Likewise.
+
+ strtod: work around icc bug
+ * lib/strtod.c (minus_zero): Define to working value.
+ (strtod): Use it to avoid icc bug.
+
+ copysign: enhance tests
+ * modules/copysign-tests (Files): Add minus-zero.h.
+ * tests/test-copysign.c (main): Also test zeros.
+
+2010-11-04 Eric Blake <eblake@redhat.com>
+
+ ceil, floor, round, trunc: enhance tests of -0
+ * tests/test-ceilf1.c (main): Ensure correct sign of result.
+ * tests/test-ceill.c (main): Likewise.
+ * tests/test-floorf1.c (main): Likewise.
+ * tests/test-floorl.c (main): Likewise.
+ * tests/test-round1.c (main): Likewise.
+ * tests/test-roundf1.c (main): Likewise.
+ * tests/test-roundl.c (main): Likewise.
+ * tests/test-trunc1.c (main): Likewise.
+ * tests/test-truncf1.c (main): Likewise.
+ * tests/test-truncl.c (main): Likewise.
+
+2010-11-04 Eric Blake <eblake@redhat.com>
+
+ frexp, tests: work around ICC bug with -zero
+ * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
+ works with more compilers.
+ * tests/minus-zero.h: New file.
+ * modules/ceilf-tests (Files): Include it.
+ * modules/ceill-tests (Files): Likewise.
+ * modules/floorf-tests (Files): Likewise.
+ * modules/floorl-tests (Files): Likewise.
+ * modules/frexp-nolibm-tests (Files): Likewise.
+ * modules/frexp-tests (Files): Likewise.
+ * modules/frexpl-nolibm-tests (Files): Likewise.
+ * modules/frexpl-tests (Files): Likewise.
+ * modules/isnan-tests (Files): Likewise.
+ * modules/isnand-nolibm-tests (Files): Likewise.
+ * modules/isnand-tests (Files): Likewise.
+ * modules/isnanf-nolibm-tests (Files): Likewise.
+ * modules/isnanf-tests (Files): Likewise.
+ * modules/isnanl-nolibm-tests (Files): Likewise.
+ * modules/isnanl-tests (Files): Likewise.
+ * modules/round-tests (Files): Likewise.
+ * modules/roundf-tests (Files): Likewise.
+ * modules/roundl-tests (Files): Likewise.
+ * modules/ldexpl-tests (Files): Likewise.
+ * modules/signbit-tests (Files): Likewise.
+ * modules/snprintf-posix-tests (Files): Likewise.
+ * modules/sprintf-posix-tests (Files): Likewise.
+ * modules/strtod-tests (Files): Likewise.
+ * modules/trunc-tests (Files): Likewise.
+ * modules/truncf-tests (Files): Likewise.
+ * modules/truncl-tests (Files): Likewise.
+ * modules/vsnprintf-posix-tests (Files): Likewise.
+ * modules/vsprintf-posix-tests (Files): Likewise.
+ * modules/vasnprintf-posix-tests (Files): Likewise.
+ * modules/vasprintf-posix-tests (Files): Likewise.
+ * tests/test-ceilf1.c (main): Use it.
+ * tests/test-ceill.c (main): Likewise.
+ * tests/test-floorf1.c (main): Likewise.
+ * tests/test-floorl.c (main): Likewise.
+ * tests/test-frexp.c (main): Likewise.
+ * tests/test-frexpl.c (main): Likewise.
+ * tests/test-isnan.c (main): Likewise.
+ * tests/test-isnand.h (main): Likewise.
+ * tests/test-isnanf.h (main): Likewise.
+ * tests/test-isnanl.h (main): Likewise.
+ * tests/test-ldexpl.c (main): Likewise.
+ * tests/test-round.c (main): Likewise.
+ * tests/test-roundf.c (main): Likewise.
+ * tests/test-roundl.c (main): Likewise.
+ * tests/test-signbit.c (test_signbitf, test_signbitd)
+ (test_signbitl): Likewise.
+ * tests/test-snprintf-posix.h (test_function): Likewise.
+ * tests/test-sprintf-posix.h (test_function): Likewise.
+ * tests/test-strtod.c (main): Likewise.
+ * tests/test-trunc1.c (main): Likewise.
+ * tests/test-truncf1.c (main): Likewise.
+ * tests/test-truncl.c (main): Likewise.
+
+ isnanl: work around icc bug
+ * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
+
+2010-11-03 Eric Blake <eblake@redhat.com>
+
+ tests: fix compiler warnings
+ * tests/test-getopt.h (test_getopt): Fix condition.
+ * tests/test-getopt_long.h (test_getopt_long): Likewise.
+ * tests/test-pipe2.c (main): Likewise.
+ * tests/test-quotearg-simple.c (main): Avoid icc warning.
+
+ utimens: fix broken m4 test
+ * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
+
+2010-10-28 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn*, getdtablesize: Relax license.
+ * modules/posix_spawn (License): Change to LGPLv2+.
+ * modules/posix_spawnp (License): Likewise.
+ * modules/posix_spawn-internal (License): Likewise.
+ * modules/posix_spawnattr_init (License): Likewise.
+ * modules/posix_spawnattr_getflags (License): Likewise.
+ * modules/posix_spawnattr_setflags (License): Likewise.
+ * modules/posix_spawnattr_getpgroup (License): Likewise.
+ * modules/posix_spawnattr_setpgroup (License): Likewise.
+ * modules/posix_spawnattr_getschedparam (License): Likewise.
+ * modules/posix_spawnattr_setschedparam (License): Likewise.
+ * modules/posix_spawnattr_getschedpolicy (License): Likewise.
+ * modules/posix_spawnattr_setschedpolicy (License): Likewise.
+ * modules/posix_spawnattr_getsigdefault (License): Likewise.
+ * modules/posix_spawnattr_setsigdefault (License): Likewise.
+ * modules/posix_spawnattr_getsigmask (License): Likewise.
+ * modules/posix_spawnattr_setsigmask (License): Likewise.
+ * modules/posix_spawnattr_destroy (License): Likewise.
+ * modules/posix_spawn_file_actions_init (License): Likewise.
+ * modules/posix_spawn_file_actions_addclose (License): Likewise.
+ * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
+ * modules/posix_spawn_file_actions_addopen (License): Likewise.
+ * modules/posix_spawn_file_actions_destroy (License): Likewise.
+ * modules/getdtablesize (License): Likewise.
+ Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
+
+2010-10-26 Bruno Haible <bruno@clisp.org>
+
+ unistd: Refine workaround from 2009-12-23 against Cygwin bug.
+ * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
+ Cygwin and mingw.
+ Suggested by Eric Blake.
+
+2010-10-26 Bruno Haible <bruno@clisp.org>
+
+ stdio: Work around compilation error due to renameat() on Solaris 10.
+ * lib/stdio.in.h: Include <unistd.h> on Solaris.
+ * lib/renameat.c: Don't include <unistd.h> here.
+ * doc/posix-functions/renameat.texi: Mention the Solaris problem.
+ Reported by Paul Eggert and Eric Blake.
+
+2010-10-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ renameat: port to Solaris 10, which declares renameat in unistd.h
+
+ * lib/renameat.c: Include unistd.h before stdio.h, because
+ Solaris 10 declares renameat in unistd.h. Problem encountered
+ when building GNU tar 1.24 on Solaris 10.
+
+2010-10-26 Christian Weisgerber <naddy@mips.inka.de> (tiny change)
+
+ fdopendir: fix C89 compilation
+ * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
+ compilers.
+
+2010-10-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ inttostr: simplify by removing unnecessary redundancy
+ * lib/anytostr.c: Don't include verify.h.
+ (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
+ inttype_is_signed. Instead, disable the bogus GCC warnings, so that
+ there's no need for inttype_is_signed and for calling TYPE_SIGNED.
+ * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
+ * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
+ Likewise.
+ * modules/inttostr (Depends-on): Remove 'verify'.
+
+2010-10-23 Bruno Haible <bruno@clisp.org>
+
+ nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
+ * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
+ Reported by Eric Blake.
+
+2010-10-23 Bruno Haible <bruno@clisp.org>
+
+ Tests: Fix LOCALE_JA on MirBSD 10.
+ * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
+ to an UTF-8 locale.
+ * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
+ * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
+ Reported by Eric Blake.
+
+2010-10-21 Bruno Haible <bruno@clisp.org>
+
+ nl_langinfo test: Avoid test failure on NetBSD 5.
+ * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
+ Reported by Eric Blake.
+
+2010-10-21 Eric Blake <eblake@redhat.com>
+
+ c-stack: work around libsigsegv 2.8 bug
+ * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
+ overflow on at least PowerPC64.
+
+2010-10-17 Bruno Haible <bruno@clisp.org>
+
+ userspec: Drop redundant file.
+ * modules/userspec (Files): Remove lib/inttostr.h.
+
+2010-10-17 Bruno Haible <bruno@clisp.org>
+
+ nl_langinfo tests: Silence some warnings.
+ * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
+ Reported by Jim Meyering.
+
+2010-10-17 Bruno Haible <bruno@clisp.org>
+
+ Make use of GCC's attribute __alloc_size__.
+ * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
+ (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
+ xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
+ * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
+ __alloc_size__.
+ * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
+ Suggested by Jim Meyering.
+
+2010-10-16 Joel E. Denny <joeldenny@joeldenny.org>
+
+ bootstrap: anchor .gitignore entries.
+ * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
+ with...
+ (insert_vc_ignore): ... this new function, which prepends `/' to
+ all .gitignore entries before passing them to
+ insert_sorted_if_absent.
+
+2010-10-16 Bruno Haible <bruno@clisp.org>
+
+ nextafter: Fix configure check.
+ * modules/nextafter (configure.ac): Correct expected prototype.
+
+2010-10-16 Bruno Haible <bruno@clisp.org>
+
+ termios: Update documentation.
+ * doc/posix-headers/termios.texi: Mention remaining mingw problems.
+
+2010-10-16 Bruno Haible <bruno@clisp.org>
tests: Make them compile with TinyCC.
* tests/test-strstr.c (main): Remove parentheses around array