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