Jim Meyering [Sat, 18 Aug 2001 15:59:02 +0000 (15:59 +0000)]
Add AC_PREREQ(2.13).
(jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
(jm_AC_TYPE_INTMAX_T): New macro.
(jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
Jim Meyering [Sat, 18 Aug 2001 15:43:28 +0000 (15:43 +0000)]
Revert part of last change and solve the problem a better way.
(show_date) [--rfc-822]: Set LC_ALL=C just before
calling strftime and restore it just afterwards.
Suggestion from Ulrich Drepper.
Jim Meyering [Sat, 18 Aug 2001 15:26:24 +0000 (15:26 +0000)]
($(v_etc_file)): Define.
(copyright-check): Use the new variable.
(my-distcheck): Depend on local-check so those checks are once
again run by `make distcheck'.
Jim Meyering [Sat, 18 Aug 2001 10:54:56 +0000 (10:54 +0000)]
(show_date) [--rfc-822]: Don't space-pad the day of the month.
Set only LC_TYPE to the "C" locale. Setting LC_ALL is overkill,
and would have unwanted side effects if there is an error message.
Jim Meyering [Mon, 13 Aug 2001 20:11:03 +0000 (20:11 +0000)]
(unlocked-io.h): Do not append "_unlocked" twice.
Port to Solaris 8, where 'sed' requires a space after the 'r'
command, and where sh dislikes "$/". Clean up the spacing a bit.
Redirect output to $tmp just once.
Jim Meyering [Mon, 13 Aug 2001 08:31:03 +0000 (08:31 +0000)]
(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.
Jim Meyering [Mon, 13 Aug 2001 06:30:10 +0000 (06:30 +0000)]
(<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.
Jim Meyering [Sun, 12 Aug 2001 18:28:19 +0000 (18:28 +0000)]
(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.
Jim Meyering [Sun, 12 Aug 2001 17:44:03 +0000 (17:44 +0000)]
(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.
Jim Meyering [Sun, 12 Aug 2001 08:47:19 +0000 (08:47 +0000)]
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.
Jim Meyering [Fri, 10 Aug 2001 19:01:54 +0000 (19:01 +0000)]
(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. :-)