platform/upstream/coreutils.git
28 years ago(main): Use xstrtol instead of atoi.
Jim Meyering [Fri, 15 Dec 1995 03:19:51 +0000 (03:19 +0000)]
(main): Use xstrtol instead of atoi.
(fold_file): Make a couple locals `int', not size_t, and cast
fwrite's arg3 to size_t.

28 years ago.
Jim Meyering [Sat, 9 Dec 1995 04:06:38 +0000 (04:06 +0000)]
.

28 years ago.
Jim Meyering [Sat, 9 Dec 1995 04:00:17 +0000 (04:00 +0000)]
.

28 years ago.
Jim Meyering [Sat, 9 Dec 1995 02:52:17 +0000 (02:52 +0000)]
.

28 years ago.
Jim Meyering [Fri, 8 Dec 1995 22:44:18 +0000 (22:44 +0000)]
.

28 years ago.
Jim Meyering [Fri, 8 Dec 1995 22:39:38 +0000 (22:39 +0000)]
.

28 years ago.
Jim Meyering [Fri, 8 Dec 1995 20:19:49 +0000 (20:19 +0000)]
.

28 years ago.
Jim Meyering [Fri, 8 Dec 1995 20:18:40 +0000 (20:18 +0000)]
.

28 years agoAdd copyright.
Jim Meyering [Fri, 8 Dec 1995 04:50:48 +0000 (04:50 +0000)]
Add copyright.

28 years ago.
Jim Meyering [Thu, 7 Dec 1995 23:42:31 +0000 (23:42 +0000)]
.

28 years ago.
Jim Meyering [Wed, 6 Dec 1995 23:40:00 +0000 (23:40 +0000)]
.

28 years ago[!WITH_REGEX]: Include rx.h.
Jim Meyering [Wed, 6 Dec 1995 23:39:26 +0000 (23:39 +0000)]
[!WITH_REGEX]: Include rx.h.

28 years agofix typos. From Karl Heuer.
Jim Meyering [Wed, 6 Dec 1995 23:26:20 +0000 (23:26 +0000)]
fix typos. From Karl Heuer.

28 years ago(main): Diagnose improper form of arguments to -k, then fail.
Jim Meyering [Tue, 5 Dec 1995 23:50:43 +0000 (23:50 +0000)]
(main): Diagnose improper form of arguments to -k, then fail.

28 years ago(main): Diagnose improper form of arguments to -k, then fail..
Jim Meyering [Tue, 5 Dec 1995 23:50:18 +0000 (23:50 +0000)]
(main): Diagnose improper form of arguments to -k, then fail..

28 years ago(rm): Work around SunOS 4 bug whereby lstat doesn't fail
Jim Meyering [Tue, 5 Dec 1995 23:39:06 +0000 (23:39 +0000)]
(rm): Work around SunOS 4 bug whereby lstat doesn't fail
when given a zero-length file name argument.  Reported by
Mark Calabretta <mcalabre@atnf.csiro.au>.

28 years ago.
Jim Meyering [Tue, 5 Dec 1995 23:38:40 +0000 (23:38 +0000)]
.

28 years ago.
Jim Meyering [Tue, 5 Dec 1995 17:54:59 +0000 (17:54 +0000)]
.

28 years ago(numcompare): Properly handle all cases in which signs differ. From Karl Heuer.
Jim Meyering [Tue, 5 Dec 1995 17:53:39 +0000 (17:53 +0000)]
(numcompare): Properly handle all cases in which signs differ. From Karl Heuer.

28 years ago(bsd_sum_file): Remove misleading comment. From Karl Heuer.
Jim Meyering [Tue, 5 Dec 1995 15:53:31 +0000 (15:53 +0000)]
(bsd_sum_file): Remove misleading comment.  From Karl Heuer.

28 years ago.
Jim Meyering [Mon, 4 Dec 1995 16:29:54 +0000 (16:29 +0000)]
.

28 years agoUpdate to look like the one from textutils.
Jim Meyering [Sun, 3 Dec 1995 04:36:25 +0000 (04:36 +0000)]
Update to look like the one from textutils.

28 years agomake like the one in textutils
Jim Meyering [Sat, 2 Dec 1995 04:29:17 +0000 (04:29 +0000)]
make like the one in textutils

28 years ago. TEXTUTILS-1_13g
Jim Meyering [Fri, 1 Dec 1995 07:40:46 +0000 (07:40 +0000)]
.

28 years ago.
Jim Meyering [Fri, 1 Dec 1995 07:38:16 +0000 (07:38 +0000)]
.

28 years ago Exercise bug re comparing `-' and integers.
Jim Meyering [Fri, 1 Dec 1995 07:32:12 +0000 (07:32 +0000)]
 Exercise bug re comparing `-' and integers.

28 years agotreat `-' as if it were zero. Reported by Ross Alexander
Jim Meyering [Fri, 1 Dec 1995 07:03:47 +0000 (07:03 +0000)]
treat `-' as if it were zero.  Reported by Ross Alexander
<r.alexander@auckland.ac.nz>.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 21:00:06 +0000 (21:00 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 20:59:37 +0000 (20:59 +0000)]
.

28 years agostandardizing...
Jim Meyering [Thu, 30 Nov 1995 20:26:33 +0000 (20:26 +0000)]
standardizing...

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 20:08:07 +0000 (20:08 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 20:06:49 +0000 (20:06 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 20:06:11 +0000 (20:06 +0000)]
.

28 years agoLots of new tests -- related to -k2,2 bug and non-functional -b and `b'.
Jim Meyering [Thu, 30 Nov 1995 20:06:06 +0000 (20:06 +0000)]
Lots of new tests -- related to -k2,2 bug and non-functional -b and `b'.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 19:42:58 +0000 (19:42 +0000)]
.

28 years ago. TEXTUTILS-1_13F
Jim Meyering [Thu, 30 Nov 1995 04:34:22 +0000 (04:34 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 04:34:06 +0000 (04:34 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 04:32:31 +0000 (04:32 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 04:28:27 +0000 (04:28 +0000)]
.

28 years ago.
Jim Meyering [Thu, 30 Nov 1995 03:51:59 +0000 (03:51 +0000)]
.

28 years ago(limfield): Remove field_start junk.
Jim Meyering [Wed, 29 Nov 1995 22:51:04 +0000 (22:51 +0000)]
(limfield): Remove field_start junk.
Don't try to trim trailing blanks here -- it's not possible
because we don't know where the field begins.
Properly distinguish between cases where TAB character is specified
and when the default is used.
(trim_trailing_blanks): New function.
(findlines): Call it.
(keycompare): Likewise.

28 years ago[_]: Define it.
Jim Meyering [Wed, 29 Nov 1995 19:47:42 +0000 (19:47 +0000)]
[_]: Define it.

28 years agoMark all translatable strings using po-mode.el.
Jim Meyering [Wed, 29 Nov 1995 19:24:52 +0000 (19:24 +0000)]
Mark all translatable strings using po-mode.el.

28 years agoMark all translatable strings using po-mode.el.
Jim Meyering [Wed, 29 Nov 1995 19:23:30 +0000 (19:23 +0000)]
Mark all translatable strings using po-mode.el.

28 years ago(begfield): Replace unnecessary loop with if-else.
Jim Meyering [Tue, 28 Nov 1995 20:07:17 +0000 (20:07 +0000)]
(begfield): Replace unnecessary loop with if-else.
(limfield): Fix bug that made field specs like -k1.5 return a
pointer into LINE beyond the first field.
Rewrite to properly ignore trailing blanks.
Replace unnecessary loop with if-else.
(main): Don't decrement T2 corresponding to `x' in field specs like -ku.v,w.x.

28 years agoTests for bug reported by Roger Peel" <R.Peel@ee.surrey.ac.uk>
Jim Meyering [Tue, 28 Nov 1995 16:52:49 +0000 (16:52 +0000)]
Tests for bug reported by Roger Peel" <R.Peel@ee.surrey.ac.uk>

28 years ago.
Jim Meyering [Mon, 27 Nov 1995 14:25:39 +0000 (14:25 +0000)]
.

28 years ago(usage): Clarify description of --no-dereferences.
Jim Meyering [Mon, 27 Nov 1995 05:46:24 +0000 (05:46 +0000)]
(usage): Clarify description of --no-dereferences.

28 years agos/non-zero/nonzero/g
Jim Meyering [Mon, 27 Nov 1995 05:34:31 +0000 (05:34 +0000)]
s/non-zero/nonzero/g

28 years ago.
Jim Meyering [Mon, 27 Nov 1995 05:29:44 +0000 (05:29 +0000)]
.

28 years ago.
Jim Meyering [Mon, 27 Nov 1995 03:11:36 +0000 (03:11 +0000)]
.

28 years agos/non-zero/nonzero/g
Jim Meyering [Mon, 27 Nov 1995 03:09:18 +0000 (03:09 +0000)]
s/non-zero/nonzero/g

28 years agoClarify usage. From Karl Berry.
Jim Meyering [Sun, 26 Nov 1995 22:09:43 +0000 (22:09 +0000)]
Clarify usage.  From Karl Berry.

28 years ago.
Jim Meyering [Sun, 26 Nov 1995 21:51:42 +0000 (21:51 +0000)]
.

