platform/upstream/coreutils.git
23 years agoModify 'expr' so that it uses intmax_t, not int, to calculate
Jim Meyering [Sat, 18 Aug 2001 16:04:16 +0000 (16:04 +0000)]
Modify 'expr' so that it uses intmax_t, not int, to calculate
the value of integer expressions.

(struct valinfo.i): Now intmax_t, not int.
(docolon, int_value, str_value, isstring, nextarg, toarith,
freev, tostring, trace): Remove unnecessary forward decls.
(int_value, printv, tostring, toarith, arithf, arithdivf, docolon,
eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int.
(docolon): Don't assume size_t fits in int.

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 15:59:27 +0000 (15:59 +0000)]
*** empty log message ***

23 years agoAdd AC_PREREQ(2.13).
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.

23 years ago(jm_AC_TYPE_LONG_LONG): New macro.
Jim Meyering [Sat, 18 Aug 2001 15:55:38 +0000 (15:55 +0000)]
(jm_AC_TYPE_LONG_LONG): New macro.

23 years agorenamed from ulonglong.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:36 +0000 (15:54 +0000)]
renamed from ulonglong.m4

23 years agorenamed to longlong.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:35 +0000 (15:54 +0000)]
renamed to longlong.m4

23 years agorenamed from inttypes_h.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:09 +0000 (15:54 +0000)]
renamed from inttypes_h.m4

23 years agorenamed to inttypes.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:08 +0000 (15:54 +0000)]
renamed to inttypes.m4

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 15:43:32 +0000 (15:43 +0000)]
*** empty log message ***

23 years agoRevert part of last change and solve the problem a better way.
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.

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 15:26:28 +0000 (15:26 +0000)]
*** empty log message ***

23 years ago($(v_etc_file)): Define.
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'.

23 years agoMerge in changes from autoconf.
Jim Meyering [Sat, 18 Aug 2001 15:24:36 +0000 (15:24 +0000)]
Merge in changes from autoconf.

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 10:55:01 +0000 (10:55 +0000)]
*** empty log message ***

23 years ago(show_date) [--rfc-822]: Don't space-pad the day of the month.
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.

23 years ago.
Jim Meyering [Sat, 18 Aug 2001 10:11:16 +0000 (10:11 +0000)]
.

