From: Paul Eggert Date: Fri, 6 Aug 2004 07:14:12 +0000 (+0000) Subject: More merges from coreutils. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cce7ab568194d37c315ed9ad8167a800e500755;p=pspp More merges from coreutils. --- diff --git a/ChangeLog b/ChangeLog index 841fbdb3d1..fb60092eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,9 @@ 2004-08-05 Paul Eggert - * modules/c-strtod, modules/c-strtold, modules/cycle-check: New - files. + Merge from coreutils. + * modules/c-strtod, modules/c-strtold, modules/canonicalize, + modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files. + * modules/path-concat: Don't depend on strdup. 2004-08-03 Paul Eggert @@ -28,7 +30,7 @@ * MODULES.html.sh (func_all_modules): Add calloc, to match 2004-06-01 addition of calloc module. -2004-06-22 Gary V. Vaughan +2004-06-22 Gary V. Vaughan * modules/argz: New file. * MODULES.html.sh (func_all_modules): Add argz. diff --git a/lib/ChangeLog b/lib/ChangeLog index c3b219e336..07616d5891 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,20 +1,49 @@ 2004-08-05 Paul Eggert -o + Merge from coreutils. * .gdb-history: Remove; this doesn't belong here. * c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c, - cycle-check.h, dev-ino.h: New files. + cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c, + fcntl-safer.h, fcntl-safer.c, getcwd.c: New files. + + * dirname.h: Include . + (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN, + for consistency with POSIX terminology. All uses changed. + (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros. + (strip_trailing_slashes): Use bool for booleans. + * stripslash.c (strip_trailing_slashes): Likewise. * error.c: Work around bug in OpenBSD 3.4 sterror_r: it sometimes returns a positive errno value even when it succeeds. (print_errno_message) [!LIBC]: Fall back on strerror if __strerror_r fails. + * path-concat.c (mempcpy): Don't define if a system header defines it. + Don't include stdio.h, stdlib.h, unistd.h, strdup.h. + (longest_relative_suffix): New function. + (path_concat): Use it. Assume first argument is not NULL. + Port to DOS. Omit redundant separators. + Report an error instead of returning NULL. + Use mempcpy instead of memcpy. + (xpath_concat): Remove: not declared or used. + + * same.h: Include + (same_name): Return bool, not int. + * same.c (same_name): Likewise. + (errno): Don't declare; we assume C89 or better now. + + * stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros, + if not already defined. + + * xgetcwd.c (errno): Don't declare; we assume C89 or better now. + * dup-safer.c (errno): Likewise. + 2004-08-03 Paul Eggert - * fatal.c, fatal.h: Remove as the "fatal" module wasn't used or working. + * fatal.c, fatal.h: Remove as the "fatal" module wasn't used or + working. 2004-07-16 Simon Josefsson diff --git a/m4/ChangeLog b/m4/ChangeLog index a4a5fb1509..a493c1c983 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,6 +1,21 @@ 2004-08-05 Paul Eggert - * c-strtod.m4: New file. + Merge from coreutils. + + * c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4: + New files. + + * dos.m4 (gl_AC_DOS): filesystem -> file system renaming. + FILESYSTEM_PREFIX_LEN -> + FILE_SYSTEM_PREFIX_LEN. + FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX -> + FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX. + FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR -> + FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR. + + * path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the + prerequisite modules now handle the DOS stuff. + Don't check for unistd.h. 2004-08-03 Paul Eggert