28 years ago[!UINT_MAX]: Define.
Jim Meyering [Sun, 26 Nov 1995 21:49:53 +0000 (21:49 +0000)]
[!UINT_MAX]: Define.
[!INT_MAX]: Define.
Include xstrtoul.h.
(string_to_number): Remove function.
(check_for_offset): Use xstrtoul instead of string_to_number.
(parse_repeat_count): Likewise.
(parse_patterns): Likewise.
(main): Likewise.

29 years ago.
Jim Meyering [Fri, 24 Nov 1995 05:29:28 +0000 (05:29 +0000)]
.

29 years ago.
Jim Meyering [Thu, 23 Nov 1995 05:17:50 +0000 (05:17 +0000)]
.

29 years ago.
Jim Meyering [Sat, 18 Nov 1995 20:19:17 +0000 (20:19 +0000)]
.

29 years ago.
Jim Meyering [Sat, 18 Nov 1995 18:17:42 +0000 (18:17 +0000)]
.

29 years agoRemove autodep junk.
Jim Meyering [Sat, 18 Nov 1995 06:36:47 +0000 (06:36 +0000)]
Remove autodep junk.

29 years agoIndent cpp directives.
Jim Meyering [Sat, 18 Nov 1995 06:17:07 +0000 (06:17 +0000)]
Indent cpp directives.

29 years ago.
Jim Meyering [Fri, 17 Nov 1995 03:41:20 +0000 (03:41 +0000)]
.

29 years ago.
Jim Meyering [Fri, 17 Nov 1995 03:29:26 +0000 (03:29 +0000)]
.

29 years agoRemove obsolete FIXME.
Jim Meyering [Thu, 16 Nov 1995 07:39:44 +0000 (07:39 +0000)]
Remove obsolete FIXME.

29 years ago.
Jim Meyering [Thu, 16 Nov 1995 07:32:45 +0000 (07:32 +0000)]
.

29 years agoFix up description of md5sum --check.
Jim Meyering [Thu, 16 Nov 1995 06:18:17 +0000 (06:18 +0000)]
Fix up description of md5sum --check.

29 years ago.
Jim Meyering [Wed, 15 Nov 1995 23:41:08 +0000 (23:41 +0000)]
.

29 years ago(*format_address): Tweak dcl.
Jim Meyering [Wed, 15 Nov 1995 22:16:30 +0000 (22:16 +0000)]
(*format_address): Tweak dcl.

29 years ago[__P]: Don't define it here.
Jim Meyering [Wed, 15 Nov 1995 22:12:59 +0000 (22:12 +0000)]
[__P]: Don't define it here.

29 years agoUse __P.
Jim Meyering [Wed, 15 Nov 1995 21:59:55 +0000 (21:59 +0000)]
Use __P.

29 years ago.
Jim Meyering [Wed, 15 Nov 1995 21:59:20 +0000 (21:59 +0000)]
.

29 years ago.
Jim Meyering [Wed, 15 Nov 1995 21:58:58 +0000 (21:58 +0000)]
.

29 years ago.
Jim Meyering [Wed, 15 Nov 1995 21:48:06 +0000 (21:48 +0000)]
.

