Import from coreutils.
[gnulib.git] / lib / ChangeLog
index 1fcee2a..8dca116 100644 (file)
@@ -1,3 +1,137 @@
+2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
+       New files.
+       * mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
+       unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
+       save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
+       (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
+       MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
+       callers changed.  Revamp internals significantly, by not
+       attempting to create directories that are temporarily more
+       permissive than the final results.  Do not attempt to use
+       save_cwd/restore_cwd; it isn't worth it for mkdir and install.
+       This removes some race conditions, fixes some bugs, and simplifies
+       things.  Use new dirchownmod function to do owner and mode changes.
+       * mkdir-p.h: Likewise.
+       * modechange.c (octal_to_mode): New function.
+       (struct mode_change): New member mentioned.
+       (make_node_op_equals): New arg mentioned.  All callers changed.
+       (mode_compile): Keep track of which mode bits the user has explicitly
+       mentioned.
+       (mode_adjust): New arg DIR, so that we implement the X op correctly.
+       New arg PMODE_BITS, to keep track of which mode bits the user
+       mentioned; it treats S_ISUID and S_ISGID speciall.
+       All callers changed.
+       * modechange.h: Likewise.
+
+2006-07-11  Derek R. Price  <derek@ximbiot.com>
+
+       * glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
+
+2006-07-10  Derek R. Price  <derek@ximbiot.com>
+
+       * backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
+       Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
+       macros into the GNU _D_EXACT_NAMLEN.
+       * savedir.c:  Likewise.
+       (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
+
+2006-07-09  Jim Meyering  <jim@meyering.net>
+
+       * argp-pv.c: Remove a doubled word in a comment.
+       * check-version.c (check_version): Likewise.
+       * javacomp.c (compile_java_class): Likewise.
+
+2006-07-08  Jim Meyering  <jim@meyering.net>
+
+       * getndelim2.h (getndelim2): Remove doubled "after" in comment.
+
+2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
+
+       * lib/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.
+
+2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getloadavg.c: Use __VMS, not VMS.
+       * getopt.c: Likewise.
+       * getpagesize.h: Likewise.
+       * glob.c: Remove most VMS cruft; it hasn't been tested for a while and
+       probably does not work.
+
+2006-07-06  Derek R. Price  <derek@ximbiot.com>
+       and Paul Eggert  <eggert@cs.ucla.edu>
+
+       * backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
+       Don't worry about this obsolete case any more.
+       (HAVE_DIR): Remove.  All uses removed; we now assume you can read
+       directories.
+       * dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
+       worry about this obsolete case any more.
+       * fts.c: Likewise.
+       * getcwd.c: Likewise.
+       * glob.h: Likewise.
+       * savedir.c: Likewise.
+
+2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * .cppi-disable: Add wcwidth.
+       * fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
+       (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
+       (ISGRAPH): Remove.  All uses changed to isgraph.
+       (FOLD) [!defined _LIBC]: Remove special case.
+       * getdate.y (lookup_word): Remove no-longer-needed call to islower.
+       * regext_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
+       HAVE_ISBLANK.
+       * strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special case.
+
+2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * strtod.c (strtod): cast the argument of tolower to unsigned char.
+
+2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * memcasecmp.c: Include <limits.h>.
+       (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
+       * strtod.c (strtod): Don't assume isspace works on negative chars.
+       Don't assume isdigit succeeds only on '0' through '9'.
+
+2006-07-05  Derek R. Price  <derek@ximbiot.com>
+
+       * exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
+       All uses of is_space replaced by isspace.
+       * exit.h: Don't talk about STDC_HEADERS.
+       * fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
+       (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
+       (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
+       replaced by isprint etc.
+       * getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
+       * getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
+       * memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
+       * strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
+       * strtol.c (IN_CTYPE_DOMAIN): Likewise.
+       * xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
+
+2006-07-05  Eric Blake  <ebb9@byu.net>
+
+       * getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
+       missing from netdb.h.
+       * getaddrinfo.c (includes): Include inet_ntop and snprintf.
+
+2006-06-27  Bruno Haible  <bruno@clisp.org>
+
+       Assume ANSI C header files and <ctype.h> functions.
+       * mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
+       (mbsnwidth): Use isprint, iscntrl instead.
+
+2006-07-03  Jim Meyering  <jim@meyering.net>
+
+       * cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
+       macro is used before the first cycle_check call.
+
 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        * stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for