* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
[gnulib.git] / ChangeLog
index 7019823..483ae18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,454 @@
+2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
+       comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
+
+2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
+       readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
+
+2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (struct hol_entry): New member `ord'.
+       (HOL_ENTRY_PTRCMP): Use ord for comparison
+       (hol_sort): Initialize ord.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
+       Reported by Eric Blake.
+       * doc/gnulib.texi (Function Substitutes): Update.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions.texi: Remove file, now redundant through
+       doc/functions/*.texi.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/argp (Depends-on): Add sleep.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/sleep-tests: New file.
+       * tests/test-sleep.c: New file.
+
+       * modules/sleep: New file.
+       * lib/sleep.c: New file.
+       * m4/sleep.m4: New file.
+       * lib/unistd_.h (sleep): New declaration.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
+       HAVE_SLEEP.
+       * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
+       * doc/functions/sleep.texi: Document the sleep module.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sigprocmask.h: Remove file.
+       * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
+       * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
+       * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
+       HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
+       * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
+       gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
+       (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
+       HAVE_SIGSET_T as a shell variable.
+       * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
+       HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
+       * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
+       (Depends-on): Add signal. Remove verify.
+       (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
+       (Include): Mention <signal.h> instead of sigprocmask.h.
+       * NEWS: Mention the change.
+       * lib/fatal-signal.c: Don't include sigprocmask.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/signal: New file.
+       * lib/signal_.h: New file.
+       * m4/signal_h.m4: New file.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
+       * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
+       * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
+       HAVE_WCTYPE_CTMP_BUG into wctype.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
+       configure time.
+       * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
+       HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
+       * modules/sys_stat (Makefile.am): Substitute their values into
+       sys/stat.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
+       * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
+       * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/header/assert.texi: Undo last change: don't mention the gnulib
+       'assert' module here.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/*.texi: New files.
+       * doc/functions/google-ranking.txt: New file.
+       * doc/gnulib.texi (Function Substitutes): New chapter.
+       (ctime, inet_ntoa): Remove sections.
+       * doc/ctime.texi: Remove file.
+       * doc/inet_ntoa.texi: Remove file.
+       * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
+       dependencies.
+       (%.info): New rule, specifying a --reference-limit.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
+       the portability of 'mkdir' to mingw systems.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/headers/google-ranking.txt: New file.
+
+2007-04-30  Eric Blake  <ebb9@byu.net>
+
+       Prefer fseeko to fseek.
+       * modules/getpass (Depends-on): Add fseeko.
+       * lib/getpass.c (getpass): Use fseeko, not fseek.
+
+2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
+       assumes the sorting is stable, while most qsort implementations
+       are not.  Use argument addresses to ensure they never compare as
+       equal.
+
+       * tests/test-argp-2.sh (usage-indent test): Fix output
+       (func_compare): Restore diff options
+       * tests/test-argp.c: Restore #include "progname.h"
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
+       gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
+       (configure.ac): Define CHECK_SNPRINTF_POSIX.
+       (TESTS, check_PROGRAMS): Add test-snprintf.
+       * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
+       (configure.ac): Define CHECK_VSNPRINTF_POSIX.
+       (TESTS, check_PROGRAMS): Add test-vsnprintf.
+       * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
+       assertions that fail on HP-UX, OSF/1, or IRIX.
+       * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (posix_functions): Remove 'contents'.
+
+2007-04-29  Karl Berry  <karl@gnu.org>
+
+       * config/srclist.txt (gendocs_template_min): new entry.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       Work around fpurge bug on BSD systems.
+       * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
+       * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
+       * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
+       fpurge to rpl_fpurge if the system already has this function.
+       * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
+       the case where the system already has this function. Correct invariants
+       on BSD systems.
+       * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
+       BSD systems.
+
+2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
+       proposed by Sven Verdoolaege.
+
+       * tests/test-argp.c: Fix option ordering.  Test deeply clustered
+       options.
+       * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
+       (usage and help tests): Update
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fflush.c (main): Use a file of size 17, not 10.
+       Print more information in case of failure. Disable a test on BeOS.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
+       This helps debugging on systems on which no gdb is available.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freading.h: Improve comments.
+       * lib/fwriting.h: Likewise.
+       * tests/test-freading.c (main): Don't check freading immediately after
+       repositioning. Needed for glibc.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freading.c (freading): Trivial simplification.
+
+2007-04-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fwriting.c (main): Also test the interaction between
+       fflush and fwriting.
+       * modules/fwriting-tests (Depends-on): Add fflush.
+
+       * tests/test-freading.c (main): Also test the interaction between
+       fflush and freading.
+       * modules/freading-tests (Depends-on): Add fflush.
+
+2007-04-28  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
+       fseeko and ftello.
+       Suggested by Eric Blake.
+
+2007-04-28  Jim Meyering  <jim@meyering.net>
+
+       Avoid false-negative in gl_STDINT_H's C99 conformance test.
+       * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
+       to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
+
+2007-04-27  Eric Blake  <ebb9@byu.net>
+
+       * doc/headers/assert.texi (assert.h): Document assert module use.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * doc/headers/*.texi: New files.
+       * doc/gnulib.texi (Header File Substitutes): New chapter.
+       * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
+       dependencies.
+       (standards.info ,standards.html, standards.dvi): Update dependencies.
+       (mostlyclean, clean): New targets.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sysexits_.h: Renamed from lib/sysexit_.h.
+       * modules/sysexits (Files, Makefile.am): Update.
+
+       * lib/sys_socket_.h: Renamed from lib/socket_.h.
+       * modules/sys_socket (Files, Makefile.am): Update.
+
+       * lib/sys_stat_.h: Renamed from lib/stat_.h.
+       * modules/sys_stat (Files, Makefile.am): Update.
+
+2007-04-27  Eric Blake  <ebb9@byu.net>
+
+       * lib/freading.h: Improve comments.
+       * lib/fwriting.h: Likewise.
+       * lib/fflush.c: Likewise.
+
+       Fix closein for mingw.
+       * modules/closein-tests: Add tests for closein.
+       * tests/test-closein.c: New file.
+       * tests/test-closein.sh: Likewise.
+       * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
+       * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
+       version is < 6.
+       * lib/math_.h [__DECC]: Likewise.
+       * lib/stdio_.h [__DECC]: Likewise.
+       * lib/stdlib_.h [__DECC]: Likewise.
+       * lib/string_.h [__DECC]: Likewise.
+       * lib/time_.h [__DECC]: Likewise.
+       * lib/wchar_.h [__DECC]: Likewise.
+       * lib/wctype_.h [__DECC]: Likewise.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fflush.c: Add comments.
+       * modules/fpurge-tests (Depends-on): Add fflush.
+       * modules/freadable-tests (Depends-on): Likewise.
+       * modules/fwritable-tests (Depends-on): Likewise.
+
+2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
+
+       * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
+       SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
+       Report by Bruno Haible <bruno@clisp.org>.
+
+2007-04-26  Eric Blake  <ebb9@byu.net>
+
+       Fix fflush on mingw.
+       * modules/fflush (Depends-on): Add freading.
+       * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
+       but unread data.
+
+2007-04-26  Eric Blake  <ebb9@byu.net>
+       and Bruno Haible  <bruno@clisp.org>
+
+       Implement freading and fwriting.
+       * lib/freading.c: New file.
+       * lib/freading.h: Likewise.
+       * m4/freading.m4: Likewise.
+       * modules/freading: Likewise.
+       * modules/freading-tests: Likewise.
+       * tests/test-freading.c: Likewise.
+       * lib/fwriting.c: New file.
+       * lib/fwriting.h: Likewise.
+       * m4/fwriting.m4: Likewise.
+       * modules/fwriting: Likewise.
+       * modules/fwriting-tests: Likewise.
+       * tests/test-fwriting.c: Likewise.
+       * MODULES.html.sh (File stream based Input/Output): Mention them.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
+       'long' when we assume it.
+       Suggested by Eric Blake.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Ensure fseeko, ftello are declared on glibc systems.
+       * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
+       * modules/fseeko (configure.ac-early): Likewise.
+       * modules/ftello (configure.ac-early): Likewise.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
+       AC_FUNC_FSEEKO for this.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
+       (gl_CHECK_FSEEKO): Remove macro.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fflush.c (main): Also check the ftell result after
+       fflush and fseek/fseeko.
+       * lib/fflush.c (rpl_fflush): For BSD implementations, update the
+       file descriptor position cache in the stream.
+       * lib/fseeko.c (rpl_fseeko): Likewise.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush-tests (Depends-on): Add fseeko.
+
+2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/argz_.h: ensure error_t definition is obtained in same
+       mechanism system argz.h would have.
+       * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
+       argz facilities are known bad.  Err on the side of caution if
+       cross-compiling.
+
+2007-04-25  Eric Blake  <ebb9@byu.net>
+
+       * lib/fpurge.c (includes): Use stdlib.h for free.
+       * tests/test-fflush.c (main): Also test fflush-fseeko.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
+       * lib/fseeko.c: New file.
+       * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
+       (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
+       * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
+       gl_FUNC_FSEEKO.
+       (gl_FUNC_FSEEKO): Invoke it.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
+       gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
+       * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush (Depends-on): Add ftello.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ftello-tests: New file.
+       * tests/test-ftello.c: New file.
+
+       * modules/ftello: New file.
+       * m4/ftello.m4: New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
+       HAVE_FTELLO.
+       * lib/stdio_.h (ftello): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
+       HAVE_FTELLO.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fseeko-tests: New file.
+       * tests/test-fseeko.c: New file.
+
+       * modules/fseeko: New file.
+       * m4/fseeko.m4: New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
+       HAVE_FSEEKO.
+       * lib/stdio_.h (fseeko): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
+       HAVE_FSEEKO.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
+       * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
+       * tests/test-unistd.c: Likewise.
+       * tests/test-fcntl.c: Likewise.
+
+2007-04-23  Eric Blake  <ebb9@byu.net>
+
+       * lib/fflush.c: Fix missing include.
+       Reported by Bruno Haible.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
+       Reported by Eric Blake.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
+       Needed on HP-UX 11.
+
 2007-04-16  Eric Blake  <ebb9@byu.net>
 
+       Make fflush rely on fpurge.
+       * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
+       open coding all variants.
+       * modules/fflush (Depends-on): Add fpurge and unistd.
+       * modules/fflush-tests (Depends-on): Unistd is no longer extra.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
+
        Fix --with-tests compilation on cygwin.
        * modules/argmatch-tests (Makefile.am): List gnulib library first
        in LDADD.