23 years ago(head_bytes): Read no more than the specified number of bytes.
Jim Meyering [Sat, 18 Aug 2001 10:10:56 +0000 (10:10 +0000)]
(head_bytes): Read no more than the specified number of bytes.

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 10:10:29 +0000 (10:10 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sat, 18 Aug 2001 09:27:50 +0000 (09:27 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 09:27:37 +0000 (09:27 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 09:23:11 +0000 (09:23 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 09:20:03 +0000 (09:20 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 16 Aug 2001 05:55:35 +0000 (05:55 +0000)]
*** empty log message ***

23 years ago(main): When there are too many non-option arguments,
Jim Meyering [Thu, 16 Aug 2001 05:47:48 +0000 (05:47 +0000)]
(main): When there are too many non-option arguments,
include the first offending argument in the diagnostic.
Suggestion from Karl Berry.

23 years agofix typo: s/-quiet/--quiet/
Jim Meyering [Tue, 14 Aug 2001 20:14:19 +0000 (20:14 +0000)]
fix typo: s/-quiet/--quiet/
From: noon@cote-dazur.com (Fabrice Bauzac)

23 years ago.
Jim Meyering [Tue, 14 Aug 2001 07:49:17 +0000 (07:49 +0000)]
.

23 years ago.
Jim Meyering [Tue, 14 Aug 2001 07:48:47 +0000 (07:48 +0000)]
.

23 years ago.
Jim Meyering [Tue, 14 Aug 2001 07:47:25 +0000 (07:47 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Tue, 14 Aug 2001 07:38:08 +0000 (07:38 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Tue, 14 Aug 2001 07:25:56 +0000 (07:25 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Tue, 14 Aug 2001 07:24:43 +0000 (07:24 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Tue, 14 Aug 2001 07:18:42 +0000 (07:18 +0000)]
*** empty log message ***

23 years ago(xputenv): Remove parameter's const qualifier.
Jim Meyering [Tue, 14 Aug 2001 07:18:34 +0000 (07:18 +0000)]
(xputenv): Remove parameter's const qualifier.

23 years ago(AUTHORS): Mark string for translation, since it contains the English word `and'.
Jim Meyering [Tue, 14 Aug 2001 07:10:10 +0000 (07:10 +0000)]
(AUTHORS): Mark string for translation, since it contains the English word `and'.

23 years ago*** empty log message ***
Jim Meyering [Tue, 14 Aug 2001 07:09:45 +0000 (07:09 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Tue, 14 Aug 2001 06:59:30 +0000 (06:59 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Tue, 14 Aug 2001 06:56:03 +0000 (06:56 +0000)]
*** empty log message ***

23 years ago(AUTHORS): Mark string for translation, since it contains the English word `and'.
Jim Meyering [Tue, 14 Aug 2001 06:54:27 +0000 (06:54 +0000)]
(AUTHORS): Mark string for translation, since it contains the English word `and'.

23 years agowhoops. remove the backslash, too.
Jim Meyering [Mon, 13 Aug 2001 20:14:36 +0000 (20:14 +0000)]
whoops.  remove the backslash, too.

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 20:11:15 +0000 (20:11 +0000)]
*** empty log message ***

23 years ago(unlocked-io.h): Do not append "_unlocked" twice.
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.

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 10:34:09 +0000 (10:34 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 10:33:40 +0000 (10:33 +0000)]
*** empty log message ***

23 years ago(AUTHORS): Mark string for translation, since it contains the English word `and'.
Jim Meyering [Mon, 13 Aug 2001 10:33:28 +0000 (10:33 +0000)]
(AUTHORS): Mark string for translation, since it contains the English word `and'.

23 years ago(author_mark_check): New rule.
Jim Meyering [Mon, 13 Aug 2001 10:27:02 +0000 (10:27 +0000)]
(author_mark_check): New rule.
(local-check): Depend on it.

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 08:44:57 +0000 (08:44 +0000)]
*** empty log message ***

23 years agoChange expected exit status to reflect the above.
Jim Meyering [Mon, 13 Aug 2001 08:44:49 +0000 (08:44 +0000)]
Change expected exit status to reflect the above.

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 08:37:02 +0000 (08:37 +0000)]
*** empty log message ***

23 years ago(cp_option_init): Adjust initialization of `interactive',
Jim Meyering [Mon, 13 Aug 2001 08:36:54 +0000 (08:36 +0000)]
(cp_option_init): Adjust initialization of `interactive',
and initialize new member, stdin_tty.

23 years ago(cp_option_init): Adjust initialization of `interactive',
Jim Meyering [Mon, 13 Aug 2001 08:36:16 +0000 (08:36 +0000)]
(cp_option_init): Adjust initialization of `interactive',
and initialize new member, stdin_tty.
(main): Adjust initialization(s) of `interactive',

23 years ago(cp_option_init): Adjust initialization of `interactive',
Jim Meyering [Mon, 13 Aug 2001 08:33:04 +0000 (08:33 +0000)]
(cp_option_init): Adjust initialization of `interactive',
and initialize new member, stdin_tty.
(main): Adjust initialization(s) of `interactive',

23 years ago(enum Interactive): New type.
Jim Meyering [Mon, 13 Aug 2001 08:32:10 +0000 (08:32 +0000)]
(enum Interactive): New type.
(struct cp_options) [interactive]: Change type to Interactive.
(struct cp_options) [stdin_tty]: New member.

23 years ago(overwrite_prompt): New function.
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.

23 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 06:30:14 +0000 (06:30 +0000)]
*** empty log message ***

23 years ago(<errno.h>): Include.
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 20:11:49 +0000 (20:11 +0000)]
*** empty log message ***

23 years ago(xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
Jim Meyering [Sun, 12 Aug 2001 20:11:39 +0000 (20:11 +0000)]
(xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
Simply `return getcwd (NULL, 0);'.
[! (defined __GLIBC__ && __GLIBC__ >= 2)]:
Use 1300 as initial value for length, not PATH_MAX.

23 years agoClean up cpp syntax.
Jim Meyering [Sun, 12 Aug 2001 18:49:13 +0000 (18:49 +0000)]
Clean up cpp syntax.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 18:46:25 +0000 (18:46 +0000)]
*** empty log message ***

23 years agoGuard the above pathconf-using definitions with `#if HAVE_PATHCONF'
Jim Meyering [Sun, 12 Aug 2001 18:46:20 +0000 (18:46 +0000)]
Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
rather than with `#ifdef _POSIX_VERSION'.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 18:28:25 +0000 (18:28 +0000)]
*** empty log message ***

23 years ago(PATH_MAX_FOR): Use pathconf via wrapper.
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 18:23:28 +0000 (18:23 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 17:52:27 +0000 (17:52 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 17:51:55 +0000 (17:51 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 12 Aug 2001 17:51:44 +0000 (17:51 +0000)]
.

23 years ago.
Jim Meyering [Sun, 12 Aug 2001 17:50:42 +0000 (17:50 +0000)]
.

23 years ago(main): Iterate over the sorted keys (rather than `while...each...'),
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 17:37:26 +0000 (17:37 +0000)]
*** empty log message ***

23 years ago($program_name): Define.
Jim Meyering [Sun, 12 Aug 2001 17:37:18 +0000 (17:37 +0000)]
($program_name): Define.
(main): Use $program_name, rather than long-inaccurate `build-script'.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 13:26:08 +0000 (13:26 +0000)]
*** empty log message ***

23 years agoQuote the first argument in each use of AC_DEFUN.
Jim Meyering [Sun, 12 Aug 2001 13:26:00 +0000 (13:26 +0000)]
Quote the first argument in each use of AC_DEFUN.

23 years ago.
Jim Meyering [Sun, 12 Aug 2001 13:10:59 +0000 (13:10 +0000)]
.

23 years agoupdate from libc
Jim Meyering [Sun, 12 Aug 2001 13:02:20 +0000 (13:02 +0000)]
update from libc

23 years agoInclude gtod.h -- should have been part of preceding delta
Jim Meyering [Sun, 12 Aug 2001 13:00:15 +0000 (13:00 +0000)]
Include gtod.h -- should have been part of preceding delta

23 years agoupdate from libc
Jim Meyering [Sun, 12 Aug 2001 12:50:16 +0000 (12:50 +0000)]
update from libc

23 years agoupdate from libc
Jim Meyering [Sun, 12 Aug 2001 12:49:11 +0000 (12:49 +0000)]
update from libc

23 years ago.
Jim Meyering [Sun, 12 Aug 2001 10:57:10 +0000 (10:57 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 10:55:53 +0000 (10:55 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 09:19:37 +0000 (09:19 +0000)]
*** empty log message ***

23 years agoInclude gtod.h.
Jim Meyering [Sun, 12 Aug 2001 08:47:35 +0000 (08:47 +0000)]
Include gtod.h.
(main): `Call' GETTIMEOFDAY_INIT, just in case the code ever changes
to make it necessary.

23 years agoWork around non-compliant gettimeofday on Mac OS X 10.0.4,
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 08:37:22 +0000 (08:37 +0000)]
*** empty log message ***

23 years ago(libfetish_a_SOURCES): Add gtod.h.
Jim Meyering [Sun, 12 Aug 2001 08:33:25 +0000 (08:33 +0000)]
(libfetish_a_SOURCES): Add gtod.h.

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 08:33:09 +0000 (08:33 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 08:31:50 +0000 (08:31 +0000)]
*** empty log message ***

23 years agoremove unused cruft
Jim Meyering [Sun, 12 Aug 2001 08:30:36 +0000 (08:30 +0000)]
remove unused cruft

23 years agoyes/no were reversed
Jim Meyering [Sun, 12 Aug 2001 08:30:03 +0000 (08:30 +0000)]
yes/no were reversed

23 years ago*** empty log message ***
Jim Meyering [Fri, 10 Aug 2001 19:02:06 +0000 (19:02 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 10 Aug 2001 19:02:00 +0000 (19:02 +0000)]
*** empty log message ***

23 years ago(print_long_format): Simplify previous patch for
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.  :-)

23 years ago(print_long_format): Multiply the shift width by zero
Jim Meyering [Fri, 10 Aug 2001 08:13:03 +0000 (08:13 +0000)]
(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.

23 years ago*** empty log message ***
Jim Meyering [Fri, 10 Aug 2001 07:51:56 +0000 (07:51 +0000)]
*** empty log message ***

23 years ago(print_long_format): If a file size is negative, assume
Jim Meyering [Fri, 10 Aug 2001 07:51:52 +0000 (07:51 +0000)]
(print_long_format): If a file size is negative, assume
the typical case where it has wrapped around from a positive value.

23 years ago*** empty log message ***
Jim Meyering [Tue, 7 Aug 2001 13:45:31 +0000 (13:45 +0000)]
*** empty log message ***

23 years ago(cfcc_msg): Remove now-inaccurate part of comment.
Jim Meyering [Tue, 7 Aug 2001 13:45:26 +0000 (13:45 +0000)]
(cfcc_msg): Remove now-inaccurate part of comment.
From Bruno Haible.

23 years ago*** empty log message ***
Jim Meyering [Tue, 7 Aug 2001 12:10:39 +0000 (12:10 +0000)]
*** empty log message ***

23 years ago(m4-check): New rule.
Jim Meyering [Tue, 7 Aug 2001 12:10:10 +0000 (12:10 +0000)]
(m4-check): New rule.
(local-check): Depend on it.

23 years agowhoops
Jim Meyering [Tue, 7 Aug 2001 11:32:28 +0000 (11:32 +0000)]
whoops

23 years agotest both cp and mv
Jim Meyering [Tue, 7 Aug 2001 11:31:06 +0000 (11:31 +0000)]
test both cp and mv