Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 3b21e822ac (enum Interactive): New type.
(struct cp_options) [interactive]: Change type to Interactive.
(struct cp_options) [stdin_tty]: New member.
2001-08-13 08:32:10 +00:00
Jim Meyering 66c2f3a08a (overwrite_prompt): New function.
(copy_internal): Separate the mv-specific and non-move_mode code
that determines whether to prompt the user.
[move_mode]: Don't make mv fail (i.e. don't return 1) just because
the user declined to remove one or more of the files.
2001-08-13 08:31:03 +00:00
Jim Meyering c1c7368372 *** empty log message *** 2001-08-13 06:30:14 +00:00
Jim Meyering 7fda17ac4f (<errno.h>): Include.
(errno): Declare if not defined.
(addext): Work correctly when pathconf returns -1 and leaves
errno alone because there is no limit.  Also, work even if
pathconf returns a value greater than SIZE_MAX.
2001-08-13 06:30:10 +00:00
Jim Meyering 242256b45d *** empty log message *** 2001-08-12 20:11:49 +00:00
Jim Meyering 79dbd85e74 (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
Simply `return getcwd (NULL, 0);'.
[! (defined __GLIBC__ && __GLIBC__ >= 2)]:
Use 1300 as initial value for length, not PATH_MAX.
2001-08-12 20:11:39 +00:00
Jim Meyering 8982646a63 Clean up cpp syntax. 2001-08-12 18:49:13 +00:00
Jim Meyering fbf9eeb8d7 *** empty log message *** 2001-08-12 18:46:25 +00:00
Jim Meyering 4911e67aa8 Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
rather than with `#ifdef _POSIX_VERSION'.
2001-08-12 18:46:20 +00:00
Jim Meyering 66d5a12094 *** empty log message *** 2001-08-12 18:28:25 +00:00
Jim Meyering 4d94665d3d (PATH_MAX_FOR): Use pathconf via wrapper.
(NAME_MAX_FOR): Likewise.
(pathconf_wrapper): New function.
(validate_path): Declare length variables to be `long', not `int'.
Adjust corresponding printf-style specs to use %ld.
2001-08-12 18:28:19 +00:00
Jim Meyering e3b1f10354 *** empty log message *** 2001-08-12 18:23:28 +00:00
Jim Meyering d971214e89 *** empty log message *** 2001-08-12 17:52:27 +00:00
Jim Meyering 94fe1350f4 *** empty log message *** 2001-08-12 17:51:55 +00:00
Jim Meyering 494f552020 . 2001-08-12 17:51:44 +00:00
Jim Meyering 0b219591dd . 2001-08-12 17:50:42 +00:00
Jim Meyering 28154116c4 (main): Iterate over the sorted keys (rather than `while...each...'),
so this script produces the same output regardless of which version
of perl (e.g., perl5.6) is used.
2001-08-12 17:44:03 +00:00
Jim Meyering 4488d9300d *** empty log message *** 2001-08-12 17:37:26 +00:00
Jim Meyering bdf06b6060 ($program_name): Define.
(main): Use $program_name, rather than long-inaccurate `build-script'.
2001-08-12 17:37:18 +00:00
Jim Meyering 105f262769 *** empty log message *** 2001-08-12 13:26:08 +00:00
Jim Meyering 1f295ae62d Quote the first argument in each use of AC_DEFUN. 2001-08-12 13:26:00 +00:00
Jim Meyering 7c80315d48 . 2001-08-12 13:10:59 +00:00
Jim Meyering 93696dfa49 update from libc 2001-08-12 13:02:20 +00:00
Jim Meyering 2238faa8fd Include gtod.h -- should have been part of preceding delta 2001-08-12 13:00:15 +00:00
Jim Meyering 5bd7048dfe update from libc 2001-08-12 12:50:16 +00:00
Jim Meyering 43f4c1dfd6 update from libc 2001-08-12 12:49:11 +00:00
Jim Meyering 2634943070 . 2001-08-12 10:57:10 +00:00
Jim Meyering 73db00ea87 *** empty log message *** 2001-08-12 10:55:53 +00:00
Jim Meyering a9066ef619 *** empty log message *** 2001-08-12 09:19:37 +00:00
Jim Meyering 3e4950247e Include gtod.h.
(main): `Call' GETTIMEOFDAY_INIT, just in case the code ever changes
to make it necessary.
2001-08-12 08:47:35 +00:00
Jim Meyering 7292e5031b Work around non-compliant gettimeofday on Mac OS X 10.0.4,
(aka Darwin 1.3.7) that caused the date of the first file listed
in long output to be the current time rather than the file's mtime.
The real work is in m4/gettimeofday.m4 and the wrapper function,
lib/gettimeofday.c.

Include gtod.h.
(main): `Call' GETTIMEOFDAY_INIT.
(print_long_format): Add a comment about gettimeofday.
2001-08-12 08:47:19 +00:00
Jim Meyering 98950444e6 *** empty log message *** 2001-08-12 08:37:22 +00:00
Jim Meyering 1249a88daf (libfetish_a_SOURCES): Add gtod.h. 2001-08-12 08:33:25 +00:00
Jim Meyering 1d3ea9cba8 *** empty log message *** 2001-08-12 08:33:09 +00:00
Jim Meyering c04d364e49 *** empty log message *** 2001-08-12 08:31:50 +00:00
Jim Meyering e5e8774bc5 remove unused cruft 2001-08-12 08:30:36 +00:00
Jim Meyering 1a52475baa yes/no were reversed 2001-08-12 08:30:03 +00:00
Jim Meyering eac67711b5 *** empty log message *** 2001-08-10 19:02:06 +00:00
Jim Meyering 7ad9855775 *** empty log message *** 2001-08-10 19:02:00 +00:00
Jim Meyering bffeb8c5aa (print_long_format): Simplify previous patch for
listing negative sizes, by adding OFF_T_MAX - OFF_T_MIN + 1
instead of doing a fancy conditional shift.  This is simpler
and it avoids GCC's bogus compile-time warning about shift
counts.  (As a bonus, it is portable to hosts that do not use
twos-complement arithmetic.  :-)
2001-08-10 19:01:54 +00:00
Jim Meyering 97dcae2fb6 (print_long_format): Multiply the shift width by zero
to avoid a warning from gcc on hosts with an unsigned type for the
st_size member.
2001-08-10 08:13:03 +00:00
Jim Meyering 4e27c7372b *** empty log message *** 2001-08-10 07:51:56 +00:00
Jim Meyering 67ba4ac017 (print_long_format): If a file size is negative, assume
the typical case where it has wrapped around from a positive value.
2001-08-10 07:51:52 +00:00
Jim Meyering b84a28d9dd *** empty log message *** 2001-08-07 13:45:31 +00:00
Jim Meyering 0d1d166269 (cfcc_msg): Remove now-inaccurate part of comment.
From Bruno Haible.
2001-08-07 13:45:26 +00:00
Jim Meyering 62dbf128a5 *** empty log message *** 2001-08-07 12:10:39 +00:00
Jim Meyering 6258f69c2c (m4-check): New rule.
(local-check): Depend on it.
2001-08-07 12:10:10 +00:00
Jim Meyering fb3d202184 whoops 2001-08-07 11:32:28 +00:00
Jim Meyering ea9d247693 test both cp and mv 2001-08-07 11:31:06 +00:00
Jim Meyering 65cb579ccc . 2001-08-07 10:44:12 +00:00