* lib/stat-time.h (USE_BIRTHTIME): Remove.
[gnulib.git] / ChangeLog
index cd9a160..b8f5db0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,279 @@
+2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/stat-time.h (USE_BIRTHTIME): Remove.
+       (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
+       (get_stat_birthtime_ns): Do not try to use "spare" fields.
+       (get_stat_birthtime_ns): Simplify compile-time tests.
+       (get_stat_birthtime): Change the API to look like
+       get_stat_mtime etc., except return a negative tv_nsec on error.
+       * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
+       Don't check for "spare" fields.
+       (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
+       or for struct stat.st_birthtime, as these tests aren't used.
+       * tests/test-stat-time.c (test_birthtime): Adjust to new API.
+
+2007-03-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stat-time.h: Include <sys/stat.h>.
+
+2007-03-27  James Youngman  <jay@gnu.org>
+
+       * lib/stat-time.h (get_stat_birthtime): New function for
+         retrieving st_birthtime as provided by UFS2 (hence *BSD).
+       * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
+         and its variants.
+       * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
+       * modules/stat-time-test: New file.
+       * tests/test-stat-time.c: New test, devised by Bruno Haible.
+
+2007-03-26  Bruno Haible  <bruno@clisp.org>
+
+       Better support of signalling NaNs.
+       * lib/atanl.c: Include isnanl.h.
+       (atanl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/cosl.c: Include isnanl.h.
+       (cosl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/ldexpl.c: Include isnanl.h.
+       (ldexpl): Perform test for NaN through a call to isnanl.
+       * lib/logl.c: Include isnanl.h.
+       (logl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/sinl.c: Include isnanl.h.
+       (sinl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/sqrtl.c: Include isnanl.h.
+       (sqrtl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/tanl.c: Include isnanl.h.
+       (tanl): Perform test for NaN at the beginning of the function and
+       through a call to isnanl.
+       * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
+       * modules/mathl (Depends-on): Add isnanl.
+
+2007-03-26  Eric Blake  <ebb9@byu.net>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
+       regression in logic sense of previous patch.
+
+2007-03-26  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
+       unportable shell command "if ! ...".
+       Reported by Ralf Wildenhues.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
+       <sysexits.h> file, and only add EX_CONFIG.
+       * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
+       absolute file name and whether it is sufficient. Substitute also
+       HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
+       * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
+       ABSOLUTE_SYSEXITS_H into sysexits.h.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
+       hints is NULL.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
+       * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c: Include langinfo.h.
+       (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
+       multithread-safe.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       Reported by Simon Josefsson.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
+       (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
+       * modules/vasnprintf (Depends-on): Add stdint.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fpieee: New file.
+       * m4/fpieee.m4: New file.
+       * modules/isnan-nolibm (Depends-on): Add fpieee.
+       * modules/isnanl-nolibm (Depends-on): Add fpieee.
+       * modules/isnanl (Depends-on): Add fpieee.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failures on IRIX 6.5.
+       * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
+       (main): Use it.
+       * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
+       macros.
+       (main): Use them.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
+       (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
+       exists but doesn't work.
+       * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
+       is set. Don't provide a prototype if REPLACE_FREXPL is not set.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
+       * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
+       returns inf. Needed on IRIX 6.5.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-frexpl.c: Include isnanl-nolibm.h.
+       (main): Use isnanl instead of x != x idiom.
+       * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
+
+       * tests/test-frexp.c: Include isnan.h.
+       (main): Use isnan instead of x != x idiom.
+       * modules/frexp-tests (Depends-on): Add isnan-nolibm.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-frexp.c (NaN): New function/macro.
+       (main): Use it instead of 0.0 / 0.0.
+       * tests/test-isnan.c (NaN): New function/macro.
+       (main): Use it instead of 0.0 / 0.0.
+       * tests/test-vasnprintf-posix.c (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+       * tests/test-vasprintf-posix.c (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+       * tests/test-snprintf-posix.h (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+       * tests/test-sprintf-posix.h (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+       * tests/test-fprintf-posix.h (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+       * tests/test-printf-posix.h (NaN): New function/macro.
+       (test_function): Use it instead of 0.0 / 0.0.
+
+       * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/regexec.c (merge_state_with_log): Make static.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/trigl.c (kernel_rem_pio2): Make static.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sincosl.c (sincosl_table): Make static.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
+       if the compiler does not support C99.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/time (Makefile.am): Ensure all rule action lines start with a
+       tab.
+
+2007-03-24  Bruno Haible  <bruno@clisp.org>
+
+       * modules/tsearch-tests: New file.
+       * tests/test-tsearch.sh: New file.
+       * tests/test-tsearch.c: New file, mostly copied from glibc.
+
+       * modules/search-tests: New file.
+       * tests/test-search.c: New file.
+
+       * modules/search: New file.
+       * lib/search_.h: New file, incorporating lib/tsearch.h.
+       * m4/search_h.m4: New file.
+       * lib/tsearch.h: Remove file.
+       * lib/tsearch.c: Include search.h instead of tsearch.h.
+       * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
+       HAVE_TSEARCH.
+       * modules/tsearch (Files): Remove lib/tsearch.h.
+       (Depends-on): Add search.
+       (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
+       (Include): Change tsearch.h into search.h.
+
+2007-03-24  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fpucw: New file.
+       * lib/fpucw.h: New file.
+       * lib/frexp.c: Include fpucw.h.
+       (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
+       (FUNC): Use them.
+       * lib/printf-frexp.c: Include fpucw.h.
+       (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
+       (FUNC): Use them.
+       * lib/vasnprintf.c: Include fpucw.h.
+       (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
+       'long double' calculations.
+       * tests/test-frexpl.c: Include fpucw.h.
+       (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
+       * tests/test-printf-frexpl.c: Include fpucw.h.
+       (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
+       * modules/frexpl (Depends-on): Add fpucw.
+       * modules/printf-frexpl (Depends-on): Likewise.
+       * modules/fprintf-posix (Depends-on): Likewise.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf-posix (Depends-on): Likewise.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * modules/frexpl-tests (Depends-on): Likewise.
+       * modules/printf-frexpl-tests (Depends-on): Likewise.
+
+2007-03-24  Bruno Haible  <bruno@clisp.org>
+
+       * lib/float+.h: New file.
+       * lib/isnan.c: Include float+.h.
+       (SIZE): New macro.
+       (FUNC): Compare only SIZE bytes of the value.
+       * lib/vasnprintf.c: Include float+.h.
+       (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
+       SIZEOF_LDBL or SIZEOF_DBL bytes.
+       * modules/isnan-nolibm (Files): Add lib/float+.h.
+       * modules/isnanl-nolibm (Files): Add lib/float+.h.
+       * modules/isnanl (Files): Add lib/float+.h.
+       * modules/vasnprintf (Files): Add lib/float+.h.
+
+2007-03-24  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
+       include isnanl-nolibm.h.
+
+2007-03-24  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-read-file.c (main): Don't produce spurious output for
+       expected situations. Make the test fail if it encountered unexpected
+       results.
+
 2007-03-24  Bruno Haible  <bruno@clisp.org>
 
        * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
        * lib/unistr/u16-strchr.c: Likewise.
        * lib/unistr/u16-strrchr.c: Likewise.
        * lib/striconveh.c: Update.
+       * lib/linebreak.c: Update.
 
 2007-03-24  Bruno Haible  <bruno@clisp.org>