platform/upstream/coreutils.git
28 years ago(main): New options --human-readable (-h) and --megabytes (-m).
Jim Meyering [Thu, 1 Feb 1996 05:30:14 +0000 (05:30 +0000)]
(main): New options --human-readable (-h) and --megabytes (-m).
(human_readable_1k_blocks): New function.
(print_header): Honor new options.
(show_dev): Honor new options.
Add ifdef'd-out code to avoid printing lines for mount points that
match ^/auto/.* and ^/tmp_mnt.*.  Rather than hard-coding those
two prefixes, the code should allow the user to specify a regular
expression.  From Larry McVoy (lm@sgi.com).

(human_readable_1k_blocks): Likewise
(usage): Update usage message to reflect additions.

28 years ago.
Jim Meyering [Thu, 1 Feb 1996 05:29:26 +0000 (05:29 +0000)]
.

28 years ago.
Jim Meyering [Thu, 1 Feb 1996 05:26:35 +0000 (05:26 +0000)]
.

28 years ago(dump_remainder): Flush stdout when tailing-forever on multiple files.
Jim Meyering [Thu, 1 Feb 1996 05:25:54 +0000 (05:25 +0000)]
(dump_remainder): Flush stdout when tailing-forever on multiple files.
From Carlos Canau <Carlos.Canau@relay.puug.pt>.

28 years ago.
Jim Meyering [Thu, 1 Feb 1996 05:22:08 +0000 (05:22 +0000)]
.

28 years ago.
Jim Meyering [Thu, 1 Feb 1996 04:22:48 +0000 (04:22 +0000)]
.

28 years agoRemove comma after last item in enum.
Jim Meyering [Thu, 1 Feb 1996 04:13:26 +0000 (04:13 +0000)]
Remove comma after last item in enum.
(human_readable): Fix off-by-one error that converted
1024*1024 to 1024K rather than 1G.  Describe the function.

28 years ago(skip): Change type of parameter #5 from char* to unsigned char* to match
Jim Meyering [Thu, 1 Feb 1996 03:50:06 +0000 (03:50 +0000)]
(skip): Change type of parameter #5 from char* to unsigned char* to match
type of argument.
(copy): Cast first arg in memset call to char* to avoid warnings from
SunOS's acc.
(copy_simple): Likewise.

28 years ago(getdate.c, posixtm.c): Add rules for building these.
Jim Meyering [Thu, 1 Feb 1996 03:43:49 +0000 (03:43 +0000)]
(getdate.c, posixtm.c): Add rules for building these.

28 years ago(DIST_OTHER): Add perm.texi and getdate.texi. Remove mdate-sh.
Jim Meyering [Thu, 1 Feb 1996 03:42:56 +0000 (03:42 +0000)]
(DIST_OTHER): Add perm.texi and getdate.texi.  Remove mdate-sh.

28 years ago.
Jim Meyering [Wed, 31 Jan 1996 17:01:05 +0000 (17:01 +0000)]
.

28 years ago.
Jim Meyering [Wed, 31 Jan 1996 14:53:02 +0000 (14:53 +0000)]
.

28 years ago.
Jim Meyering [Tue, 30 Jan 1996 01:27:32 +0000 (01:27 +0000)]
.

28 years ago.
Jim Meyering [Fri, 26 Jan 1996 05:25:09 +0000 (05:25 +0000)]
.

28 years ago.
Jim Meyering [Thu, 25 Jan 1996 12:00:18 +0000 (12:00 +0000)]
.

28 years agoTweak usage.
Jim Meyering [Sat, 20 Jan 1996 14:27:56 +0000 (14:27 +0000)]
Tweak usage.

28 years ago(main): New options --human-readable (-h) and --megabytes (-m).
Jim Meyering [Sat, 20 Jan 1996 14:26:04 +0000 (14:26 +0000)]
(main): New options --human-readable (-h) and --megabytes (-m).
(human_readable): New function.
From Larry McVoy (lm@sgi.com).

28 years ago.
Jim Meyering [Sat, 20 Jan 1996 12:41:13 +0000 (12:41 +0000)]
.

28 years ago.
Jim Meyering [Sat, 20 Jan 1996 12:37:23 +0000 (12:37 +0000)]
.

28 years ago(usage): Copy backup/suffix stuff from ln.c.
Jim Meyering [Sat, 20 Jan 1996 12:37:12 +0000 (12:37 +0000)]
(usage): Copy backup/suffix stuff from ln.c.
(main): Handle 'S' in getopt switch.

28 years ago(BUILT_SOURCES): Set to posixtm.c getdate.c.
Jim Meyering [Sat, 20 Jan 1996 12:35:06 +0000 (12:35 +0000)]
(BUILT_SOURCES): Set to posixtm.c getdate.c.

