
1: 2007-03-20 Jim Meyering <jim@meyering.net> 2: 3: Fix a typo in the handling of %x and %X. 4: * vasnprintf.c (VASNPRINTF): When adding 2 to buffer length, 5: don't double it. 6: 7: 2007-03-04 Jim Meyering <jim@meyering.net> 8: 9: * vasnprintf.c (VASNPRINTF): Add missing semicolon. 10: 11: 2007-03-02 Jim Meyering <jim@meyering.net> 12: 13: * vasnprintf.c (VASNPRINTF): Remove cast of alloca return value. 14: 15: 2007-03-01 Jim Meyering <jim@meyering.net> 16: 17: Merge in changes from gnulib: 18: * vasnprintf.c: Add a comment explaining why coreutils has its own 19: version of this file. 20: Include <stdint.h>. 21: (SIZE_MAX): Remove definition (now, stdint.h covers that). 22: (EOVERFLOW): Remove definition (now done via the eoverflow module). 23: Update some #ifdef to #if. 24: Use HAVE_LONG_LONG_INT, not HAVE_LONG_LONG. 25: * printf-parse.c: Likewise. 26: 27: 2007-02-28 Jim Meyering <jim@meyering.net> 28: 29: * tsearch.c: Remove unused file. 30: 31: 2007-02-23 Jim Meyering <jim@meyering.net> 32: 33: * randperm.c (randperm_new): Comment: say that this function 34: returns a pointer to malloc'd storage. 35: 36: 2007-02-18 Jim Meyering <jim@meyering.net> 37: 38: * xfts.c: Include <stdlib.h> rather than exit.h, now that stdlib.h 39: is guaranteed to provide a valid definition of EXIT_FAILURE. 40: 41: 2007-01-19 Jim Meyering <jim@meyering.net> 42: 43: * .cvsignore, .gitignore: Add sys, as well as more 44: bootstrap-inserted file names. 45: 46: 2007-01-14 Jim Meyering <jim@meyering.net> 47: 48: * fchdir-stub.c: Remove file. No longer needed. 49: 50: 2006-12-03 Jim Meyering <jim@meyering.net> 51: 52: * Makefile.am (libcoreutils_a_SOURCES): Remove xmemcoll.c and 53: xmemcoll.h. Now, they're handled by the gnulib xmemcoll module. 54: 55: 2006-11-22 Paul Eggert <eggert@cs.ucla.edu> 56: 57: * randread.c (__attribute__): Don't define if __attribute__ is 58: already defined. Otherwise, the code won't conform to C99, since 59: the macro arg is spelled differently by some include file, and the 60: compilation fails with pedantic GCC. 61: 62: 2006-11-22 Jim Meyering <jim@meyering.net> 63: 64: * .cvsignore, .gitignore: Add fstat.c. 65: 66: 2006-11-14 Jim Meyering <jim@meyering.net> 67: 68: * readlink-stub.c, lstat-stub.c: Remove now-unused files. 69: 70: 2006-10-14 Paul Eggert <eggert@cs.ucla.edu> 71: 72: Port sha512sum to hosts where uintmax_t is only 32 bits, e.g., 73: HP/Tandom NonStop OSS circa 2005 has 32-bit uintmax_t, 64-bit intmax_t. 74: * u64.h: New file. 75: * sha512.c (SWAP, sha512_init_ctx, sha384_init_ctx, sha512_read_ctx): 76: (sha384_read_ctx, sha512_conclude_ctx, sha512_process_bytes): 77: (sha512_round_constants, F2, F1, sha512_process_block): 78: (S0, S1, SS0, SS1, M, R): 79: Rewrite to use u64.h instead of assuming uint64_t. 80: * sha512.h: Include u64.h rather than stdint.h. 81: (rol64): Remove; moved to u64.h and renamed to u64rol. 82: 83: 2006-10-12 Jim Meyering <jim@meyering.net> 84: 85: * Makefile.am (libcoreutils_a_LIBADD): Append $(LIBOBJS), 86: to accommodate the latest version of gnulib-tool. 87: (libcoreutils_a_DEPENDENCIES): Likewise. 88: From Bruno Haible. 89: 90: 2006-10-06 Jim Meyering <jim@meyering.net> 91: 92: Avoid a compiler warning: const'ify and remove a cast. 93: * randread.c (struct randread_source) [handler]: Make parameter "const". 94: [handler_arg]: Add "const" attribute. 95: (randread_error): Make parameter "const". 96: (simple_new, randread_set_handler, randread_set_handler_arg): Likewise. 97: (randread_new): Remove now-unnecessary cast. 98: * randread.h: Adjust prototypes. 99: 100: 2006-09-29 Paul Eggert <eggert@cs.ucla.edu> 101: 102: * .cvsignore: Add openat-proc.c. 103: 104: 2006-09-25 Paul Eggert <eggert@cs.ucla.edu> 105: 106: * .cvsignore: Add fchmodat.c. 107: 108: 2006-09-25 Jim Meyering <jim@meyering.net> 109: 110: * fchmodat.c: Remove file. gnulib's copy is identical. 111: 112: 2006-09-01 Paul Eggert <eggert@cs.ucla.edu> 113: 114: * .cvsignore: Add fcntl.h, fcntl_.h, inttypes_.h, isapipe.c, 115: isapipe.h. 116: 117: 2006-08-25 Paul Eggert <eggert@cs.ucla.edu> 118: 119: * euidaccess-stat.c: Include <config.h> unconditionally, since 120: we now assume config.h exists. 121: * fchmodat.c: Likewise. 122: * fd-reopen.c: Likewise. 123: * fdopendir-glibc.c: Likewise. 124: * memxfrm.c: Likewise. 125: * printf-parse.c: Likewise. 126: * rand-isaac.c: Likewise. 127: * randint.c: Likewise. 128: * randperm.c: Likewise. 129: * randread.c: Likewise. 130: * root-dev-ino.c: Likewise. 131: * sha256.c: Likewise. 132: * sha512.c: Likewise. 133: * stdopen.c: Likewise. 134: * strintcmp.c: Likewise. 135: * strnumcmp.c: Likewise. 136: * t-chdir-long: Likewise. 137: * tsearch.c: Likewise. 138: * unicodeio.c: Likewise. 139: * vasnprintf.c: Likewise. 140: * xfts.c: Likewise. 141: * xmemxfrm.c: Likewise. 142: 143: * .cvsignore: Add configmake.h, stamp-h1. 144: 145: 2006-08-23 Paul Eggert <eggert@cs.ucla.edu> 146: 147: * .cvsignore: Add config.h, config.hin. 148: * Makefile.am (AM_CPPFLAGS): Remove; we no longer need '-I..'. 149: 150: 2006-08-22 Paul Eggert <eggert@cs.ucla.edu> 151: 152: * .cvsignore: Add Makefile.in, getdate.tab.h. 153: Remove stat.c, sysexit.h. 154: 155: 2006-08-22 Jim Meyering <jim@meyering.net> 156: 157: * .cvsignore: Add files that are now generated by ../bootstrap. 158: 159: 2006-08-21 Eric Blake <ebb9@byu.net> 160: 161: * Makefile.am (LDADD): Restore this line; it is still needed for 162: t-fpending on platforms without __fpending. 163: 164: 2006-08-20 Paul Eggert <eggert@cs.ucla.edu> 165: 166: Add a bootstrap procedure, so that the CVS version contains fewer 167: files and we bootstrap the rest from gnulib, gettext, etc. 168: * Makefile.am: include gnulib.mk, so that we can remove most of 169: this file. 170: (AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done 171: for us. 172: (noinst_LIBRARIES, LDDADD, DEFS): Remove. 173: (libcoreutils_a_SOURCES): Trim down greatly, just to the files 174: that aren't in gnulib. 175: (libcoreutils_a_LIBADD, lib_OBJECTS, BUILT_SOURCES, CLEANFILES): 176: (MAINTAINERCLEANFILES, MOSTLYCLEANDIRS, MOSTLYCLEANFILES): 177: (SUFFIXES, EXTRA_DIST, all-local, charset_alias, charset_tmp): 178: (install-exec-local, uninstall-local, charset.alias, .sin.sed): 179: (stdbool.h, stdint.h, fnmatch.h, arpa/inet.h, netinet/in.h): 180: (sys/socket.h, getopt.h): Remove. 181: 182: * Makefile.in, README, __fpending.c, __fpending.h, acl.c, acl.h: 183: * alloca.c, alloca_.h, allocsa.c, allocsa.h, argmatch.c, argmatch.h: 184: * asnprintf.c, asprintf.c, at-func.c, atexit.c, backupfile.c: 185: * backupfile.h, base64.c, base64.h, basename.c, bcopy.c, c-strtod.c: 186: * c-strtod.h, c-strtold.c, calloc.c, canon-host.c, canon-host.h: 187: * canonicalize.c, canonicalize.h, chdir-long.c, chdir-long.h: 188: * chdir-safer.c, chdir-safer.h, chown.c, cloexec.c, cloexec.h: 189: * close-stream.c, close-stream.h, closeout.c, closeout.h: 190: * config.charset, creat-safer.c, cycle-check.c, cycle-check.h: 191: * dev-ino.h, diacrit.c, diacrit.h, dirchownmod.c, dirchownmod.h: 192: * dirfd.c, dirfd.h, dirname.c, dirname.h, dup-safer.c, dup2.c: 193: * error.c, error.h, euidaccess.c, euidaccess.h, exclude.c: 194: * exclude.h, exit.h, exitfail.c, exitfail.h, fchown-stub.c: 195: * fcntl--.h, fcntl-safer.h, fd-safer.c, file-type.c, file-type.h: 196: * fileblocks.c, filemode.c, filemode.h, filenamecat.c: 197: * filenamecat.h, fnmatch.c, fnmatch_.h, fnmatch_loop.c: 198: * fopen-safer.c, fprintftime.c, fprintftime.h, free.c, fsusage.c: 199: * fsusage.h, ftruncate.c, fts-cycle.c, fts.c, fts_.h, full-read.c: 200: * full-read.h, full-write.c, full-write.h, gai_strerror.c: 201: * getaddrinfo.c, getaddrinfo.h, getcwd.c, getcwd.h, getdate.h: 202: * getdate.y, getdelim.c, getdelim.h, getgroups.c, gethostname.c: 203: * gethrxtime.c, gethrxtime.h, getline.c, getline.h, getloadavg.c: 204: * getndelim2.c, getndelim2.h, getopt.c, getopt1.c, getopt_.h: 205: * getopt_int.h, getpagesize.h, getpass.c, getpass.h, gettext.h: 206: * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: 207: * group-member.c, group-member.h, hard-locale.c, hard-locale.h: 208: * hash-pjw.c, hash-pjw.h, hash.c, hash.h, human.c, human.h: 209: * idcache.c, imaxtostr.c, inet_ntop.c, inet_ntop.h, intprops.h: 210: * inttostr.c, inttostr.h, lchmod.h, lchown.c, lchown.h: 211: * linebuffer.c, linebuffer.h, localcharset.c, localcharset.h: 212: * long-options.c, long-options.h, lstat.c, lstat.h, malloc.c: 213: * mbchar.c, mbchar.h, mbswidth.c, mbswidth.h, mbuiter.h, md5.c: 214: * md5.h, memcasecmp.c, memcasecmp.h, memchr.c, memcmp.c, memcoll.c: 215: * memcoll.h, memcpy.c, memmove.c, mempcpy.c, mempcpy.h, memrchr.c: 216: * memrchr.h, memset.c, mkancesdirs.c, mkancesdirs.h, mkdir-p.c: 217: * mkdir-p.h, mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c: 218: * mktime.c, modechange.c, modechange.h, mountlist.c, mountlist.h: 219: * nanosleep.c, obstack.c, obstack.h, offtostr.c, open-safer.c: 220: * openat-die.c, openat-priv.h, openat.c, openat.h, pathmax.h: 221: * physmem.c, physmem.h, pipe-safer.c, posixtm.c, posixtm.h: 222: * posixver.c, posixver.h, printf-args.c, printf-args.h: 223: * printf-parse.h, putenv.c, quote.c, quote.h, quotearg.c: 224: * quotearg.h, raise.c, readlink.c, readtokens.c, readtokens.h: 225: * readtokens0.c, readtokens0.h, readutmp.c, readutmp.h, realloc.c: 226: * ref-add.sin, ref-del.sin, regcomp.c, regex.c, regex.h: 227: * regex_internal.c, regex_internal.h, regexec.c, rename.c, rmdir.c: 228: * rpmatch.c, safe-read.c, safe-read.h, safe-write.c, safe-write.h: 229: * same-inode.h, same.c, same.h, save-cwd.c, save-cwd.h, savedir.c: 230: * savedir.h, setenv.c, setenv.h, settime.c, sha1.c, sha1.h: 231: * sig2str.c, sig2str.h, snprintf.c, snprintf.h, socket_.h: 232: * stat-macros.h, stat-time.h, stdbool_.h, stdint_.h, stdio--.h: 233: * stdio-safer.h, stdlib--.h, stdlib-safer.h, stpcpy.c, strcase.h: 234: * strcasecmp.c, strcspn.c, strdup.c, strdup.h, strftime.c: 235: * strftime.h, stripslash.c, strncasecmp.c, strndup.c, strndup.h: 236: * strnlen.c, strnlen.h, strnlen1.c, strnlen1.h, strpbrk.c, strstr.c: 237: * strstr.h, strtod.c, strtoimax.c, strtol.c, strtoll.c, strtoul.c: 238: * strtoull.c, strtoumax.c, strverscmp.c, strverscmp.h, tempname.c: 239: * time_r.c, time_r.h, timespec.h, umaxtostr.c, unicodeio.h: 240: * unistd--.h, unistd-safer.h, unlinkdir.c, unlinkdir.h: 241: * unlocked-io.h, unsetenv.c, userspec.c, userspec.h, utime.c: 242: * utimecmp.c, utimecmp.h, utimens.c, utimens.h, vasnprintf.h: 243: * vasprintf.c, vasprintf.h, verify.h, version-etc-fsf.c: 244: * version-etc.c, version-etc.h, wcwidth.h, xalloc-die.c, xalloc.h: 245: * xgetcwd.c, xgetcwd.h, xgethostname.c, xgethostname.h, xmalloc.c: 246: * xmemcoll.c, xmemcoll.h, xnanosleep.c, xnanosleep.h, xreadlink.c: 247: * xreadlink.h, xstrndup.c, xstrndup.h, xstrtod.c, xstrtod.h: 248: * xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtold.c, xstrtoul.c: 249: * xstrtoumax.c, xtime.h, yesno.c, yesno.h: 250: Remove from CVS, since ../bootstrap generates them automatically. 251: 252: 2006-08-18 Bruno Haible <bruno@clisp.org> 253: 254: * mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h. 255: (ME_DUMMY): Treat "kernfs" as a dummy. 256: (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement. 257: 258: 2006-08-17 Paul Eggert <eggert@cs.ucla.edu> 259: 260: * ChangeLog: Add copyright notice. 261: * .gdb-history: Likewise. 262: * TODO: Likewise. 263: * __fpending.h: Likewise. 264: * fdopendir-glibc.c: Likewise. 265: * fprintftime.h: Likewise. 266: * root-dev-ino.h: Likewise. 267: * search_.h: Likewise. 268: * t-chdir-long: Likewise. 269: * t-fpending.c: Likewise. 270: * savedir.c: Use (C) in copyright notice. 271: * savedir.h: Likewise. 272: 273: 2006-08-16 Paul Eggert <eggert@cs.ucla.edu> 274: 275: * memcoll.c (memcoll): Set errno = 0 in the shortcut case, too. 276: Problem and fix reported by Pádraig Brady in 277: <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>. 278: 279: 2006-08-16 Jim Meyering <jim@meyering.net> 280: 281: * fts.c (fts_children): Remove obsolete "// FIXME ..." comment. 282: Reported by Bruno Haible. 283: 284: 2006-08-15 Jim Meyering <jim@meyering.net> 285: 286: * at-func.c: New file, with the logic of all emulated at-functions. 287: * openat-priv.h: Include <errno.h> and define ENOSYS, 288: in support of the EXPECTED_ERRNO macro. 289: * openat.c (fstatat, unlinkat, fchownat): Remove function definitions. 290: Instead, define the appropriate symbols and include "at-func.c". 291: * mkdirat.c (mkdirat): Likewise. 292: * fchmodat.c (fchmodat): Likewise. 293: (ENOSYS): Remove definition. 294: * openat.c: Don't include <errno.h>, now that "openat-priv.h" does it. 295: Don't include "unistd--.h" -- it wasn't ever used. 296: 297: 2006-08-14 Paul Eggert <eggert@cs.ucla.edu> 298: 299: * memcoll.c (memcoll): Optimize for the common case where the 300: arguments are bytewise equal. 301: 302: 2006-08-11 Paul Eggert <eggert@cs.ucla.edu> 303: 304: * pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE -> 305: HAVE_PIPE. Fix a file descriptor leak when fd_safer fails. 306: 307: * regex_internal.c (re_string_skip_chars): Don't assume WEOF fits 308: in wchar_t. Problem reported by Eric Blake. 309: 310: * snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when 311: LEN is smaller than SIZE. Suggested by Bruno Haible. 312: Also, help the compiler to keep LEN in a register. 313: 314: 2006-08-10 Paul Eggert <eggert@cs.ucla.edu> 315: 316: Import the following changes from libc: 317: 318: 2006-06-02 Jakub Jelinek <jakub@redhat.com> 319: 320: * posix/regex_internal.c (re_string_skip_chars): If no character has 321: been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc 322: to the byte which couldn't be converted. 323: (re_string_reconstruct): Don't clear valid_raw_len before calling 324: re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set 325: tip_context using re_string_context_at. 326: 327: 2006-05-02 Ulrich Drepper <drepper@redhat.com> 328: 329: * posix/regex.h: g++ still cannot handled [restrict]. 330: 331: 2006-04-21 Ulrich Drepper <drepper@redhat.com> 332: 333: * posix/regex.h: Remove special handling for VMS. 334: 335: Accommodate new getaddrinfo implementation in gnulib. 336: * inet_ntop.c, inet_ntop.h, snprintf.c, snprintf.h, socket_.h: 337: New files, from gnulib. 338: * .cppi-disable: Add snprintf.h, socket_.h. 339: * Makefile.am (libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h. 340: (MOSTLYCLEANDIRS): New macro. 341: (BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H). 342: (arpa/inet.h, netinet/in.h, sys/socket.h): New rules. 343: (MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h, 344: netinet/in.h-t, sys/socket.h, sys/socket.h-t. 345: (EXTRA_DIST): Add socket_.h. 346: 347: 2006-08-09 Paul Eggert <eggert@cs.ucla.edu> 348: 349: * allocsa.h, config.charset, error.c, error.h, exitfail.c, full-write.c: 350: * getaddrinfo.c, getaddrinfo.h, gettext.h, localcharset.c, mbchar.h: 351: * mbswidth.c, mkstemp-safer.c, pipe-safer.c, printf-args.c, quote.c: 352: * readlink.c, regex_internal.h, setenv.c, stdint_.h, stdio--.h: 353: * stdio-safer.h, stpcpy.c, strcspn.c, strtoimax.c, vasnprintf.h: 354: * version-etc.c, wcwidth.h: 355: Update from gnulib. 356: 357: 2006-08-09 Jim Meyering <jim@meyering.net> 358: 359: * rand-isaac.c: Include <config.h>. 360: 361: 2006-08-08 Paul Eggert <eggert@cs.ucla.edu> 362: 363: * Makefile.am (libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h. 364: * memxfrm.c, memxfrm.h, randint.c, randint.h, randperm.c, randperm.h: 365: * randread.c, randread.h, xmemxfrm.c, xmemxfrm.h: New files. 366: * rand-isaac.h: New file. 367: * rand-isaac.c: New file, mostly taken from ../src/rand-isaac.c. 368: 369: 2006-07-28 Paul Eggert <eggert@cs.ucla.edu> 370: 371: * modechange.c (mode_compile): Numeric modes now affect setuid and 372: setgid on directories only if they set these bits. 373: * modechange.h: Remove obsolete comment about masks. 374: 375: 2006-07-22 Paul Eggert <eggert@cs.ucla.edu> 376: 377: * close-stream.c, close-stream.h: New files. 378: * closeout.c (close_stdout): Use new function close_stream. 379: 380: 2006-07-19 Mike Frysinger <vapier@gentoo.org> 381: 382: * mountlist.c [ME_REMOTE]: Filter out cifs. 383: Reported by Toralf Förster in <http://bugs.gentoo.org/141012>. 384: 385: 2006-07-20 Jim Meyering <jim@meyering.net> 386: 387: * mountlist.c (ME_REMOTE): Compare strchr's result to NULL, not 0, 388: for better readability. 389: 390: 2006-07-16 Paul Eggert <eggert@cs.ucla.edu> 391: 392: * dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h: 393: New files. 394: * mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h, 395: unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h, 396: save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h. 397: (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE, 398: MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All 399: callers changed. Revamp internals significantly, by not 400: attempting to create directories that are temporarily more 401: permissive than the final results. Do not attempt to use 402: save_cwd/restore_cwd; it isn't worth it for mkdir and install. 403: This removes some race conditions, fixes some bugs, and simplifies 404: things. Use new dirchownmod function to do owner and mode changes. 405: * mkdir-p.h: Likewise. 406: * modechange.c (octal_to_mode): New function. 407: (struct mode_change): New member mentioned. 408: (make_node_op_equals): New arg mentioned. All callers changed. 409: (mode_compile): Keep track of which mode bits the user has explicitly 410: mentioned. 411: (mode_adjust): New arg DIR, so that we implement the X op correctly. 412: New arg PMODE_BITS, to keep track of which mode bits the user 413: mentioned; it treats S_ISUID and S_ISGID speciall. 414: All callers changed. 415: * modechange.h: Likewise. 416: 417: 2006-07-16 Jim Meyering <jim@meyering.net> 418: 419: * userspec.c (parse_with_separator): Say "invalid spec" rather than 420: the sometimes erroneous "cannot get the login group of a numeric UID" 421: for a spec like "not-a-username:" or "1:". Reported by 422: suckfish@ihug.co.nz in https://bugzilla.redhat.com/bugzilla/199027. 423: 424: 2006-07-10 Derek R. Price <derek@ximbiot.com> 425: 426: * backupfile.c, dirfd.h, fts.c, getcwd.c: 427: Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN 428: macros into the GNU _D_EXACT_NAMLEN. 429: * savedir.c: Likewise. 430: (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen. 431: 432: 2006-07-08 Paul Eggert <eggert@cs.ucla.edu> 433: 434: * Makefile.am (stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H, 435: to accommodate update from gnulib. 436: 437: Update from gnulib, as follows: 438: 439: 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change) 440: 441: * getaddrinfo.c: Changes to compile under MSVC6: changed 442: '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside 443: brackets. Other minor changes to suppress some compiler 444: warnings. 445: 446: 2006-07-06 Paul Eggert <eggert@cs.ucla.edu> 447: 448: * getloadavg.c: Use __VMS, not VMS. 449: * getopt.c: Likewise. 450: * getpagesize.h: Likewise. 451: 452: 2006-07-06 Derek R. Price <derek@ximbiot.com> 453: and Paul Eggert <eggert@cs.ucla.edu> 454: 455: * backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]: 456: Don't worry about this obsolete case any more. 457: (HAVE_DIR): Remove. All uses removed; we now assume you can read 458: directories. 459: * dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't 460: worry about this obsolete case any more. 461: * fts.c: Likewise. 462: * getcwd.c: Likewise. 463: * savedir.c: Likewise. 464: 465: 2006-07-06 Paul Eggert <eggert@cs.ucla.edu> 466: 467: * fnmatch.c (ISBLANK): Remove. All uses changed to isblank. 468: (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro. 469: (ISGRAPH): Remove. All uses changed to isgraph. 470: (FOLD) [!defined _LIBC]: Remove special case. 471: * getdate.y (lookup_word): Remove no-longer-needed call to islower. 472: * regext_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not 473: HAVE_ISBLANK. 474: * strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special case. 475: 476: 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 477: 478: * strtod.c (strtod): cast the argument of tolower to unsigned char. 479: 480: 2006-07-05 Paul Eggert <eggert@cs.ucla.edu> 481: 482: * memcasecmp.c: Include <limits.h>. 483: (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX. 484: * strtod.c (strtod): Don't assume isspace works on negative chars. 485: Don't assume isdigit succeeds only on '0' through '9'. 486: 487: 2006-07-05 Derek R. Price <derek@ximbiot.com> 488: 489: * exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed. 490: All uses of is_space replaced by isspace. 491: * exit.h: Don't talk about STDC_HEADERS. 492: * fnmatch.c (ISASCII): Remove; no longer needed. All uses removed. 493: (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT): 494: (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses 495: replaced by isprint etc. 496: * getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise. 497: * getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise. 498: * memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise. 499: * strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise. 500: * strtol.c (IN_CTYPE_DOMAIN): Likewise. 501: * xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise. 502: 503: 2006-07-05 Eric Blake <ebb9@byu.net> 504: 505: * getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if 506: missing from netdb.h. 507: * getaddrinfo.c (includes): Include inet_ntop and snprintf. 508: 509: 2006-06-27 Bruno Haible <bruno@clisp.org> 510: 511: Assume ANSI C header files and <ctype.h> functions. 512: * mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros. 513: (mbsnwidth): Use isprint, iscntrl instead. 514: 515: 2006-07-08 Jim Meyering <jim@meyering.net> 516: 517: * getndelim2.h (getndelim2): Remove doubled "after" in comment. 518: 519: 2006-07-03 Paul Eggert <eggert@cs.ucla.edu> 520: 521: * Makefile.am (libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h, 522: to accommodate sync from gnulib. 523: 524: Sync from gnulib. 525: 526: 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change) 527: 528: * getaddrinfo.c: fixed typo 529: 530: 2006-06-28 Bruno Haible <bruno@clisp.org> 531: 532: * getaddrinfo.h: Fix POSIX URL. 533: * getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of _WIN32. 534: (use_win32_p): Make static. 535: (getaddrinfo): Reject service name if it is empty or does not consist 536: solely of decimal digits, or if its value is > 65535. 537: (getnameinfo): Remove useless casts. 538: 539: 2006-06-28 Eric Blake <ebb9@byu.net> 540: 541: * mbchar.h (wcwidth): Include wcwidth.h. 542: * mbswidth.c (wcwidth): Move from here... 543: * wcwidth.h: ...to this new file. 544: 545: 2006-06-28 Simon Josefsson <jas@extundo.com> 546: 547: * getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the 548: functions there. It will succeed on Windows XP, but on Windows 549: 2000 and (presumably) earlier, it will fail, and use the internal 550: re-implementation. 551: (use_win32_p): New function. 552: (getaddrinfo): Use strtoul on servname, to support numeric ports. 553: Support AI_NUMERICSERV to disable getservbyname. 554: (getnameinfo): New function, only supports 555: NI_NUMERICHOST|NI_NUMERICSERV for now. 556: 557: * getaddrinfo.h: Test and check for AI_* flags separately, MinGW 558: only have some of them. Add AI_NUMERICSERV. Add prototype for 559: getnameinfo. 560: 561: 2006-06-26 Paul Eggert <eggert@cs.ucla.edu> 562: 563: * base64.c (B64): Use _ as the formal parameter, not x, to avoid 564: bug in IBM C V6 for AIX. Problem reported by Larry Jones in 565: <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>. 566: 567: 2006-06-21 Simon Josefsson <jas@extundo.com> 568: 569: * getaddrinfo.c (getaddrinfo): Set ai_family in the return 570: variable. 571: 572: 2006-06-19 Paul Eggert <eggert@cs.ucla.edu> 573: 574: * alloca_.h (alloca) [defined alloca]: Don't define or declare. 575: 576: 2006-06-16 Eric Blake <ebb9@byu.net> 577: 578: * unsetenv.c [!defined errno]: Assume errno.h declares errno. 579: * unicodeio.c [!defined errno]: Likewise. 580: * strtol.c [!defined errno]: Likewise. 581: * strtod.c [!defined errno]: Likewise. 582: 583: 2006-05-26 Martin Lambers <marlam@marlam.de> 584: 585: * getpass.c: Updates the test for the native W32 API, and adds 586: missing includes, thus fixing compilation warnings. 587: 588: 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua> 589: 590: * exclude.c (exclude_fnmatch): New function. 591: (excluded_file_name): Call exclude_fnmatch. 592: * exclude.h (excluded_file_name): New prototype 593: 594: 2006-05-19 Jim Meyering <jim@meyering.net> 595: 596: * getugroups.c: Correct an outdated comment. From Bruno Haible. 597: 598: 2006-05-10 Paul Eggert <eggert@cs.ucla.edu> 599: 600: * sha1.c (rol): Cast right-shift arg to uint32_t to prevent 601: unwanted sign propagation, e.g., on hosts with 64-bit int. 602: There still are some problems with reeelly weird theoretical hosts 603: (e.g., 33-bit int) but it's not worth worrying about now. 604: (K1, K2, K3, K4): Remove unnecessary L suffix. 605: 606: 2006-03-24 Simon Josefsson <jas@extundo.com> 607: 608: * base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>, 609: including some doc fixes. 610: (base64_encode_alloc): Fix +1 bug on allocation failures. 611: 612: 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 613: 614: * base64.c (base64_encode): Do not read past end of array with 615: unsanitized input on systems with CHAR_BIT > 8. 616: 617: 2006-03-24 Eric Blake <ebb9@byu.net> 618: 619: * time_r.c (copy_string_result): Remove, as it is no longer used. 620: 621: 2006-07-03 Paul Eggert <eggert@cs.ucla.edu> 622: 623: * stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for 624: MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems 625: reported by Mark D. Baushke, one in 626: <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>. 627: 628: 2006-07-03 Jim Meyering <jim@meyering.net> 629: 630: * cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this 631: macro is used before the first cycle_check call. 632: 633: 2006-07-02 Paul Eggert <eggert@cs.ucla.edu> 634: 635: * stdint_.h (intmax_t, uintmax_t): Prefer long to long long if 636: both are 64 bits, since this seems to be the tradition, and this 637: prevents gcc -Wformat from warning about usages with PRIuMAX. If 638: we ever run into a host that prefers long long to long in this 639: case, we'll need another configure-time test. Problem reported by 640: Jim Meyering. 641: 642: 2006-07-02 Paul Eggert <eggert@cs.ucla.edu> 643: 644: * Makefile.am (stdint.h): Sync from gnulib. 645: * stdint_.h: Sync from gnulib. 646: 647: 2006-06-30 Paul Eggert <eggert@cs.ucla.edu> 648: 649: * xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support 650: both double and long double versions. 651: (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally. 652: * xstrtold.c: New file. 653: * xstrtod.h (xstrtold): New decl. 654: 655: 2006-06-29 Derek R. Price <derek@ximbiot.com> 656: 657: * strftime.c: Assume strftime exists. 658: 659: 2006-06-28 Derek R. Price <derek@ximbiot.com> 660: 661: * savedir.c (CLOSEDIR): Remove. All uses changed to closedir. 662: Autoconf 2.60 says this stuff was obsolete. 663: 664: 2006-06-20 Paul Eggert <eggert@cs.ucla.edu> 665: 666: * openat.c (openat): Use ?:, not if, to work around GCC bug 4210 667: <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>. 668: Problem reported by Denis Excoffier in 669: <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>. 670: 671: 2006-06-19 Jim Meyering <jim@meyering.net> 672: 673: Apply this change from gnulib: 674: 2006-06-16 Eric Blake <ebb9@byu.net> 675: * unsetenv.c [!defined errno]: Assume errno.h declares errno. 676: 677: 2006-06-11 Paul Eggert <eggert@cs.ucla.edu> 678: 679: * getdate.y (__attribute__): Don't define if already defined. 680: Problem reported by Larry Jones. 681: * utimens.c (__attribute__): Likewise. 682: 683: 2006-06-10 Jim Meyering <jim@meyering.net> 684: 685: Apply this change from gnulib: 686: 687: 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 688: Bruno Haible <bruno@clisp.org> 689: 690: * strndup.c (strndup) [!_LIBC]: Don't undefine macro definition. 691: 692: 2006-06-04 Paul Eggert <eggert@cs.ucla.edu> 693: 694: * regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun 695: reported by Andreas Schwab. 696: 697: 2006-05-25 Paul Eggert <eggert@cs.ucla.edu> 698: 699: * tempname.c (small_open, large_open): New macros. 700: (__open, __open64) [!_LIBC]: Remove. 701: (__gen_tempname): Use small_open and large_open instead of __open 702: and __open64. This fixes a portability bug on HP-UX 11.11i 703: reported by Simon Wing-Tang in 704: <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>. 705: 706: 2006-05-23 Paul Eggert <eggert@cs.ucla.edu> 707: 708: * filemode.c: Don't include <string.h>; this include was 709: inadvertently put into the previous patch. Problem noted 710: by Jim Meyering. 711: 712: 2006-05-22 Paul Eggert <eggert@cs.ucla.edu> 713: 714: * filemode.c (setst): Remove. 715: (strmode): Rewrite to avoid setst. This makes the code shorter, 716: (arguably) clearer, and the generated code is a bit smaller on my 717: Debian GNU/Linux stable x86 host. 718: 719: Import from gnulib. 720: * verify.h: Document the internals better. Most of this change 721: was written by Bruno Haible. 722: 723: 2006-05-21 Jim Meyering <jim@meyering.net> 724: 725: * fts.c (fts_open): Fail with EINVAL if a caller violates this rule: 726: Either FTS_LOGICAL or FTS_PHYSICAL must be provided to the 727: fts_open() function. 728: 729: 2006-05-19 Paul Eggert <eggert@cs.ucla.edu> 730: 731: * nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>. 732: Use the usual Autoconf way to include <time.h> and/or sys/time.h. 733: (my_usleep): Don't mishandle maximum value. 734: 735: 2006-05-15 Jim Meyering <jim@meyering.net> 736: 737: Avoid the expense of an fstat, when possible. 738: * fts.c (O_NOFOLLOW, STREQ): Define. 739: (diropen_fd): Remove function. Merge it into sole caller... 740: (diropen): ...here. Use O_NOFOLLOW when appropriate. 741: (fts_safe_changedir): Call fstat for dev/inode check, only if the 742: