fdopendir: fix bug on MacOS X when low on file descriptors
[pspp] / ChangeLog
index 72475ef3952083af690eee03fe11606523bcb7db..4d9c4ea555be80d7757b6aaf1177d29c8b9dcf9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,157 @@
+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.