28 years ago.
Jim Meyering [Sat, 20 Jan 1996 12:33:59 +0000 (12:33 +0000)]
.

28 years ago.
Jim Meyering [Sat, 20 Jan 1996 12:22:38 +0000 (12:22 +0000)]
.

28 years agoYear is 6th field, not 7th.
Jim Meyering [Sat, 20 Jan 1996 12:18:50 +0000 (12:18 +0000)]
Year is 6th field, not 7th.

28 years ago.
Jim Meyering [Sat, 20 Jan 1996 12:11:48 +0000 (12:11 +0000)]
.

28 years ago.
Jim Meyering [Fri, 19 Jan 1996 17:39:42 +0000 (17:39 +0000)]
.

28 years ago(copy_files): Accept backup options just as cp, ln, and
Jim Meyering [Fri, 19 Jan 1996 17:39:06 +0000 (17:39 +0000)]
(copy_files): Accept backup options just as cp, ln, and
mv do: --backup (-b).  From Marty Leisner <leisner@sdsp.mc.xerox.c>.

28 years agoProtoize.
Jim Meyering [Fri, 19 Jan 1996 16:05:23 +0000 (16:05 +0000)]
Protoize.

28 years ago.
Jim Meyering [Fri, 19 Jan 1996 16:00:29 +0000 (16:00 +0000)]
.

28 years ago(argdecode): Declare parameter const.
Jim Meyering [Wed, 17 Jan 1996 17:50:08 +0000 (17:50 +0000)]
(argdecode): Declare parameter const.

28 years ago(advance): Protoize function.
Jim Meyering [Wed, 17 Jan 1996 17:46:12 +0000 (17:46 +0000)]
(advance): Protoize function.

28 years agoBreak some long lines.
Jim Meyering [Wed, 17 Jan 1996 17:44:22 +0000 (17:44 +0000)]
Break some long lines.
Add const attribute to a few parameters.

28 years ago(integer_arg): Use xstrtol instead of open-coding this.
Jim Meyering [Wed, 17 Jan 1996 17:41:00 +0000 (17:41 +0000)]
(integer_arg): Use xstrtol instead of open-coding this.

28 years ago(.su_SOURCES): Add xstrtol.c.
Jim Meyering [Wed, 17 Jan 1996 17:38:27 +0000 (17:38 +0000)]
(.su_SOURCES): Add xstrtol.c.
(HEADERS): Add xstrtol.h.

28 years ago(visible): Change parameter type to unsigned int from unsigned char.
Jim Meyering [Wed, 17 Jan 1996 17:20:41 +0000 (17:20 +0000)]
(visible): Change parameter type to unsigned int from unsigned char.

28 years agoProtoize and __P-protect forward dcls.
Jim Meyering [Wed, 17 Jan 1996 17:19:07 +0000 (17:19 +0000)]
Protoize and __P-protect forward dcls.

28 years agoIndent cpp directives.
Jim Meyering [Sun, 14 Jan 1996 04:31:59 +0000 (04:31 +0000)]
Indent cpp directives.

28 years ago.
Jim Meyering [Sun, 14 Jan 1996 04:19:34 +0000 (04:19 +0000)]
.

28 years agoInclude config.h.
Jim Meyering [Sun, 14 Jan 1996 04:18:48 +0000 (04:18 +0000)]
Include config.h.

