* mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
[gnulib.git] / lib / ChangeLog
index 0738759..6f4bd8d 100644 (file)
@@ -1,3 +1,222 @@
+2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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.
+       * mkancesdirs.h (mkancesdirs): Adjust prototype to match.
+       * mkdir-p.c (make_dir_parents): Likewise.
+       * mkdir-p.h (make_dir_parents): Likewise.
+
+2006-10-06  Eric Blake  <ebb9@byu.net>
+
+       * clean-temp.h (close_stream_temp): New declaration.
+       * 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>
+
+       * clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
+       cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
+       int.
+       * 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>
+
+       * clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
+       Reported by Eric Blake.
+
+2006-10-06  Bruno Haible  <bruno@clisp.org>
+       and Paul Eggert  <eggert@cs.ucla.edu>
+
+       * closeout.c (close_stdout): Also close stderr.
+       * closeout.h: Update comment.
+
+2006-10-06  Bruno Haible  <bruno@clisp.org>
+
+       * javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
+       instead of fopen, fwriteerror.
+
+2006-10-05  Bruno Haible  <bruno@clisp.org>
+
+       * clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
+       fwriteerror_temp): New declarations.
+       * 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-03  Bruno Haible
+
+       * 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.
+       * gl_list.c (gl_sortedlist_search_from_to,
+       gl_sortedlist_indexof_from_to): New functions.
+       * 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.
+       * 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.
+       * gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
+       gl_linked_sortedlist_indexof_from_to): New functions.
+       * gl_linked_list.c (gl_linked_list_implementation): Update.
+       * gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
+       * gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
+       gl_tree_sortedlist_indexof_from_to): New functions.
+       * gl_avltree_list.c (gl_avltree_list_implementation): Update.
+       * gl_avltreehash_list.c (gl_avltreehash_list_implementation): Update.
+       * gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
+       * gl_rbtreehash_list.c (gl_avltreehash_list_implementation): Update.
+
+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>.
+       * dirchownmod.c: Include lchown.h.
+       * lchown.c: Don't include files that lchown.h now includes.
+       Don't declare chown, since lchown.h now does that.
+       * 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.
+       * mkstemp.h: Include <unistd.h>.
+       * openat.c: Include lchown.h.
+
+       * fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
+       we now test for that separately.
+       * 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.
+       * savewd.c (savewd_chdir): Likewise.
+
+       Remove macros that are no longer needed now that stdint.h is
+       reliable.
+       * fsusage.c (UINTMAX_MAX): Remove.
+       * human.c (SIZE_MAX, UINTMAX_MAX): Remove.
+       * utimecmp.c (SIZE_MAX): Remove.
+
+2006-10-03  Bruno Haible  <bruno@clisp.org>
+
+       * 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.
+       * 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.
+       * 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.
+       * 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.
+       * 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.
+       * gl_linked_list.c (gl_linked_list_implementation): Update.
+       * gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
+       * gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp' field
+       to 'size_t'.
+       * 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.
+       * gl_avltree_list.c (gl_avltree_list_implementation): Update.
+       * gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
+       * gl_anytreehash_list1.h (compare_position_threshold): New function.
+       * 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.
+       * gl_avltreehash_list.c (gl_avltreehash_list_implementation): Update.
+       * gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
+
+2006-10-04  Bruno Haible  <bruno@clisp.org>
+
+       * fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
+
+2006-10-03  Bruno Haible  <bruno@clisp.org>
+
+       * 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.
+       * gl_oset.c (gl_oset_search_atleast): New function.
+       * gl_array_oset.c (gl_array_search_atleast): New function.
+       (gl_array_oset_implementation): Update.
+       * gl_anytree_oset.h (gl_tree_search_atleast): New function.
+       * gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
+       * gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
+
+2006-10-04  Jim Meyering  <jim@meyering.net>
+
+       * fts.c (fts_open): Tiny comment change.
+
+2006-10-03  Bruno Haible  <bruno@clisp.org>
+
+       * gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
+       from gl_avltreehash_list_implementation.
+
+2006-10-03  Bruno Haible  <bruno@clisp.org>
+
+       * gl_oset.c (gl_oset_add): Fix return type.
+
+2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
+
+       * fts.c (fts_close, fts_build, fts_palloc): Remove redundant checks.
+
+2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
+
+       * quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
+
+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.
+       * 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.
+       * at-func.c (AT_FUNC_NAME): Adjust to above changes.
+       * openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
+       Likewise.
+       * openat-proc.c: New file.
+
+2006-09-29  Bruno Haible  <bruno@clisp.org>
+
+       * fwriteerror.h (fwriteerror_no_ebadf): New declaration.
+       * (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  Bruno Haible  <bruno@clisp.org>
 
        * strndup.h: Simplify the redefinition of strndup.