+2006-10-12 Jim Meyering <jim@meyering.net>
+
+ * m4/getloadavg.m4: Revert the change below.
+
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
+ lib/getloadavg.c using "ls -L", not "test -f". The latter would
+ fail with a symlink, which is what coreutils' ./bootstrap now
+ creates by default.
+
+2006-10-12 Bruno Haible <bruno@clisp.org>
+
+ * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
+ mingw.
+ (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
+ MSVC and mingw explicitly.
+
+2006-10-11 Simon Josefsson <jas@extundo.com>
+ Bruno Haible <bruno@clisp.org>
+
+ Add support for multiple gnulib-tool invocations in the scope of a
+ single configure.ac file.
+ * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
+ use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
+ with the same contents as the _LIBADD variable.
+ (func_emit_initmacro_start, func_emit_initmacro_end,
+ func_emit_initmacro_done): New functions.
+ (func_import, func_create_testdir): Invoke them. Allow the identifiers
+ gl_LIBOBJS and gl_LTLIBOBJS.
+
+2006-10-11 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
+ (func_create_testdir): Don't create po/Makefile.am, don't invoke
+ autoreconf. Instead, invoke autopoint explicitly but move back the
+ *.m4 files from gnulib.
+
+2006-10-11 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_usage): Make module names after --create-testdir
+ optional.
+ (func_create_testdir): If no module was specified, use nearly all
+ modules.
+
+2006-10-12 Jim Meyering <jim@meyering.net>
+
+ Big performance improvement for fts-based tools that use FTS_NOSTAT.
+ Avoid spurious inode-mismatch problems on non-POSIX file systems.
+ Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
+ * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
+ (FTS_OPTIONMASK): Extend the mask to reflect this addition.
+ * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
+ (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
+ (fts_set_stat_required): New function.
+ (fts_open): Defer the calls to fts_stat, if possible or requested.
+ Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
+ into fts_stat itself.
+ (fts_read): Perform any required (deferred) fts_stat call.
+ (fts_build): Likewise, for the directory we're about to open and read.
+ In the readdir loop, carefully decide whether each entry will require
+ an eventual call to fts_stat, using dirent.d_type info if available.
+ (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
+ a command line argument into this function. Update all callers.
+ Map a return value of FTS_DOT to FTS_D for a command line argument.
+ * modules/fts (Depends-on): Add d-type. Alphabetize.
+ Thanks to Miklos Szeredi for his tenacity and for the initial
+ bug report about "find" failing on a FUSE-based file system.
+
+ * lib/fts.c (fts_open): Use consistent indentation.
+
+2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
+ gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
+ reported by Jim Meyering. All uses of cache variables renamed
+ to match Autoconf's.
+ (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
+ the other one.
+
+ * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
+ Fix misspelling in diagnostic.
+
+2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
+ defined. Problem reported by Matthew Woehlke.
+
+ * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
+ Add support for Tandem NonStop R series.
+ (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
+ Use new macro.
+
+ * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
+ (has_trailing_slash): Omit size arg; all callers changed.
+ Omit 'inline', since it doesn't help performance and we'd
+ need to configure it.
+ Don't count //, ///, etc. as having a trailing slash.
+ As a side effect, this removes a C99ism reported by Matthew Woehlke.
+ (rpl_rename_dest_slash): On failure, use rename's errno rather
+ than (in some cases) an incorrect or junk errno.
+ Simplify code by removing need to compute length; this does
+ cause it to make two passes instead of one over the file name,
+ but it's worth it.
+
+ * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
+ change, since Autoconf's version may no longer be appropriate now
+ that we are using CVS Autoconf's version. Add support for Tandem.
+
+2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
+ HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
+ * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
+ gl_AC_TYPE_LONG_LONG.
+
+ * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
+ instead of HAVE_LONG_LONG.
+ * lib/printf-args.c (printf_fetchargs): Likewise.
+ * lib/printf-parse.c (PRINTF_PARSE): Likewise.
+ * lib/vasnprintf.c (VASNPRINTF): Likewise.
+ * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
+ gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
+ gl_AC_TYPE_LONG_LONG.
+
+2006-10-11 Bruno Haible <bruno@clisp.org>
+
+ * m4/longlong.m4: Add comments.
+ * m4/ulonglong.m4: Likewise.
+
+2006-10-10 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to #define stpcpy, strdup to aliases.
+ * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
+ * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
+
+2006-10-10 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to #define gcd to an alias.
+ * lib/gcd.c: Include config.h.
+
+2006-10-10 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to #define c_isascii to an alias.
+ * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
+ defined. Undefine the macros before defining them, to avoid gcc
+ warnings.
+ * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
+ define NO_C_CTYPE_MACROS early.
+
+2006-10-10 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to #define set_program_name to an alias.
+ * lib/progname.c: Don't undefine set_program_name; instead, undefine
+ ENABLE_RELOCATABLE early.
+
+2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ Port to Tandem NSK OSS, which has 64-bit signed int but at most
+ 32-bit unsigned int. Problem reported by Matthew Woehlke in:
+ http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
+ More generally, don't assume that 64-bit signed int is available
+ if unsigned int is, and vice versa.
+ * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
+ unsigned symbols, not on their signed counterparts.
+ * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
+ (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
+ (UINT64_C, UINTMAX_C):
+ Likewise.
+ * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
+ unsigned counterparts.
+ (Have_long_long, Unsigned): New macros.
+ (Int): Renamed from INT.
+ (strtoimax): Use the new macros.
+ * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
+ and substitute HAVE_UNSIGNED_LONG_LONG_INT.
+ * modules/inttypes (inttypes.h): Substitute
+ HAVE_UNSIGNED_LONG_LONG_INT.
+ * modules/stdint (stdint.h): Likewise.
+ (Files): Add m4/ulonglong.m4.
+
+2006-10-10 Bruno Haible <bruno@clisp.org>
+
+ Fix a gcc -Wshadow warning.
+ * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
+ to 'bucket'.
+ * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
+ gl_linked_indexof_from_to): Likewise.
+ * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
+ Likewise.
+ * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
+ Likewise.
+ * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
+ Reported by Eric Blake.
+
+2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
+ for NetBSD. Problem reported by Bruno Haible.
+
+2006-10-09 Jim Meyering <jim@meyering.net>
+
+ * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
+ Patch from Bruno Haible.
+
+2006-10-09 Jim Meyering <jim@meyering.net>
+
+ * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
+ to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
+ Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
+
+2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ Don't include <config.h> twice; this doesn't work in some cases,
+ e.g., when config.h has "#define intmax_t long long int" and
+ we include <config.h>, <inttypes.h>, <config.h> in that order.
+ Problem reported by Matthew Woehlke in:
+ http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
+ * lib/fprintftime.c: Don't include config.h or fprintftime.h.
+ * lib/fts-cycle.c: Don't include config.h.
+ * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
+ * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
+ Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
+ and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
+ inttypes.h.
+ * lib/xstrtoumax.c: Likewise.
+ * lib/xstrtol.c: Include config.h and xstrtol.h after defining
+ __strtol and the like, so that this module is more like its siblings.
+ (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
+ Remove; no longer needed now that we assume gnulib inttypes.h.
+
+2006-10-08 Bruno Haible <bruno@clisp.org>
+
+ * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
+ option.
+
+2006-10-07 Jim Meyering <jim@meyering.net>
+
+ * modules/inttypes (inttypes.h): Revert what seems to have been
+ an inadvertent part of today's change: use "|", not "/" in the
+ substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
+
+2006-10-07 Bruno Haible <bruno@clisp.org>
+
+ * modules/sublist: New file.
+
+2006-10-07 Bruno Haible <bruno@clisp.org>
+
+ * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
+ * modules/argz (argz.h): Likewise.
+ * modules/arpa_inet (arpa/inet.h): Likewise.
+ * modules/byteswap (byteswap.h): Likewise.
+ * modules/configmake (configmake.h): Likewise.
+ * modules/fcntl (fcntl.h): Likewise.
+ * modules/fnmatch (fnmatch.h): Likewise.
+ * modules/getopt (getopt.h): Likewise.
+ * modules/glob (glob.h): Likewise.
+ * modules/inttypes (inttypes.h): Likewise.
+ * modules/netinet_in (netinet/in.h): Likewise.
+ * modules/poll (poll.h): Likewise.
+ * modules/stdbool (stdbool.h): Likewise.
+ * modules/stdint (stdint.h): Likewise.
+ * modules/sys_select (sys/select.h): Likewise.
+ * modules/sys_socket (sys/socket.h): Likewise.
+ * modules/sys_stat (sys/stat.h): Likewise.
+ * modules/sysexits (sysexits.h): Likewise.
+ * modules/unistd (unistd.h): Likewise.
+ * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
+ Add a "DO NOT EDIT" comment to the generated file.
+ (func_import): Likewise for gnulib-comp.m4.
+
+2006-10-07 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_sublist.h: New file.
+ * lib/gl_sublist.c: New file.
+
+2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
+ name (relative to the original working directory) and the file
+ name component (relative to the temporary working directory). All
+ callers changed.
+ * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
+ * lib/mkdir-p.c (make_dir_parents): Likewise.
+ * lib/mkdir-p.h (make_dir_parents): Likewise.
+
+2006-10-06 Eric Blake <ebb9@byu.net>
+
+ Define several macros for use by the clean-temp module.
+ * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
+ * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
+ * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
+
+ * lib/clean-temp.h (close_stream_temp): New declaration.
+ * lib/clean-temp.c (includes): Pull in headers according to what
+ other modules are in use.
+ (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
+
+2006-10-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
+ instead of fopen, fwriteerror.
+
+2006-10-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
+ cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
+ int.
+ * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
+ cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
+ Return an error indicator.
+ Suggested by Eric Blake.
+
+2006-10-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
+ Reported by Eric Blake.
+
+2006-10-06 Bruno Haible <bruno@clisp.org>
+
+ * modules/closeout (Description): Mention stderr too.
+
+2006-10-06 Bruno Haible <bruno@clisp.org>
+ and Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/closeout.c (close_stdout): Also close stderr.
+ * lib/closeout.h: Update comment.
+
+2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
+ <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
+ * lib/dirchownmod.c: Include lchown.h.
+ * lib/lchown.c: Don't include files that lchown.h now includes.
+ Don't declare chown, since lchown.h now does that.
+ * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
+ (lchown): Define to rpl_chown if lchown is declared but
+ does not exist. Declare using a prototype if lchown is not
+ declared. Add a copyright notice.
+ * lib/mkstemp.h: Include <unistd.h>.
+ * lib/openat.c: Include lchown.h.
+
+ * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
+ we now test for that separately.
+ * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
+ rather than O_NOFOLLOW, when testing whether it's possible to
+ avoid a race condition reliably.
+ * lib/savewd.c (savewd_chdir): Likewise.
+
+ Remove macros that are no longer needed now that stdint.h is
+ reliable.
+ * lib/fsusage.c (UINTMAX_MAX): Remove.
+ * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
+ * lib/utimecmp.c (SIZE_MAX): Remove.
+
+ * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
+
+ * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
+ of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
+ O_NOATIME works.
+
+2006-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_list.h (gl_sortedlist_search_from_to,
+ gl_sortedlist_indexof_from_to): New declarations.
+ (gl_list_implementation): New fields sortedlist_search_from_to,
+ sortedlist_indexof_from_to.
+ (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
+ inline functions.
+ * lib/gl_list.c (gl_sortedlist_search_from_to,
+ gl_sortedlist_indexof_from_to): New functions.
+ * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
+ function.
+ (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
+ (gl_array_sortedlist_search_from_to): New function.
+ (gl_array_list_implementation): Update.
+ * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
+ function.
+ (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
+ (gl_carray_sortedlist_search_from_to): New function.
+ (gl_carray_list_implementation): Update.
+ * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
+ gl_linked_sortedlist_indexof_from_to): New functions.
+ * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
+ * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
+ * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
+ gl_tree_sortedlist_indexof_from_to): New functions.
+ * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
+ * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
+ Update.
+ * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
+ * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
+ Update.
+
+2006-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
+ gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
+ (struct gl_list_implementation): Add fields search_from_to,
+ indexof_from_to. Remove fields search, indexof.
+ (gl_list_search): Use the search_from_to method.
+ (gl_list_search_from, gl_list_search_from_to): New functions.
+ (gl_list_indexof): Use the indexof_from_to method.
+ (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
+ * lib/gl_list.c (gl_list_search): Use the search_from_to method.
+ (gl_list_search_from, gl_list_search_from_to): New functions.
+ (gl_list_indexof): Use the indexof_from_to method.
+ (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
+ * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
+ gl_array_indexof. Add start_index, end_index arguments.
+ (gl_array_search_from_to): Renamed from gl_array_search. Add
+ start_index, end_index arguments.
+ (gl_array_remove, gl_array_list_implementation): Update.
+ * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
+ gl_carray_indexof. Add start_index, end_index arguments.
+ (gl_carray_search_from_to): Renamed from gl_carray_search. Add
+ start_index, end_index arguments.
+ (gl_carray_remove, gl_carray_list_implementation): Update.
+ * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
+ gl_linked_search. Add start_index, end_index arguments.
+ (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
+ start_index, end_index arguments.
+ (gl_linked_remove): Update.
+ * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
+ * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
+ * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
+ field to 'size_t'.
+ * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
+ gl_tree_search. Add start_index, end_index arguments.
+ (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
+ start_index, end_index arguments.
+ (gl_tree_remove): Update.
+ * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
+ * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
+ * lib/gl_anytreehash_list1.h (compare_position_threshold): New
+ function.
+ * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
+ gl_tree_search. Add start_index, end_index arguments.
+ (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
+ start_index, end_index arguments.
+ * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
+ Update.
+ * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
+
+2006-10-05 Bruno Haible <bruno@clisp.org>
+
+ * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
+
+ * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
+ fwriteerror_temp): New declarations.
+ * lib/clean-temp.c (uintptr_t): Provide fallback definition.
+ (descriptors): New variable.
+ (cleanup): First, close the descriptors.
+ (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
+ fclose_temp, fwriteerror_temp): New functions.
+
+2006-10-04 Jim Meyering <jim@meyering.net>
+
+ * lib/fts.c (fts_open): Tiny comment change.
+
+2006-10-04 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
+ * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
+ gl_LOCK_BODY.
+ (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
+ (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
+ gl_LOCK_EARLY_BODY.
+ (gl_LOCK): Require gl_LOCK_BODY.
+
+2006-10-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
+ (gl_oset_search_atleast): New declaration.
+ (struct gl_oset_implementation): Add field 'search_atleast'.
+ (gl_oset_search_atleast): New inline function.
+ * lib/gl_oset.c (gl_oset_search_atleast): New function.
+ * lib/gl_array_oset.c (gl_array_search_atleast): New function.
+ (gl_array_oset_implementation): Update.
+ * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
+ * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
+ * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
+
+2006-10-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
+
+2006-10-03 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
+ from gl_avltreehash_list_implementation.
+
+2006-10-03 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_oset.c (gl_oset_add): Fix return type.
+
+2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
+
+ * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
+
+2006-10-02 Eric Blake <ebb9@byu.net>
+
+ * modules/strnlen (Depends-on): Add extensions.
+
+2006-10-02 Eric Blake <ebb9@byu.net>
+
+ * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
+ definition in 2.60+.
+
+2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
+
+ * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
+ checks.
+
+2006-10-02 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
+ to the AUTOMAKE_OPTIONS.
+ Reported by Jim Meyering.
+
+2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
+
+ Work around bug in Solaris 10 /proc file system:
+ /proc/self/fd/NNN/.. isn't the parent directory of
+ the directory whose file descriptor is NNN. This needs to
+ be worked around at run time, not compile time, since a
+ program might be built on Solaris 8, where things work, and
+ run on Solaris 10.
+ * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
+ to use the following interface instead:
+ (OPENAT_BUFFER_SIZE): New macro.
+ (openat_proc_name): New function.
+ * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
+ * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
+ Likewise.
+ * lib/openat-proc.c: New file.
+ * modules/openat (Files): Add lib/openat-proc.c.
+ (Depends-on): Add same-inode, stdbool.
+ * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
+
+2006-09-29 Bruno Haible <bruno@clisp.org>
+
+ * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
+ * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
+ argument. Set stdout_closed before testing for ferror, not after.
+ (fwriteerror, fwriteerror_no_ebadf): New functions.
+
+2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
+
+2006-09-28 Paolo Bonzini <bonzini@gnu.org>
+
+ * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
+ * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
+
+2006-09-28 Jim Meyering <jim@meyering.net>
+
+ * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
+ Include <unistd.h>.
+
+2006-09-28 Bruno Haible <bruno@clisp.org>
+
+ * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
+ * modules/linkedhash-list (Depends-on): Likewise.
+ * modules/rbtreehash-list (Depends-on): Likewise.
+
+2006-09-28 Bruno Haible <bruno@clisp.org>
+
+ * lib/strndup.h: Simplify the redefinition of strndup.
+ (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
+ * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
+
+2006-09-28 Bruno Haible <bruno@clisp.org>
+
+ * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
+ * lib/gl_linkedhash_list.c: Likewise.
+ * lib/gl_rbtreehash_list.c: Likewise.
+
+2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
+ getaddrinfo.
+
+ * lib/__fpending.h: Don't include <stdio_ext.h> unless
+ HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
+ it causes <stdio_ext.h> to cause a compile-time error.
+ Problem reported by Nelson H. F. Beebe.
+ * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
+ of HAVE_DECL___PENDING.
+
+ * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
+ * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
+ declaration.
+
+2006-09-27 Jim Meyering <jim@meyering.net>
+
+ This file could end up with a definition for a function
+ named __strndup, rather than rpl_strndup on a system with
+ incomplete weak_alias support.
+ * lib/strndup.c (strndup): Rename from __strndup.
+ Remove #defines that used to map __strndup to strndup.
+ Don't use K&R prototypes.
+ Remove LIBC-related code, since this file is not sync'd with glibc.
+ * lib/strndup.h: Revamp, accordingly.
+ * m4/strndup.m4: Modernize.
+
+2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/savewd (Depends-on): Add 'raise'.
+ * lib/savewd.c: Include <signal.h>, for 'raise'.
+
+2006-09-26 Jim Meyering <jim@meyering.net>
+
+ * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
+ when we detect Darwin 8.7.0's acl_get_file bug.
+ Rearrange to perform the new (below) run-test while $LIBS
+ contains any acl-related library. Set USE_ACL at the end.
+ (gl_ACL_GET_FILE): New function.
+
+2006-09-26 Eric Blake <ebb9@byu.net>
+
+ * lib/verror.c: Include <config.h> unconditionally.
+
+2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/clock-time (Maintainer): Add self.
+ * modules/getlogin_r (Depends-on): Add extensions.
+
+2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * modules/clock-time: New module.
+ * modules/nanosleep (Depends-on): Add clock-time.
+ * modules/gethrxtime (Depends-on): Likewise.
+ * modules/gettime (Depends-on): Likewise.
+ * modules/settime (Depends-on): Likewise.
+
+ * modules/fts-lgpl: Depend on openat.
+ * modules/mkancesdirs: Depend on savewd.
+ * modules/mkdir-p: Likewise.
+
+2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
+
+ * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
+ `gl_have_arbitrary_file_name_length_limit' to
+ `gl_cv_have_arbitrary_file_name_length_limit', so that caching
+ actually works between configure runs.
+
+2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
+
+2006-09-25 Jim Meyering <jim@meyering.net>
+
+ * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
+ This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
+
+2006-09-25 Eric Blake <ebb9@byu.net>
+
+ * gnulib-tool (func_import, func_create_testdir): Fix typos in
+ exec's in 2006-09-18 patch when shuffling fds.
+
+2006-09-25 Bruno Haible <bruno@clisp.org>
+
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
+ Reported by Jim Meyering.
+
+2006-09-24 Jim Meyering <jim@meyering.net>
+
+ * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
+ compare a pointer against a literal "0". That caused failures with
+ at least HP-UX's hpcc.
+
+2006-09-22 Simon Josefsson <jas@extundo.com>
+
+ * modules/gc-sha1:
+ * modules/gc-md4:
+ * modules/gc-hmac-sha1:
+ * modules/gc-hmac-md5:
+ * modules/gc-des:
+ * modules/gc-arcfour: Distribute more files.
+
+2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
+ (gl_linked_iterator_from_to): Initialize struct completely.
+ * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
+ (gl_tree_iterator_from_to): Likewise
+ * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
+ * lib/gl_array_list.c [lint] (gl_array_iterator)
+ (gl_array_iterator_from_to): Likewise.
+ * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
+ * lib/gl_carray_list.c [lint] (gl_carray_iterator)
+ (gl_carray_iterator_from_to): Likewise.
+
+ * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
+ * lib/md4.c (md4_process_block): Remove unused variable.
+ * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
+ parentheses for clarity.
+
+2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * modules/bison-i18n (Depends-on): Add gettext.
+
+2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
+ * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
+ * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
+ also add missing comma that caused broken test.
+ * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
+ stdlib.h, for `abort'.
+ * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
+ variables.
+ * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
+ include unistd.h if present, for `rmdir'.
+ * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
+ variables.
+ * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
+ in the process include standard headers for prototypes.
+ * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
+ gets declared on GNU/Linux.
+ * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
+ unistd.h, for `rmdir'.
+ * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
+
+ * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
+ always true.
+ * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
+
+ * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
+
+2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * gnulib-tool (func_version): Create output all at once. This
+ may help avoid triggering unnecessary SIGPIPEs, and at any
+ rate it doesn't hurt.
+
+2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
+ * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
+ * m4/signed.m4 (bh_C_SIGNED): Likewise.
+
+ * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
+ (gl_FUNC_VASPRINTF): Invoke it.
+
+2006-09-22 Bruno Haible <bruno@clisp.org>
+
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
+ getloadavg.c as first argument.
+
+2006-09-22 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
+ at the beginning of the gl_INIT macro.
+ * modules/getloadavg (configure.ac): Pass $gl_source_base to
+ gl_GETLOADAVG.
+
+2006-09-22 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_create_megatestdir): Don't include the config-h
+ module.
+ Suggested by Ralf Wildenhues.
+
+2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ Import this patch from libc:
+
+ 2006-09-06 Jakub Jelinek <jakub@redhat.com>
+
+ * lib/regex_internal.c (re_string_reconstruct): Handle
+ offset < pstr->valid_raw_len && pstr->offsets_needed case.
+ Ensure no bytes read before raw_mbs array. Pass a saved copy of
+ pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
+ re_string_context_at.
+
+ * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
+ now requires it.
+ (gl_PREREQ_REGEX): Don't check for locale.h any more, since
+ gl_REGEX now does it for us.
+ (gl_REGEX): Add test taken from
+ http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
+
+ * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
+ Check that large offsets work. Modernize Autoconf usages.
+ Prefer "yes" to mean a good thing rather than a bad.
+ Don't put "#define mkstemp" in config.h, as this might interfere
+ with standard system headers that "#define mkstemp mkstemp64".
+
+ * modules/mkstemp (Depends-on): Add extensions, so that
+ mkstemp is visible on some platforms.
+ (Makefile.am): Add mkstemp.h to EXTRA_DIST.
+ (Include): Change to "mkstemp.h" from <stdlib.h>.
+ (Files): Add mkstemp.h.
+
+ * lib/mkstemp.h: New file, since some standard headers
+ #define mkstemp.
+ * lib/mkstemp.c: Revamp to put the !_LIBC code together.
+ Include "mkstemp.h".
+ Make the _LIBC code resemble glibc original more,
+ e.g., use K&R style.
+ * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
+ (mkstemp): Remove, since mkstemp.h does this for us.
+ * lib/stdlib--.h: Include mkstemp.h.
+
+ Import this patch from libc:
+
+ 2006-04-07 Ulrich Drepper <drepper@redhat.com>
+
+ * lib/tempname.c (__gen_tempname): Change attempts_min
+ into a macro. Use preprocessor to decide how to initialize
+ attempts [Coverity CID 67].
+
+2006-09-20 Bruno Haible <bruno@clisp.org>
+
+ * lib/mkdtemp.c: Import from libc.
+ 2006-04-07 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/posix/tempname.c (__gen_tempname): Change
+ attempts_min into a macro. Use preprocessor to decide how to
+ initialize attempts [Coverity CID 67].
+ 2001-11-27 Paul Eggert <eggert@twinsun.com>
+ * sysdeps/posix/tempname.c (__gen_tempname): Try at least
+ ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
+
+2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * gnulib-tool (func_exit): New function, to allow to pass the
+ exit status portably through the trap. Use everywhere.
+ (--help, --version): Signal a write error.
+ (trap): catch SIGPIPE, for write errors.
+ Exit at the end of the trap, with the correct exit status.
+
+2006-09-19 Karl Berry <karl@gnu.org>
+
+ * doc/gnulib.texi: note about the license texinfo files.
+
+2006-09-19 Eric Blake <ebb9@byu.net>
+
+ * gnulib-tool: Avoid space-tab.
+
+2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
+ that prevented coreutils 6.1 from building. Problem reported
+ by Petter Reinholdtsen.
+
+2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ * gnulib-tool (avoidlist): Fix typo that broke options like
+ --avoid=lock that are used by coreutils bootstrap.
+
+2006-09-18 Mark D. Baushke <mdb@gnu.org>
+
+ * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
+ more systematically.
+
+2006-09-18 Jim Meyering <jim@meyering.net>
+
+ * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
+
+2006-09-18 Bruno Haible <bruno@clisp.org>
+
+ * modules/inttypes (Files): Remove m4/inttypes-h.m4.
+
+2006-09-18 Bruno Haible <bruno@clisp.org>
+
+ * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
+ * m4/inttypes-pri.m4: Require autoconf >= 2.52.
+ (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
+ ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
+ * m4/gettext.m4: Require autoconf >= 2.52.
+ (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
+ * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
+ of gl_cv_header_inttypes_h.
+
+2006-09-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/javaversion.c: Include configmake.h.
+
+2006-09-18 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
+ avoid that the while loops be executed in a subshell.
+
+2006-09-18 Bruno Haible <bruno@clisp.org>
+
+ * MODULES.html.sh (func_module): Break long lines.
+ Suggested by Bruce Korb <bkorb@gnu.org>.
+
+2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Speed up by a factor of 1.12.
+ * gnulib-tool (nl): New variable.
+ (func_import): Rewrite include directive extraction to only read each
+ directive once.
+
+2006-09-17 Bruno Haible <bruno@clisp.org>
+
+ * modules/javaversion (Makefile.am): Remove DEFS setting.
+ (Depends-on): Add configmake, for PKGDATADIR definition.
+
+2006-09-17 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_create_testdir): Rewrite all files at once.
+
+2006-09-17 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_append): New function, stolen from libtool.m4.
+ (func_modules_transitive_closure, func_modules_add_dummy,
+ func_modules_to_filelist, func_import, func_create_testdir,
+ func_create_megatestdir, ...): Use it wherever possible.
+ Suggested by Ralf Wildenhues.
+
+2006-09-16 Karl Berry <karl@gnu.org>
+
+ * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
+ to avoid sectioning errors.
+ * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
+ [ifinfo]: blank line after @center-ed titles.
+ * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
+ Spell FSF address consistently with others.
+ (These changes approved by rms.)
+
+2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Speed up by a factor of 1.61.
+ * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
+ already checked module names again.
+
+2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Speed up by a factor of 1.13.
+ * gnulib-tool (func_import): Rewrite all old_files at once; likewise
+ for new_files, and the input to func_add_or_update.
+
+2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
+ func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
+
+2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/mkancesdirs (Depends-on): Add fcntl.
+ * modules/savewd: New file.
+ * MODULES.html.sh (File system functions): Add savewd.
+
+ * modules/configmake (Makefile.am): Add support for the
+ Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
+
+2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * m4/savewd.m4: New file.
+
+2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
+ (dirchownmod): New arg FD. All callers changed.
+ Use FD rather than opening the directory ourself, as opening is
+ now the caller's responsibility.
+ * lib/dirchownmod.h: Likewise.
+ * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
+ hosts that require <sys/types.h> before <sys/stat.h>. Include
+ fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
+ (test_dir): Remove.
+ (mkancesdirs): Return length of prefix of FILE that has already
+ been made, or -2 if there is a child doing the work. Redo
+ algorithm so that it is O(N) rather than O(N**2). Optimize away
+ ".", and treat ".." specially since it might stray back into
+ already-created areas. Use a subprocess if necessary. New arg
+ WD; all users changed. MAKE_DIR function should now return 1
+ if it creates a directory that is not readable. Return -2 if
+ a child process is spun off.
+ * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
+ Adjust signature to match code.
+ * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
+ (make_dir_parents): Use a subprocess if necessary. New arg WD;
+ all users changed.
+ * lib/savewd.c, lib/savewd.h: New files.
+
+2006-09-15 Jim Meyering <jim@meyering.net>
+
+ * modules/rename-dest-slash: New module.
+ * MODULES.html.sh (posix_compat): Add it here.
+
+ * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
+
+2006-09-15 Jim Meyering <jim@meyering.net>
+
+ * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
+ file.
+
+ * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
+
+2006-09-15 Jim Meyering <jim@meyering.net>
+
+ * lib/rename-dest-slash.c (has_trailing_slash): Use
+ FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
+ (rpl_rename_dest_slash): Perform the cheaper trailing slash
+ test before testing whether SRC is a directory.
+ Suggestions from Bruno Haible.
+
+ Avoid a warning about an unused variable.
+ * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
+ into the #ifdef block where it's used.
+
+ * lib/rename-dest-slash.c: New file.
+
+2006-09-14 Bruno Haible <bruno@clisp.org>
+
+ * lib/allocsa.c: Include <config.h> unconditionally.
+ * lib/asnprintf.c: Likewise.
+ * lib/asprintf.c: Likewise.
+ * lib/c-strcasecmp.c: Likewise.
+ * lib/c-strcasestr.c: Likewise.
+ * lib/c-strncasecmp.c: Likewise.
+ * lib/c-strstr.c: Likewise.
+ * lib/classpath.c: Likewise.
+ * lib/clean-temp.c: Likewise.
+ * lib/concatpath.c: Likewise.
+ * lib/copy-file.c: Likewise.
+ * lib/csharpcomp.c: Likewise.
+ * lib/csharpexec.c: Likewise.
+ * lib/execute.c: Likewise.
+ * lib/fatal-signal.c: Likewise.
+ * lib/findprog.c: Likewise.
+ * lib/fwriteerror.c: Likewise.
+ * lib/gl_array_list.c: Likewise.
+ * lib/gl_array_oset.c: Likewise.
+ * lib/gl_avltree_list.c: Likewise.
+ * lib/gl_avltree_oset.c: Likewise.
+ * lib/gl_avltreehash_list.c: Likewise.
+ * lib/gl_carray_list.c: Likewise.
+ * lib/gl_linked_list.c: Likewise.
+ * lib/gl_linkedhash_list.c: Likewise.
+ * lib/gl_list.c: Likewise.
+ * lib/gl_oset.c: Likewise.
+ * lib/gl_rbtree_list.c: Likewise.
+ * lib/gl_rbtree_oset.c: Likewise.
+ * lib/gl_rbtreehash_list.c: Likewise.
+ * lib/imaxabs.c: Likewise.
+ * lib/imaxdiv.c: Likewise.
+ * lib/javacomp.c: Likewise.
+ * lib/javaexec.c: Likewise.
+ * lib/javaversion.c: Likewise.
+ * lib/linebreak.c: Likewise.
+ * lib/localcharset.c: Likewise.
+ * lib/lock.c: Likewise.
+ * lib/mbchar.c: Likewise.
+ * lib/mbswidth.c: Likewise.
+ * lib/mkdtemp.c: Likewise.
+ * lib/pipe.c: Likewise.
+ * lib/printf-args.c: Likewise.
+ * lib/printf-parse.c: Likewise.
+ * lib/progname.c: Likewise.
+ * lib/progreloc.c: Likewise.
+ * lib/readlink.c: Likewise.
+ * lib/sh-quote.c: Likewise.
+ * lib/stpcpy.c: Likewise.
+ * lib/stpncpy.c: Likewise.
+ * lib/strcasecmp.c: Likewise.
+ * lib/strcasestr.c: Likewise.
+ * lib/strcspn.c: Likewise.
+ * lib/striconv.c: Likewise.
+ * lib/strncasecmp.c: Likewise.
+ * lib/strnlen1.c: Likewise.
+ * lib/strstr.c: Likewise.
+ * lib/strtok_r.c: Likewise.
+ * lib/tls.c: Likewise.
+ * lib/tmpdir.c: Likewise.
+ * lib/unicodeio.c: Likewise.
+ * lib/unsetenv.c: Likewise.
+ * lib/vasnprintf.c: Likewise.
+ * lib/vasprintf.c: Likewise.
+ * lib/wait-process.c: Likewise.
+ * lib/xallocsa.c: Likewise.
+ * lib/xsetenv.c: Likewise.
+ * lib/xstriconv.c: Likewise.
+
+2006-09-13 Simon Josefsson <jas@extundo.com>
+
+ * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
+ that internally, suggested by Ralf Wildenhues
+ <Ralf.Wildenhues@gmx.de>.
+
+2006-09-13 Simon Josefsson <jas@extundo.com>
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
+ @LIBOBJS@.
+ Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/_fpending.c: Include <config.h> unconditionally, since we no
+ longer worry about uses that don't define HAVE_CONFIG_H.
+ * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
+ * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
+ * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
+ * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
+ * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
+ * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
+ * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
+ * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
+ * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
+ * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
+ * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
+ * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
+ * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
+ * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
+ * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
+ * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
+ * lib/getusershell.c, lib/glob.c, lib/group-member.c:
+ * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
+ * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
+ * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
+ * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
+ * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
+ * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
+ * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
+ * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
+ * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
+ * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
+ * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
+ * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
+ * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
+ * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
+ * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
+ * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
+ * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
+ * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
+ * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
+ * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
+ * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
+ * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
+ * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
+ * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
+ Likewise.
+
+2006-09-13 Eric Blake <ebb9@byu.net>
+
+ * lib/getopt.c: Fix typo in last commit.
+
+2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
+ dgettext.
+
+2006-09-12 Jim Meyering <jim@meyering.net>
+
+ * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
+ compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
+ Reported by Nelson H. F. Beebe.
+
+2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
+ program_invocation_name and program_invocation_short_name are
+ initialized.
+ * lib/argp-namefrob.h: Move declarations of program_invocation_name
+ and program_invocation_short_name to argp.h, so they are visible
+ to user programs.
+ * lib/argp.h: Likewise
+
+2006-09-10 Bruno Haible <bruno@clisp.org>
+
+ * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
+ m4/inttypes_h.m4, m4/uintmax_t.m4.
+
+2006-09-10 Bruno Haible <bruno@clisp.org>
+
+ * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
+ gl_AC_TYPE_UINTMAX_T.
+
+2006-09-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
+
+2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
+ convention. Text proposed by Bruno Haible.
+ (struct argp_option): Document the use of N_() wrappers.
+
+ * lib/argp-help.c (argp_doc): Split the untranslated doc string on
+ '\v', and translate the two parts separately, instead of feeding
+ the whole string to gettext. This allows to exclude
+ '\v' from the strings visible to the translator by writing doc
+ strings as N_("..") "\v" N_("..").
+
+2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * config/srclist.txt: Undo latest change; the bug was fixed.
+
+2006-09-09 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
+ assignments if building a library without libtool.
+ (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
+ in func_emit_lib_Makefile_am.
+ (func_import): When building a static library libfoo.a, arrange to
+ define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
+ (func_create_testdir): Likewise.
+ * modules/gc (configure.ac, Makefile.am): If building statically,
+ augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
+ * modules/iconvme (configure.ac, Makefile.am): Likewise.
+ * modules/striconv (configure.ac, Makefile.am): Likewise.
+ Based on a suggestion by Ralf Wildenhues.
+
+2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
+ Check for unistd.h too, since Autoconf doesn't assume POSIX.
+ Also:
+
+ 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
+ Add year_2050_test to catch glibc bug 2821
+ <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
+
+ 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
+ Prefer #ifdef to #if.
+
+ 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
+ Return from 'main' instead of calling 'exit'.
+
+2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/mktime.c (guess_time_tm): Fix bug where mktime
+ returned the maximum time_t value rather than (time_t) -1.
+ Problem originally reported by William Bardwell
+ <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
+
+ * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
+ Moved to here ...
+ * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
+ ... from here.
+
+2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
+ 2821 is fixed.
+
+2006-09-08 Jim Meyering <jim@meyering.net>
+
+ Don't make generated files read-only. That would bother too many
+ people. However, do retain the ability to work when targets are
+ read-only: remove the destination and temporary files before writing
+ them (when generated via sed or echo), or by using the -f option for
+ both cp and mv commands. Suggestion to use -f from Paul Eggert.
+ * modules/alloca-opt, modules/argz, modules/arpa_inet:
+ * modules/byteswap, modules/configmake, modules/fcntl:
+ * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
+ * modules/localcharset, modules/netinet_in, modules/poll:
+ * modules/stdbool, modules/stdint, modules/sys_select:
+ * modules/sys_socket, modules/sys_stat, modules/sysexits:
+
+2006-09-08 Jim Meyering <jim@meyering.net>
+
+ Avoid new build failure on FreeBSD 6.0.
+ * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
+ <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
+ Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
+
+2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
+
+2006-09-07 Jim Meyering <jim@meyering.net>
+
+ Fix global typo in last change: use chmod u-w, not chmod u-x.
+ Spotted by Paul Eggert and Bruce Korb.
+ * modules/alloca-opt, modules/argz, modules/arpa_inet:
+ * modules/byteswap, modules/configmake, modules/fcntl:
+ * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
+ * modules/localcharset, modules/netinet_in, modules/poll:
+ * modules/stdbool, modules/stdint, modules/sys_select:
+ * modules/sys_socket, modules/sys_stat, modules/sysexits:
+
+2006-09-06 Jim Meyering <jim@meyering.net>
+
+ Make generated files be read-only.
+ * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
+ Ensure that each generated file is now read-only.
+ * modules/argz: Likewise.
+ * modules/arpa_inet: Likewise.
+ * modules/byteswap: Likewise.
+ * modules/configmake: Likewise.
+ * modules/fcntl: Likewise.
+ * modules/fnmatch: Likewise.
+ * modules/getopt: Likewise.
+ * modules/glob: Likewise.
+ * modules/inttypes: Likewise.
+ * modules/netinet_in: Likewise.
+ * modules/poll: Likewise.
+ * modules/stdbool: Likewise.
+ * modules/stdint: Likewise.
+ * modules/sys_select: Likewise.
+ * modules/sys_socket: Likewise.
+ * modules/sys_stat: Likewise.
+ * modules/sysexits: Likewise.
+ * modules/localcharset: Same as above, but continue using temporary
+ file named "t-$@" (why different?) rather than the "$@-t" used
+ everywhere else.
+
+ * modules/sysexits (Makefile.am): Replace literal occurrences
+ of "sysexit.h" more readable, and more consistent, "$@".
+
+2006-09-06 Bruno Haible <bruno@clisp.org>
+
+ * modules/striconv: New file.
+ * modules/xstriconv: New file.
+ * MODULES.html.sh (Internationalization functions): Add striconv,
+ xstriconv.
+
+2006-09-06 Bruno Haible <bruno@clisp.org>
+
+ * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
+ * modules/iconvme (Makefile.am): Likewise. Also handle the case of
+ not using libtool correctly.
+
+2006-09-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/striconv.h: New file.
+ * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
+ iconvstring.c.
+ * lib/xstriconv.h: New file.
+ * lib/xstriconv.c: New file.
+
+2006-09-06 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
+ lib_..._LDFLAGS.
+
+2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/argz_.h: Sync from Libtool.
+
+ 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
+ and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
+
+2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
+
+ * modules/trim: New file.
+
+2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
+
+ * lib/trim.h: New file.
+ * lib/trim.c: New file.
+
+2006-09-05 Bruno Haible <bruno@clisp.org>
+
+ * MODULES.html.sh (String handling): Add trim.
+
+2006-09-04 Karl Berry <karl@gnu.org>
+
+ * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
+ until next release.
+
+2006-09-03 Bruno Haible <bruno@clisp.org>
+
+ * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
+ correctly.
+
+2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
+ not gl_GETLOADAVG. Omit unneeded semicolons.
+ Problems reported by Ralf Wildenhues in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
+ (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
+ at the end, which is the usual gnulib style.
+
+ * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
+ of doing all the work ourselves.
+ * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
+ sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
+
+2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
+ Problem reported by Ralf Wildenhues in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
+
+ * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
+ HAVE_STRUCT_STATFS_F_FSTYPENAME.
+
+2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
+ yesterday's patch by changing test -n to test -z.
+
+2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/getloadavg (Files): Add m4/getloadavg.m4.
+ (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
+ the former is now obsolescent.
+
+ * modules/chdir-long (Depends-on): Add fcntl.