28 years ago.
Jim Meyering [Mon, 8 Jan 1996 06:15:59 +0000 (06:15 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Jan 1996 06:15:20 +0000 (06:15 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Jan 1996 04:54:29 +0000 (04:54 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Jan 1996 04:53:30 +0000 (04:53 +0000)]
.

28 years ago(print_element): Change type of argument from char
Jim Meyering [Sun, 7 Jan 1996 04:08:44 +0000 (04:08 +0000)]
(print_element): Change type of argument from char
to int to avoid potential promotion problem.

28 years ago(print_esc_char): Change type of argument from char to int to avoid
Jim Meyering [Sun, 7 Jan 1996 04:06:41 +0000 (04:06 +0000)]
(print_esc_char): Change type of argument from char to int to avoid
potential promotion problem.

28 years agoFix typo in __P use.
Jim Meyering [Sun, 7 Jan 1996 04:04:48 +0000 (04:04 +0000)]
Fix typo in __P use.

28 years ago.
Jim Meyering [Sat, 6 Jan 1996 11:57:17 +0000 (11:57 +0000)]
.

28 years agoProtoize and __P-protect forward dcls.
Jim Meyering [Sat, 6 Jan 1996 11:44:05 +0000 (11:44 +0000)]
Protoize and __P-protect forward dcls.

28 years agoDefine WHO and include new file, who-users.c.
Jim Meyering [Sat, 6 Jan 1996 11:17:50 +0000 (11:17 +0000)]
Define WHO and include new file, who-users.c.

28 years ago.
Jim Meyering [Sat, 6 Jan 1996 11:16:08 +0000 (11:16 +0000)]
.

28 years agorename from who.c
Jim Meyering [Sat, 6 Jan 1996 11:13:11 +0000 (11:13 +0000)]
rename from who.c

28 years agoRemove NGROUPS_MAX junk. It wasn't being used.
Jim Meyering [Sat, 6 Jan 1996 06:10:08 +0000 (06:10 +0000)]
Remove NGROUPS_MAX junk.  It wasn't being used.

28 years ago(putenv): Declare.
Jim Meyering [Sat, 6 Jan 1996 06:07:23 +0000 (06:07 +0000)]
(putenv): Declare.
(universal_time): Remove.
(main): If -u is given, set TZ to "UTC0"; this causes date to use
UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
(show_date): Just use localtime and a single format, since TZ will
be set properly if -u is given.  From Paul Eggert.

28 years agoRemove no-longer-used NGROUPS_MAX cpp macros.
Jim Meyering [Sat, 6 Jan 1996 06:04:09 +0000 (06:04 +0000)]
Remove no-longer-used NGROUPS_MAX cpp macros.
(print_group_list) [HAVE_GETGROUPS]: Reorganize to use getgroups (0, NULL)
to compute number of groups at run time rather than relying on NGROUPS_MAX
at compile time.
(print_full_info) [HAVE_GETGROUPS]: Likewise.
Suggestion from Roland McGrath.

28 years ago.
Jim Meyering [Sat, 6 Jan 1996 05:28:49 +0000 (05:28 +0000)]
.

28 years ago.
Jim Meyering [Sat, 6 Jan 1996 00:30:45 +0000 (00:30 +0000)]
.

28 years ago. TEXTUTILS-1_13k
Jim Meyering [Fri, 5 Jan 1996 04:56:53 +0000 (04:56 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Jan 1996 02:46:41 +0000 (02:46 +0000)]
.

28 years agoInclude rx.h after limit.h to avoid warning about
Jim Meyering [Fri, 5 Jan 1996 02:44:42 +0000 (02:44 +0000)]
Include rx.h after limit.h to avoid warning about
redeclaration of RE_DUP_MAX in limit.h.  rx.h protects its
definition.  From Kaveh Ghazi.

28 years ago.
Jim Meyering [Fri, 5 Jan 1996 02:37:28 +0000 (02:37 +0000)]
.

28 years ago[SYNTAX]: Rename from SYNTAX_TABLE.
Jim Meyering [Fri, 5 Jan 1996 02:35:39 +0000 (02:35 +0000)]
[SYNTAX]: Rename from SYNTAX_TABLE.
[SYNTAX_TABLE]: Remove extern dcl or re_syntax_table.
(RE_SEARCH_2_FN): Cast string1 and string2 to avoid pointer type
mismatch errors from e.g. SunOS's /bin/cc.
Reported by Kaveh Ghazi.

28 years ago.
Jim Meyering [Thu, 4 Jan 1996 12:48:25 +0000 (12:48 +0000)]
.

28 years ago. TEXTUTILS-1_13j
Jim Meyering [Thu, 4 Jan 1996 05:35:34 +0000 (05:35 +0000)]
.

28 years ago(usage): Tweak wording in --help output.
Jim Meyering [Thu, 4 Jan 1996 05:31:58 +0000 (05:31 +0000)]
(usage): Tweak wording in --help output.

28 years agoUse `$year', not `year' as expr arg.
Jim Meyering [Thu, 4 Jan 1996 05:29:09 +0000 (05:29 +0000)]
Use `$year', not `year' as expr arg.

28 years agoupdate from gettext
Jim Meyering [Thu, 4 Jan 1996 05:24:48 +0000 (05:24 +0000)]
update from gettext

28 years ago.
Jim Meyering [Wed, 3 Jan 1996 18:20:16 +0000 (18:20 +0000)]
.

28 years ago.
Jim Meyering [Wed, 3 Jan 1996 06:04:46 +0000 (06:04 +0000)]
.

28 years agoFix comments.
Jim Meyering [Wed, 3 Jan 1996 05:55:26 +0000 (05:55 +0000)]
Fix comments.

28 years ago.
Jim Meyering [Wed, 3 Jan 1996 05:51:15 +0000 (05:51 +0000)]
.

28 years ago.
Jim Meyering [Wed, 3 Jan 1996 05:49:22 +0000 (05:49 +0000)]
.

28 years ago.
Jim Meyering [Tue, 2 Jan 1996 06:10:49 +0000 (06:10 +0000)]
.

28 years ago(keycompare): Rewrite cases handling -i and -if to fix bug whereby
Jim Meyering [Tue, 2 Jan 1996 06:10:39 +0000 (06:10 +0000)]
(keycompare): Rewrite cases handling -i and -if to fix bug whereby
non-ascii characters (supposed to be ignored with -i) were treated
as significant.  Reported by Carl Johnson <carlj@cjlinux.home.org>.

28 years ago14b: Just like 14a, but add -f.
Jim Meyering [Tue, 2 Jan 1996 00:15:46 +0000 (00:15 +0000)]
14b: Just like 14a, but add -f.

28 years agoCorrect 14a per manual.
Jim Meyering [Mon, 1 Jan 1996 23:55:02 +0000 (23:55 +0000)]
Correct 14a per manual.

28 years ago.
Jim Meyering [Mon, 1 Jan 1996 22:33:52 +0000 (22:33 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Dec 1995 06:46:46 +0000 (06:46 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Dec 1995 04:12:10 +0000 (04:12 +0000)]
.

28 years ago(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
Jim Meyering [Sun, 31 Dec 1995 04:10:13 +0000 (04:10 +0000)]
(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
From Andreas Schwab.

28 years ago.
Jim Meyering [Tue, 26 Dec 1995 05:50:19 +0000 (05:50 +0000)]
.

28 years ago.
Jim Meyering [Sat, 23 Dec 1995 18:19:26 +0000 (18:19 +0000)]
.

28 years ago.
Jim Meyering [Sat, 23 Dec 1995 17:39:21 +0000 (17:39 +0000)]
.

28 years ago(decode_switches): Make -o a synonym for -lG for compatibility
Jim Meyering [Sat, 23 Dec 1995 17:38:08 +0000 (17:38 +0000)]
(decode_switches): Make -o a synonym for -lG for compatibility
with most other versions of ls.  Reported by Karl Berry.
(usage): Update.

28 years ago. TEXTUTILS-1_13i
Jim Meyering [Sat, 23 Dec 1995 16:39:20 +0000 (16:39 +0000)]
.

28 years ago(usage): Align text in -n line.
Jim Meyering [Fri, 22 Dec 1995 15:30:31 +0000 (15:30 +0000)]
(usage): Align text in -n line.

28 years ago.
Jim Meyering [Fri, 22 Dec 1995 06:51:26 +0000 (06:51 +0000)]
.

28 years ago(cleanup): New function -- broken out from quit.
Jim Meyering [Fri, 22 Dec 1995 06:49:10 +0000 (06:49 +0000)]
(cleanup): New function -- broken out from quit.
(interrupt_handler): Rewrite to reset default signal handler,
call cleanup, then repost caught signal.

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

28 years ago.
Jim Meyering [Fri, 22 Dec 1995 05:31:58 +0000 (05:31 +0000)]
.

28 years agoInclude argmatch.h.
Jim Meyering [Fri, 22 Dec 1995 05:31:17 +0000 (05:31 +0000)]
Include argmatch.h.

28 years ago(main): Accept new option, --sparse={never,auto,always},
Jim Meyering [Fri, 22 Dec 1995 05:30:48 +0000 (05:30 +0000)]
(main): Accept new option, --sparse={never,auto,always},
to control creation of sparse files.
(copy_reg): Set local, make_holes, from global flag_sparse.
Include argmatch.h.

28 years ago(argmatch): Add const attribute to parameters.
Jim Meyering [Fri, 22 Dec 1995 05:17:31 +0000 (05:17 +0000)]
(argmatch): Add const attribute to parameters.
(invalid_arg): Add const attribute to parameters.

28 years ago.
Jim Meyering [Fri, 22 Dec 1995 05:16:11 +0000 (05:16 +0000)]
.

28 years ago.
Jim Meyering [Fri, 22 Dec 1995 05:15:35 +0000 (05:15 +0000)]
.

28 years ago(HEADERS): Add argmatch.h.
Jim Meyering [Thu, 21 Dec 1995 23:06:40 +0000 (23:06 +0000)]
(HEADERS): Add argmatch.h.

28 years ago.
Jim Meyering [Thu, 21 Dec 1995 23:05:56 +0000 (23:05 +0000)]
.

28 years ago.
Jim Meyering [Wed, 20 Dec 1995 05:47:35 +0000 (05:47 +0000)]
.

28 years ago. FILEUTILS-3_12g
Jim Meyering [Tue, 19 Dec 1995 04:31:06 +0000 (04:31 +0000)]
.

28 years ago[SYMBOLIC_SPACE_STRING]: New macro.
Jim Meyering [Tue, 19 Dec 1995 04:30:32 +0000 (04:30 +0000)]
[SYMBOLIC_SPACE_STRING]: New macro.
(do_link): Use it instead of open-coded #ifdef.
For --verbose, say `create link DEST to SRC' instead of ambiguous
(or inconsistent with cp -v and mv -v) `SRC -> DEST.'

28 years ago.
Jim Meyering [Tue, 19 Dec 1995 04:25:24 +0000 (04:25 +0000)]
.