29 years ago(sort, -g): Document it.
Jim Meyering [Wed, 15 Nov 1995 21:47:44 +0000 (21:47 +0000)]
(sort, -g): Document it.
(join, new `0' format): Likewise.

29 years agoAdd support for sorting numbers in scientific notation.
Jim Meyering [Wed, 15 Nov 1995 21:42:47 +0000 (21:42 +0000)]
Add support for sorting numbers in scientific notation.
Include xstrtod.h.
(struct keyfield): Add field: general_numeric.
(usage): Describe -g option.
(general_numcompare): New function.
(keycompare): Use new comparison function when general_numeric
flag is set.
(set_ordering): Honor `g' flag.
(main): Initialize and use new field.
From Marcus Daniels <marcus@sysc.pdx.edu>.

29 years agoBreak long lines.
Jim Meyering [Wed, 15 Nov 1995 15:45:28 +0000 (15:45 +0000)]
Break long lines.

29 years agoIndent.
Jim Meyering [Wed, 15 Nov 1995 15:04:51 +0000 (15:04 +0000)]
Indent.

29 years ago.
Jim Meyering [Wed, 15 Nov 1995 05:40:11 +0000 (05:40 +0000)]
.

29 years ago(cleanup): Don't exit.
Jim Meyering [Wed, 15 Nov 1995 05:39:58 +0000 (05:39 +0000)]
(cleanup): Don't exit.
(cleanup_fatal): New function.  Call cleanup, then exit.
(sighandler): New function.
(cleanup_fatal): Renamed from cleanup.  Call cleanup, then exit.
Update callers.
(tac_stdin): Set up sighandler as signal handler, not `cleanup'.

29 years ago(cleanup): Don't exit.
Jim Meyering [Wed, 15 Nov 1995 05:32:28 +0000 (05:32 +0000)]
(cleanup): Don't exit.
(cleanup_fatal): New functoin.  Call cleanup, then exit.
(interrupt_handler): Rewrite to reset default signal handler
then repost caught signal.
(xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
process_line_count, process_regexp, create_output_file, close_output_file):
Call cleanup_fatal, not cleanup.
Add const attribute to lots of parameters.

29 years ago.
Jim Meyering [Sat, 11 Nov 1995 22:09:47 +0000 (22:09 +0000)]
.

29 years ago(skip): Cast fseek's offset argument to `long'.
Jim Meyering [Sat, 11 Nov 1995 22:08:16 +0000 (22:08 +0000)]
(skip): Cast fseek's offset argument to `long'.
Erik Bennett <bennett@cvo.oneworld.com> reported that this is
necessary on BSDI systems.  And if offset doesn't fit in a long,
then try using lseek instead.

29 years ago.
Jim Meyering [Sat, 11 Nov 1995 21:46:41 +0000 (21:46 +0000)]
.

29 years ago(xmalloc): Declare static.
Jim Meyering [Sat, 11 Nov 1995 21:46:32 +0000 (21:46 +0000)]
(xmalloc): Declare static.
(xrealloc): Likewise.

29 years ago.
Jim Meyering [Sat, 11 Nov 1995 14:36:06 +0000 (14:36 +0000)]
.

29 years ago(cleanup): Add signal number parameter.
Jim Meyering [Sat, 11 Nov 1995 14:35:27 +0000 (14:35 +0000)]
(cleanup): Add signal number parameter.
Update callers.

29 years ago.
Jim Meyering [Sat, 11 Nov 1995 14:22:33 +0000 (14:22 +0000)]
.

29 years ago.
Jim Meyering [Sat, 11 Nov 1995 14:21:24 +0000 (14:21 +0000)]
.

29 years ago(main): Don't die when dev/ino of input and output are
Jim Meyering [Sat, 11 Nov 1995 14:21:15 +0000 (14:21 +0000)]
(main): Don't die when dev/ino of input and output are
the same and the file descriptors correspond to stdin and stdout.
This is necessary on at least Digital UNIX (aka OSF1) 3.2C.
Otherwise, running `cat << X > $$' would fail with `cat: -: input
file is output file'.  From Jarkko Hietaniemi <jhi@epsilon.hut.fi>.

29 years agoAdd __P in dcl of format_address function.
Jim Meyering [Sat, 11 Nov 1995 03:28:38 +0000 (03:28 +0000)]
Add __P in dcl of format_address function.

29 years ago(usage): Clarify meaning of --spaces.
Jim Meyering [Sat, 11 Nov 1995 03:27:15 +0000 (03:27 +0000)]
(usage): Clarify meaning of --spaces.

29 years agoDon't include error.h here.
Jim Meyering [Fri, 10 Nov 1995 15:20:00 +0000 (15:20 +0000)]
Don't include error.h here.

29 years ago.
Jim Meyering [Fri, 10 Nov 1995 15:15:38 +0000 (15:15 +0000)]
.

29 years agoProtect prototyped forward dcls with __P.
Jim Meyering [Fri, 10 Nov 1995 14:56:21 +0000 (14:56 +0000)]
Protect prototyped forward dcls with __P.

29 years ago(parse_ls_color): Use strcpy to initialize 3-character array.
Jim Meyering [Fri, 10 Nov 1995 14:54:08 +0000 (14:54 +0000)]
(parse_ls_color): Use strcpy to initialize 3-character array.
Automatic aggregate initialization isn't portable.

29 years agoRemove fwd dcls.
Jim Meyering [Fri, 10 Nov 1995 14:48:57 +0000 (14:48 +0000)]
Remove fwd dcls.

29 years agoDon't protoize dcl of basename.
Jim Meyering [Fri, 10 Nov 1995 14:48:03 +0000 (14:48 +0000)]
Don't protoize dcl of basename.

29 years agoDon't protoize dcl of basename.
Jim Meyering [Fri, 10 Nov 1995 14:47:09 +0000 (14:47 +0000)]
Don't protoize dcl of basename.

29 years agoDon't protoize dcls of getpwnam and getgrnam.
Jim Meyering [Fri, 10 Nov 1995 14:45:31 +0000 (14:45 +0000)]
Don't protoize dcls of getpwnam and getgrnam.

29 years agoRemove bogus __P junk on xstat dcl.
Jim Meyering [Fri, 10 Nov 1995 14:44:37 +0000 (14:44 +0000)]
Remove bogus __P junk on xstat dcl.