Jim Meyering [Thu, 1 Feb 1996 05:44:59 +0000 (05:44 +0000)]
(main): Accept new option, --rfc-822 (-R).
(show_date): Use RFC822-mandated strftime format.
From H. Peter Anvin (hpa@storm.net).
(usage): Add a line describing the new option.
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.
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.
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.
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.
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.
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>.
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.
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.