Commit Graph
20544 Commits
Author SHA1 Message Date
Jim Meyering bc2c07f174 Add Kinyarwanda (rw). 2005-04-05 08:56:04 +00:00
Jim Meyering f41b4a4bbf version: 5.3.0 2005-04-05 08:55:06 +00:00
Jim Meyering e3cb2a0a05 (usage): Move USAGE_BUILTIN_WARNING to end of --help output. 2005-04-04 22:30:57 +00:00
Jim Meyering ce1ecb48b7 (USAGE_BUILTIN_WARNING): remove trailing newline 2005-04-04 22:30:22 +00:00
Jim Meyering 8c3ce409f1 . 2005-04-04 22:29:37 +00:00
Jim Meyering d09a97d9b5 *** empty log message *** 2005-04-04 22:00:11 +00:00
Jim Meyering f790ad9dd0 Remove `DESCRIPTION' section, now that --help includes it. 2005-04-04 21:59:58 +00:00
Jim Meyering fb57ce0811 *** empty log message *** 2005-04-04 21:58:09 +00:00
Jim Meyering 3905751383 (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:57:45 +00:00
Jim Meyering 63a63316a1 *** empty log message *** 2005-04-04 21:57:32 +00:00
Jim Meyering d3632f3571 (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:57:04 +00:00
Jim Meyering d209b0f75e (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:56:01 +00:00
Jim Meyering 84812b110d (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:55:06 +00:00
Jim Meyering 97cce6e83f (USAGE_BUILTIN_WARNING): New macro. 2005-04-04 21:51:30 +00:00
Paul Eggert cf6866dd8b getdate patch for empty string near dst changes. 2005-04-04 19:52:07 +00:00
Paul Eggert 6be7cfe6d3 (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.
2005-04-04 19:51:49 +00:00
Jim Meyering 7c7da0b74e *** empty log message *** 2005-04-03 13:13:06 +00:00
Jim Meyering bb0eb686fc (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.
2005-04-03 13:12:53 +00:00
Jim Meyering 05613505e5 Correct indentation of the two just-split lines. 2005-04-01 22:29:15 +00:00
Jim Meyering 91377273e6 split two longer-than-80-column lines 2005-04-01 20:06:22 +00:00
Jim Meyering ae9d3a5ab4 *** empty log message *** 2005-04-01 20:05:37 +00:00
Jim Meyering a76fbd821b (main): Free column_count_string when done with it. 2005-04-01 20:05:33 +00:00
Jim Meyering 0df327a7a9 . 2005-04-01 07:44:41 +00:00
Jim Meyering 04bef369f1 *** empty log message *** 2005-04-01 07:40:44 +00:00
Jim Meyering 9c9c4327e2 Don't let pr treat +1:-1 like +1:18446744073709551615.
(neg-page): Add a test for this.
2005-04-01 07:40:33 +00:00
Jim Meyering 361d16aba9 *** empty log message *** 2005-04-01 07:39:49 +00:00
Jim Meyering a21d9a21de 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.
2005-04-01 07:39:45 +00:00
Paul Eggert 015edf8dc7 (gl_READUTMP): Restore the requirement for gl_FUNC_FREE. 2005-03-30 07:41:47 +00:00
Paul Eggert c5401e922e * readutmp.m4 (gl_READUTMP): Restore requirement for gl_FUNC_FREE. 2005-03-30 07:41:18 +00:00
Paul Eggert da54271e95 * readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume
utmp file is a regular file.
2005-03-30 07:40:17 +00:00
Paul Eggert c315ff58b3 (read_utmp) [!defied UTMP_NAME_FUNCTION]: Add support for options.
Don't assume the file is a regular file.
2005-03-30 07:39:33 +00:00
Paul Eggert bd3b936ce7 who, pinky, uptime, and users now check for valid PIDs in supposed login
sessions.
2005-03-30 05:25:10 +00:00
Paul Eggert 78abb1a757 (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.
2005-03-30 05:24:05 +00:00
Paul Eggert 08b5977867 (users): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
2005-03-30 05:23:17 +00:00
Paul Eggert 733abad3ed (uptime): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
2005-03-30 05:22:30 +00:00
Paul Eggert 6584af72c9 (short_pinky): Adjust to read_utmp signature change. 2005-03-30 05:21:31 +00:00
Paul Eggert c769533ecd * 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.
2005-03-30 05:20:57 +00:00
Paul Eggert 36b0e99418 (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.
2005-03-30 05:20:25 +00:00
Paul Eggert 3e5310af44 readutmp changes to allow checking for live pids 2005-03-30 05:19:48 +00:00
Paul Eggert ec764b0a95 (read_utmp): New arg OPTIONS. All uses changed.
(UT_PID): Moved here from ../src/who.c.
(READ_UTMP_CHECK_PIDS): New constant.
2005-03-30 05:19:11 +00:00
Paul Eggert 196fb1bc5c (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.
2005-03-30 05:18:37 +00:00
Jim Meyering a3710b1ef6 *** empty log message *** 2005-03-29 19:01:43 +00:00
Jim Meyering 68bc3503b8 (ptr_align): Declare `ptr' parameter to be a
`const' pointer, since this function never writes through it.
2005-03-29 19:01:34 +00:00
Jim Meyering 24e7f6c248 Remove #if-0'd-out code. 2005-03-29 14:09:35 +00:00
Jim Meyering 31927b4957 *** empty log message *** 2005-03-29 12:06:20 +00:00
Jim Meyering 4ae2c738d4 *** empty log message *** 2005-03-29 12:03:31 +00:00
Jim Meyering 363dc86fce (long_options): Use NULL, not `0'. 2005-03-29 11:56:10 +00:00
Jim Meyering a2131c5559 *** empty log message *** 2005-03-29 08:19:25 +00:00
Jim Meyering c34d598405 Indent cpp directives. 2005-03-29 08:19:20 +00:00
Jim Meyering 9f9012414f *** empty log message *** 2005-03-29 07:19:29 +00:00