Paul Eggert [Tue, 5 Apr 2005 22:21:14 +0000 (22:21 +0000)]
(.x.1): Remove "COMMAND.td/" from examples.
Paul Eggert [Tue, 5 Apr 2005 22:20:31 +0000 (22:20 +0000)]
Add examples to cat, chown, chgrp, basename, dirname. Change ln examples
to match that format.
Paul Eggert [Tue, 5 Apr 2005 22:20:05 +0000 (22:20 +0000)]
(cat invocation, chown invocation)
(chgrp invocation, basename invocation, dirname invocation):
Add examples, which are copies of the examples newly added
to the usage messages.
(ln invocation): Use same format as other examples above,
for consistency.
Jim Meyering [Tue, 5 Apr 2005 11:53:59 +0000 (11:53 +0000)]
*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 11:53:47 +0000 (11:53 +0000)]
(usage): Mention that some shells provide a built-in function by the same name.
Jim Meyering [Tue, 5 Apr 2005 11:53:38 +0000 (11:53 +0000)]
(usage): Mention that some shells provide a
built-in function by the same name.
Jim Meyering [Tue, 5 Apr 2005 11:45:49 +0000 (11:45 +0000)]
.
Jim Meyering [Tue, 5 Apr 2005 11:45:06 +0000 (11:45 +0000)]
*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 11:44:54 +0000 (11:44 +0000)]
(SUBDIRS): Add tee.
Jim Meyering [Tue, 5 Apr 2005 11:44:32 +0000 (11:44 +0000)]
(AC_CONFIG_FILES): Add tests/tee/Makefile.
Jim Meyering [Tue, 5 Apr 2005 11:43:03 +0000 (11:43 +0000)]
.
Jim Meyering [Tue, 5 Apr 2005 11:40:53 +0000 (11:40 +0000)]
(tee): When closing files, do not close stdout,
leave this job to close_stdout() instead.
From Dmitry V. Levin.
Jim Meyering [Tue, 5 Apr 2005 08:56:15 +0000 (08:56 +0000)]
*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 08:56:04 +0000 (08:56 +0000)]
Add Kinyarwanda (rw).
Jim Meyering [Tue, 5 Apr 2005 08:55:06 +0000 (08:55 +0000)]
version: 5.3.0
Jim Meyering [Mon, 4 Apr 2005 22:30:57 +0000 (22:30 +0000)]
(usage): Move USAGE_BUILTIN_WARNING to end of --help output.
Jim Meyering [Mon, 4 Apr 2005 22:30:22 +0000 (22:30 +0000)]
(USAGE_BUILTIN_WARNING): remove trailing newline
Jim Meyering [Mon, 4 Apr 2005 22:29:37 +0000 (22:29 +0000)]
.
Jim Meyering [Mon, 4 Apr 2005 22:00:11 +0000 (22:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 21:59:58 +0000 (21:59 +0000)]
Remove `DESCRIPTION' section, now that --help includes it.
Jim Meyering [Mon, 4 Apr 2005 21:58:09 +0000 (21:58 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 21:57:45 +0000 (21:57 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.
Jim Meyering [Mon, 4 Apr 2005 21:57:32 +0000 (21:57 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 21:57:04 +0000 (21:57 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.
Jim Meyering [Mon, 4 Apr 2005 21:56:01 +0000 (21:56 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.
Jim Meyering [Mon, 4 Apr 2005 21:55:06 +0000 (21:55 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.
Jim Meyering [Mon, 4 Apr 2005 21:51:30 +0000 (21:51 +0000)]
(USAGE_BUILTIN_WARNING): New macro.
Paul Eggert [Mon, 4 Apr 2005 19:52:07 +0000 (19:52 +0000)]
getdate patch for empty string near dst changes.
Paul Eggert [Mon, 4 Apr 2005 19:51:49 +0000 (19:51 +0000)]
(parser_control): rels_seen is now a boolean, not a
count, since there's no maximum. All uses changed.
Add member dsts_seen.
(local_zone): Accumulate dsts_seen rather than relying on tm_isdst
not being INT_MAX.
(get_date): Initialize dsts_seen, and check that it doesn't go over 1.
Use pc_rels_seen to decide whther a date is absolute.
(number): Don't overwrite year.
(get_date): Initialize pc.year.digits to 0, not 4, to enable above check.
Jim Meyering [Sun, 3 Apr 2005 13:13:06 +0000 (13:13 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Apr 2005 13:12:53 +0000 (13:12 +0000)]
(main): Fix off-by-one error.
pr -$(perl -e 'print "0"x63 . 1') would write one byte beyond the
end of a malloc'd buffer.
Jim Meyering [Fri, 1 Apr 2005 22:29:15 +0000 (22:29 +0000)]
Correct indentation of the two just-split lines.
Jim Meyering [Fri, 1 Apr 2005 20:06:22 +0000 (20:06 +0000)]
split two longer-than-80-column lines
Jim Meyering [Fri, 1 Apr 2005 20:05:37 +0000 (20:05 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 20:05:33 +0000 (20:05 +0000)]
(main): Free column_count_string when done with it.
Jim Meyering [Fri, 1 Apr 2005 07:44:41 +0000 (07:44 +0000)]
.
Jim Meyering [Fri, 1 Apr 2005 07:40:44 +0000 (07:40 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 07:40:33 +0000 (07:40 +0000)]
Don't let pr treat +1:-1 like +1:
18446744073709551615.
(neg-page): Add a test for this.
Jim Meyering [Fri, 1 Apr 2005 07:39:49 +0000 (07:39 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 07:39:45 +0000 (07:39 +0000)]
Don't let pr treat +1:-1 like +1:
18446744073709551615.
(strtoumax): Remove declaration.
(first_last_page): Use xstrtoumax in place of strtoumax,
so we don't interpret a negative page number (e.g., in an option
like --pages=1:-1) as valid.
Paul Eggert [Wed, 30 Mar 2005 07:41:47 +0000 (07:41 +0000)]
(gl_READUTMP): Restore the requirement for gl_FUNC_FREE.
Paul Eggert [Wed, 30 Mar 2005 07:41:18 +0000 (07:41 +0000)]
* readutmp.m4 (gl_READUTMP): Restore requirement for gl_FUNC_FREE.
Paul Eggert [Wed, 30 Mar 2005 07:40:17 +0000 (07:40 +0000)]
* readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume
utmp file is a regular file.
Paul Eggert [Wed, 30 Mar 2005 07:39:33 +0000 (07:39 +0000)]
(read_utmp) [!defied UTMP_NAME_FUNCTION]: Add support for options.
Don't assume the file is a regular file.
Paul Eggert [Wed, 30 Mar 2005 05:25:10 +0000 (05:25 +0000)]
who, pinky, uptime, and users now check for valid PIDs in supposed login
sessions.
Paul Eggert [Wed, 30 Mar 2005 05:24:05 +0000 (05:24 +0000)]
(who): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero or two arguments.
Omit duplicate code in 2-arg case.
(UT_PID): Moved to ../lib/readutmp.h.
Paul Eggert [Wed, 30 Mar 2005 05:23:17 +0000 (05:23 +0000)]
(users): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
Paul Eggert [Wed, 30 Mar 2005 05:22:30 +0000 (05:22 +0000)]
(uptime): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
Paul Eggert [Wed, 30 Mar 2005 05:21:31 +0000 (05:21 +0000)]
(short_pinky): Adjust to read_utmp signature change.
Paul Eggert [Wed, 30 Mar 2005 05:20:57 +0000 (05:20 +0000)]
* readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove. All uses removed. This module
no longer relies on free (NULL) working.
Paul Eggert [Wed, 30 Mar 2005 05:20:25 +0000 (05:20 +0000)]
(gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove. All uses removed. This module
no longer relies on free (NULL) working.
Paul Eggert [Wed, 30 Mar 2005 05:19:48 +0000 (05:19 +0000)]
readutmp changes to allow checking for live pids
Paul Eggert [Wed, 30 Mar 2005 05:19:11 +0000 (05:19 +0000)]
(read_utmp): New arg OPTIONS. All uses changed.
(UT_PID): Moved here from ../src/who.c.
(READ_UTMP_CHECK_PIDS): New constant.
Paul Eggert [Wed, 30 Mar 2005 05:18:37 +0000 (05:18 +0000)]
(read_utmp): New arg OPTIONS. All uses changed.
Include signal.h, stdbool.h.
(desirable_utmp_entry): New function.
(read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
using x2nrealloc, to simplify logic.
(read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
size calculation.
Jim Meyering [Tue, 29 Mar 2005 19:01:43 +0000 (19:01 +0000)]
*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 19:01:34 +0000 (19:01 +0000)]
(ptr_align): Declare `ptr' parameter to be a
`const' pointer, since this function never writes through it.
Jim Meyering [Tue, 29 Mar 2005 14:09:35 +0000 (14:09 +0000)]
Remove #if-0'd-out code.
Jim Meyering [Tue, 29 Mar 2005 12:06:20 +0000 (12:06 +0000)]
*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 12:03:31 +0000 (12:03 +0000)]
*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 11:56:10 +0000 (11:56 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Tue, 29 Mar 2005 08:19:25 +0000 (08:19 +0000)]
*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 08:19:20 +0000 (08:19 +0000)]
Indent cpp directives.
Jim Meyering [Tue, 29 Mar 2005 07:19:29 +0000 (07:19 +0000)]
*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 07:18:58 +0000 (07:18 +0000)]
Return success on systems such as cygwin
where no absolute path name can be longer than PATH_MAX.
Jim Meyering [Mon, 28 Mar 2005 21:58:07 +0000 (21:58 +0000)]
.
Jim Meyering [Mon, 28 Mar 2005 19:30:14 +0000 (19:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 19:29:54 +0000 (19:29 +0000)]
(print_sep_string):
Add `void' to make this an ANSI-style function declaration.
Jim Meyering [Mon, 28 Mar 2005 19:29:17 +0000 (19:29 +0000)]
(ds_init): Add `void' to make this an ANSI-style function declaration.
Jim Meyering [Mon, 28 Mar 2005 19:28:33 +0000 (19:28 +0000)]
(get_width_format) [HAVE_RINT && HAVE_MODF && HAVE_FLOOR]:
Add `void' to make this an ANSI-style function declaration.
Jim Meyering [Mon, 28 Mar 2005 19:22:36 +0000 (19:22 +0000)]
(sc_tight_scope): Adjust to catch any
new declarations like that of stty.c's `speeds'.
Jim Meyering [Mon, 28 Mar 2005 18:41:09 +0000 (18:41 +0000)]
(speeds): Declare this array to be static.
Jim Meyering [Mon, 28 Mar 2005 18:21:26 +0000 (18:21 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 18:21:13 +0000 (18:21 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:18:35 +0000 (18:18 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 18:18:21 +0000 (18:18 +0000)]
(follow_mode_string): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:17:40 +0000 (18:17 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:17:02 +0000 (18:17 +0000)]
(docolon): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:16:26 +0000 (18:16 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 18:16:06 +0000 (18:16 +0000)]
(print_user): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:15:16 +0000 (18:15 +0000)]
(print_uptime): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:14:15 +0000 (18:14 +0000)]
(delimit_method_string): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:13:40 +0000 (18:13 +0000)]
(longopts, time_args): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:11:18 +0000 (18:11 +0000)]
(main): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:10:49 +0000 (18:10 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:09:51 +0000 (18:09 +0000)]
(long_options, mergefps): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:08:45 +0000 (18:08 +0000)]
(longopts): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:08:12 +0000 (18:08 +0000)]
(long_options, format_args): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:06:55 +0000 (18:06 +0000)]
(print_entry): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:06:06 +0000 (18:06 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 18:05:53 +0000 (18:05 +0000)]
(longopts): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:05:28 +0000 (18:05 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:04:50 +0000 (18:04 +0000)]
(time_style_args, indicator_style_args, long_options)
(format_args, sort_args, time_args, decode_switches)
(gobble_file): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:01:04 +0000 (18:01 +0000)]
(longopts): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 18:00:26 +0000 (18:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 18:00:16 +0000 (18:00 +0000)]
(time_spec_string): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:59:54 +0000 (17:59 +0000)]
(find_mount_point, show_point): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:57:57 +0000 (17:57 +0000)]
(extract_regexp): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:55:43 +0000 (17:55 +0000)]
(copy_reg): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:54:13 +0000 (17:54 +0000)]
(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:50:54 +0000 (17:50 +0000)]
(chopt_init): Use NULL, not `0'.