[lib/ChangeLog]
[gnulib.git] / lib / ChangeLog
index 9ed357b..429b190 100644 (file)
@@ -1,3 +1,409 @@
+2006-09-27  Jim Meyering  <jim@meyering.net>
+
+       This function could end up with a definition for a function
+       named __strndup, rather than rpl_strndup on a system with
+       incomplete weak_alias support.
+       * 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.
+       * strndup.h: Revamp, accordingly.
+
+2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
+       getaddrinfo.
+
+       * __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.
+       * getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
+       of HAVE_DECL___PENDING.
+
+2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * savewd.c: Include <signal.h>, for 'raise'.
+
+2006-09-26  Eric Blake  <ebb9@byu.net>
+
+       * verror.c: Include <config.h> unconditionally.
+
+2006-09-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * gl_anylinked_list2.h [lint] (gl_linked_iterator)
+       (gl_linked_iterator_from_to): Initialize struct completely.
+       * gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
+       (gl_tree_iterator_from_to): Likewise
+       * gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
+       * gl_array_list.c [lint] (gl_array_iterator)
+       (gl_array_iterator_from_to): Likewise.
+       * gl_array_oset.c [lint] (gl_array_iterator): Likewise.
+       * gl_carray_list.c [lint] (gl_carray_iterator)
+       (gl_carray_iterator_from_to): Likewise.
+
+       * gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
+       * md4.c (md4_process_block): Remove unused variable.
+       * rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
+       parentheses for clarity.
+
+2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Import this patch from libc:
+
+       2006-09-06  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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.
+
+2006-09-20  Bruno Haible  <bruno@clisp.org>
+
+       * 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-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * mkstemp.h: New file, since some standard headers
+       #define mkstemp.
+       * 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.
+       * mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
+       (mkstemp): Remove, since mkstemp.h does this for us.
+       * stdlib--.h: Include mkstemp.h.
+
+       Import this patch from libc:
+
+       2006-04-07  Ulrich Drepper  <drepper@redhat.com>
+
+       * tempname.c (__gen_tempname): Change attempts_min
+       into a macro.  Use preprocessor to decide how to initialize
+       attempts [Coverity CID 67].
+
+2006-09-18  Bruno Haible  <bruno@clisp.org>
+
+       * javaversion.c: Include configmake.h.
+
+2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
+       that prevented coreutils 6.1 from building.  Problem reported
+       by Petter Reinholdtsen.
+
+2006-09-18  Jim Meyering  <jim@meyering.net>
+
+       * savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
+
+2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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.
+       * dirchownmod.h: Likewise.
+       * 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.
+       * mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
+       Adjust signature to match code.
+       * 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.
+       * savewd.c, savewd.h: New files.
+
+2006-09-15  Jim Meyering  <jim@meyering.net>
+
+       * 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.
+       * regex_internal.c (re_dfa_add_node): Move declaration of "type"
+       into the #ifdef block where it's used.
+
+       * rename-dest-slash.c: New file.
+
+2006-09-14  Bruno Haible  <bruno@clisp.org>
+
+       * allocsa.c: Include <config.h> unconditionally.
+       * asnprintf.c: Likewise.
+       * asprintf.c: Likewise.
+       * c-strcasecmp.c: Likewise.
+       * c-strcasestr.c: Likewise.
+       * c-strncasecmp.c: Likewise.
+       * c-strstr.c: Likewise.
+       * classpath.c: Likewise.
+       * clean-temp.c: Likewise.
+       * concatpath.c: Likewise.
+       * copy-file.c: Likewise.
+       * csharpcomp.c: Likewise.
+       * csharpexec.c: Likewise.
+       * execute.c: Likewise.
+       * fatal-signal.c: Likewise.
+       * findprog.c: Likewise.
+       * fwriteerror.c: Likewise.
+       * gl_array_list.c: Likewise.
+       * gl_array_oset.c: Likewise.
+       * gl_avltree_list.c: Likewise.
+       * gl_avltree_oset.c: Likewise.
+       * gl_avltreehash_list.c: Likewise.
+       * gl_carray_list.c: Likewise.
+       * gl_linked_list.c: Likewise.
+       * gl_linkedhash_list.c: Likewise.
+       * gl_list.c: Likewise.
+       * gl_oset.c: Likewise.
+       * gl_rbtree_list.c: Likewise.
+       * gl_rbtree_oset.c: Likewise.
+       * gl_rbtreehash_list.c: Likewise.
+       * imaxabs.c: Likewise.
+       * imaxdiv.c: Likewise.
+       * javacomp.c: Likewise.
+       * javaexec.c: Likewise.
+       * javaversion.c: Likewise.
+       * linebreak.c: Likewise.
+       * localcharset.c: Likewise.
+       * lock.c: Likewise.
+       * mbchar.c: Likewise.
+       * mbswidth.c: Likewise.
+       * mkdtemp.c: Likewise.
+       * pipe.c: Likewise.
+       * printf-args.c: Likewise.
+       * printf-parse.c: Likewise.
+       * progname.c: Likewise.
+       * progreloc.c: Likewise.
+       * readlink.c: Likewise.
+       * sh-quote.c: Likewise.
+       * stpcpy.c: Likewise.
+       * stpncpy.c: Likewise.
+       * strcasecmp.c: Likewise.
+       * strcasestr.c: Likewise.
+       * strcspn.c: Likewise.
+       * striconv.c: Likewise.
+       * strncasecmp.c: Likewise.
+       * strnlen1.c: Likewise.
+       * strstr.c: Likewise.
+       * strtok_r.c: Likewise.
+       * tls.c: Likewise.
+       * tmpdir.c: Likewise.
+       * unicodeio.c: Likewise.
+       * unsetenv.c: Likewise.
+       * vasnprintf.c: Likewise.
+       * vasprintf.c: Likewise.
+       * wait-process.c: Likewise.
+       * xallocsa.c: Likewise.
+       * xsetenv.c: Likewise.
+       * xstriconv.c: Likewise.
+
+2006-09-13  Eric Blake  <ebb9@byu.net>
+
+       * getopt.c: Fix typo in last commit.
+
+2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * _fpending.c: Include <config.h> unconditionally, since we no
+       longer worry about uses that don't define HAVE_CONFIG_H.
+       * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c:
+       * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c:
+       * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c:
+       * cloexec.c, close-stream.c, closeout.c, creat-safer.c:
+       * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c:
+       * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c:
+       * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c:
+       * file-type.c, fileblocks.c, filemode.c, filenamecat.c:
+       * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c:
+       * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c:
+       * getcwd.c, getdate.y, getdomainname.c, getgroups.c:
+       * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c:
+       * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c:
+       * gettime.c, gettimeofday.c, getugroups.c, getusershell.c:
+       * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c:
+       * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c:
+       * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c:
+       * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c:
+       * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c:
+       * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c:
+       * mountlist.c, nanosleep.c, obstack.c, open-safer.c:
+       * openat-die.c, openat.c, pagealign_alloc.c, physmem.c:
+       * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c:
+       * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c:
+       * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c:
+       * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c:
+       * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c:
+       * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c:
+       * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c:
+       * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c:
+       * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c:
+       * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c:
+       * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c:
+       * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c:
+       Likewise.
+
+2006-09-12  Jim Meyering  <jim@meyering.net>
+
+       * 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-12  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-help.c (argp_doc): Make sure NULL is not passed to
+       dgettext.
+
+2006-09-10  Bruno Haible  <bruno@clisp.org>
+
+       * mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
+
+2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-parse.c (__argp_parse) [!_LIBC]: Make sure
+       program_invocation_name and program_invocation_short_name are
+       initialized.
+       * argp-namefrob.h: Move declarations of program_invocation_name
+       and program_invocation_short_name to argp.h, so they are visible
+       to user programs.
+       * argp.h: Likewise
+
+2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp.h (struct argp): Document the N_("..") "\v" N_("..")
+       convention.  Text proposed by Bruno Haible.
+       (struct argp_option): Document the use of N_() wrappers.
+
+       * 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-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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>.
+
+       * isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
+       Moved to here ...
+       * isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
+       ... from here.
+
+2006-09-06  Bruno Haible  <bruno@clisp.org>
+
+       * striconv.h: New file.
+       * striconv.c: New file, merging iconvme.c with GNU gettext's
+       iconvstring.c.
+       * xstriconv.h: New file.
+       * xstriconv.c: New file.
+
+2006-09-05  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * argz_.h: Sync from Libtool.
+
+       2006-09-04  George Bosilca <bosilca@cs.utk.edu>
+               and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/argz_.h: It's __cplusplus, not _cplusplus.
+
+2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
+
+       * trim.h: New file.
+       * trim.c: New file.
+
+2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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>.
+
+       * mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
+       HAVE_STRUCT_STATFS_F_FSTYPENAME.
+
+2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
+       or stdbool.h, because they might not exist while configuring.
+
+       * chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
+       Don't include unistd.h or limits.h; not needed, since chdir-long.h
+       does that for us.
+       (O_DIRECTORY): Remove.
+
+2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Work around a bug in both the Linux and SunOS 64-bit kernels:
+       nanosleep mishandles sleeps for longer than 2**31 seconds.
+       Problem reported by Frank v Waveren in
+       <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
+       * nanosleep.c (BILLION): New constant.
+       (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
+       (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new implementation.
+
+2006-08-30  Jim Meyering  <jim@meyering.net>
+
+       * isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid shadowing
+       the parameter.
+
+2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * isapipe.c, isapipe.h: New files.
+
+2006-08-29  Eric Blake  <ebb9@byu.net>
+
+       * error.c (error_at_line, print_errno_message): Match libc, after
+       resolution of upstream bug 3044.
+
+2006-08-29  Bruno Haible  <bruno@clisp.org>
+
+       * localcharset.c: Include configmake.h in order to get LIBDIR defined.
+
+2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Sync from Libtool:
+
+       2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
+       sharing with gnulib.  Report by Eric Blake.
+
+2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fcntl_.h: New file.
+       * chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
+       the fcntl module.
+       * dirchownmod.c: Likewise.
+       * fts.c: Likewise.
+
+       * inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
+       Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
+       * stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
+       just before including <inttypes.h>, to avoid circular inclusion.
+
+2006-08-28  Bruno Haible  <bruno@clisp.org>
+
+       * inttypes_.h (SCNX*): Remove definitions.
+       Reported by Eric Blake.
+
 2006-08-26  Bruno Haible  <bruno@clisp.org>
 
        * vasnprintf.c (EOVERFLOW): Remove definition.
        Test here whether the string length is > INT_MAX.
 
 2006-08-26  Bruno Haible  <bruno@clisp.org>
-            Simon Josefsson  <jas@extundo.com>
+           Simon Josefsson  <jas@extundo.com>
 
        BeOS portability.
        * getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
 
        2006-07-19  Mike Frysinger  <vapier@gentoo.org>
 
-       * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
+       * mountlist.c [ME_REMOTE]: Filter out cifs.
        Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
 
 2006-08-08  Eric Blake  <ebb9@byu.net>
 
 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
 
-       * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
+       * getaddrinfo.c: Changes to compile under MSVC6: changed
        '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
        brackets.  Other minor changes to suppress some compiler
        warnings.
 
 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
 
-       * lib/base64.c: Typo.
+       * base64.c: Typo.
        (base64_encode): Put b64str in initialized data section.
 
 2005-09-12  Derek Price  <derek@ximbiot.com>
        (SIZE_MAX) [!defined SIZE_MAX]: New macro.
        (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
        (re_xnrealloc, re_x2nrealloc): New inline functions.
-       * lib/regcomp.c (init_dfa, analyze, build_range_exp, parse_bracket_exp):
+       * regcomp.c (init_dfa, analyze, build_range_exp, parse_bracket_exp):
        (build_equiv_class, build_charclass): Check for arithmetic overflow
        in size expression calculations.
-       * lib/regex_internal.c (re_string_realloc_buffers):
+       * regex_internal.c (re_string_realloc_buffers):
        (build_wcs_upper_buffer, re_node_set_add_intersect):
        (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
        (re_dfa_add_node, register_state): Likewise.
-       * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
+       * regexec.c (re_search_stub, re_copy_regs, re_search_internal):
        (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
        (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
        (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
        (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
        Put __attribute at function definition,
        now that the function decl has been removed.
-       * lib/regex_internal.c (re_string_peek_byte_case):
+       * regex_internal.c (re_string_peek_byte_case):
        (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
        Likewise.