Commit Graph

723 Commits

Author SHA1 Message Date
Jim Meyering 08d800d44e (advance): Protoize function. 1996-01-17 17:46:12 +00:00
Jim Meyering e23e3f656a Break some long lines.
Add const attribute to a few parameters.
1996-01-17 17:44:22 +00:00
Jim Meyering 4ad4b8aaec (integer_arg): Use xstrtol instead of open-coding this. 1996-01-17 17:41:00 +00:00
Jim Meyering 2a0d3143dd (visible): Change parameter type to unsigned int from unsigned char. 1996-01-17 17:20:41 +00:00
Jim Meyering 6e867c19c9 Protoize and __P-protect forward dcls. 1996-01-17 17:19:07 +00:00
Jim Meyering c78152220a Indent cpp directives. 1996-01-14 04:31:59 +00:00
Jim Meyering be2519d4dd . 1996-01-14 04:19:34 +00:00
Jim Meyering 9800c1597f Include config.h. 1996-01-14 04:18:48 +00:00
Jim Meyering 13751495a1 (print_element): Change type of argument from char
to int to avoid potential promotion problem.
1996-01-07 04:08:44 +00:00
Jim Meyering 1d2f218bff (print_esc_char): Change type of argument from char to int to avoid
potential promotion problem.
1996-01-07 04:06:41 +00:00
Jim Meyering 00b953713e Fix typo in __P use. 1996-01-07 04:04:48 +00:00
Jim Meyering 53398947a1 Protoize and __P-protect forward dcls. 1996-01-06 11:44:05 +00:00
Jim Meyering 5e14cce7ae Define WHO and include new file, who-users.c. 1996-01-06 11:17:50 +00:00
Jim Meyering 27276e481d . 1996-01-06 11:16:08 +00:00
Jim Meyering 7949927db6 rename from who.c 1996-01-06 11:13:11 +00:00
Jim Meyering 634853cee6 Remove NGROUPS_MAX junk. It wasn't being used. 1996-01-06 06:10:08 +00:00
Jim Meyering 0f100b0d3f (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.
1996-01-06 06:07:23 +00:00
Jim Meyering 83adf65c37 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.
1996-01-06 06:04:09 +00:00
Jim Meyering aff66fa170 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.
1996-01-05 02:44:42 +00:00
Jim Meyering 981d081027 (usage): Tweak wording in --help output. 1996-01-04 05:31:58 +00:00
Jim Meyering 360b2870d8 (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>.
1996-01-02 06:10:39 +00:00
Jim Meyering a7190a7381 (extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
From Andreas Schwab.
1995-12-31 04:10:13 +00:00
Jim Meyering c22b040b21 (decode_switches): Make -o a synonym for -lG for compatibility
with most other versions of ls.  Reported by Karl Berry.
(usage): Update.
1995-12-23 17:38:08 +00:00
Jim Meyering d5f4d5f22e (usage): Align text in -n line. 1995-12-22 15:30:31 +00:00
Jim Meyering 05d30f2715 (cleanup): New function -- broken out from quit.
(interrupt_handler): Rewrite to reset default signal handler,
call cleanup, then repost caught signal.
1995-12-22 06:49:10 +00:00
Jim Meyering b808e70940 Include argmatch.h. 1995-12-22 05:31:17 +00:00
Jim Meyering 654ad9e596 (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.
1995-12-22 05:30:48 +00:00
Jim Meyering e49897affc [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.'
1995-12-19 04:30:32 +00:00
Jim Meyering 43cdd09d2d (main): Use xstrtol instead of atoi. 1995-12-15 03:34:34 +00:00
Jim Meyering 208fa17ad0 (main): Use xstrtol instead of atoi. 1995-12-15 03:20:40 +00:00
Jim Meyering 5a1b7d267a (main): Use xstrtol instead of atoi.
Rename misleading --first-page=N option to --starting-line-number=N.
(usage): Update.
1995-12-15 03:20:18 +00:00
Jim Meyering 1bcceb8ba4 (main): Use xstrtol instead of atoi.
(fold_file): Make a couple locals `int', not size_t, and cast
fwrite's arg3 to size_t.
1995-12-15 03:19:51 +00:00
Jim Meyering 1f88c647cd [!WITH_REGEX]: Include rx.h. 1995-12-06 23:39:26 +00:00
Jim Meyering e625640bd0 (main): Diagnose improper form of arguments to -k, then fail. 1995-12-05 23:50:43 +00:00
Jim Meyering 5c3c1931dd (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>.
1995-12-05 23:39:06 +00:00
Jim Meyering 5cf455d736 (numcompare): Properly handle all cases in which signs differ. From Karl Heuer. 1995-12-05 17:53:39 +00:00
Jim Meyering 8ef322d66f (bsd_sum_file): Remove misleading comment. From Karl Heuer. 1995-12-05 15:53:31 +00:00
Jim Meyering 74b4707ea6 treat `-' as if it were zero. Reported by Ross Alexander
<r.alexander@auckland.ac.nz>.
1995-12-01 07:03:47 +00:00
Jim Meyering 2f077ef41f (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.
1995-11-29 22:51:04 +00:00
Jim Meyering cfc48b6ee9 [_]: Define it. 1995-11-29 19:47:42 +00:00
Jim Meyering 073c4cb543 Mark all translatable strings using po-mode.el. 1995-11-29 19:24:52 +00:00
Jim Meyering 8bacb0720c Mark all translatable strings using po-mode.el. 1995-11-29 19:23:30 +00:00
Jim Meyering da8c36f53f (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.
1995-11-28 20:07:17 +00:00
Jim Meyering 18573f3eb2 (usage): Clarify description of --no-dereferences. 1995-11-27 05:46:24 +00:00
Jim Meyering 57ec0f45c9 s/non-zero/nonzero/g 1995-11-27 05:34:31 +00:00
Jim Meyering 7956c15081 s/non-zero/nonzero/g 1995-11-27 03:09:18 +00:00
Jim Meyering 0402200daf Clarify usage. From Karl Berry. 1995-11-26 22:09:43 +00:00
Jim Meyering 7b9ad5a22f [!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.
1995-11-26 21:49:53 +00:00
Jim Meyering c54a604289 Indent cpp directives. 1995-11-18 06:17:07 +00:00
Jim Meyering 4d4a6210f7 Remove obsolete FIXME. 1995-11-16 07:39:44 +00:00