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
Jim Meyering
0f7921b86f
Return success on systems such as cygwin
...
where no absolute path name can be longer than PATH_MAX.
2005-03-29 07:18:58 +00:00
Jim Meyering
5537c89eb7
.
2005-03-28 21:58:07 +00:00
Jim Meyering
00fcde597c
*** empty log message ***
2005-03-28 19:30:14 +00:00
Jim Meyering
129f0dca9d
(print_sep_string):
...
Add `void' to make this an ANSI-style function declaration.
2005-03-28 19:29:54 +00:00
Jim Meyering
15669cf4e1
(ds_init): Add `void' to make this an ANSI-style function declaration.
2005-03-28 19:29:17 +00:00
Jim Meyering
f00c1cbeb8
(get_width_format) [HAVE_RINT && HAVE_MODF && HAVE_FLOOR]:
...
Add `void' to make this an ANSI-style function declaration.
2005-03-28 19:28:33 +00:00
Jim Meyering
3a14f69532
(sc_tight_scope): Adjust to catch any
...
new declarations like that of stty.c's `speeds'.
2005-03-28 19:22:36 +00:00
Jim Meyering
d7f7c39c11
(speeds): Declare this array to be static.
2005-03-28 18:41:09 +00:00
Jim Meyering
9ea824018a
*** empty log message ***
2005-03-28 18:21:26 +00:00
Jim Meyering
734cf53a3c
(long_options): Use NULL, not `0'.
2005-03-28 18:21:13 +00:00
Jim Meyering
1df790f540
*** empty log message ***
2005-03-28 18:18:35 +00:00
Jim Meyering
a73da0345c
(follow_mode_string): Use NULL, not `0'.
2005-03-28 18:18:21 +00:00
Jim Meyering
3cae70f6e6
(long_options): Use NULL, not `0'.
2005-03-28 18:17:40 +00:00
Jim Meyering
eab72607cc
(docolon): Use NULL, not `0'.
2005-03-28 18:17:02 +00:00
Jim Meyering
1c9ab7efaf
*** empty log message ***
2005-03-28 18:16:26 +00:00
Jim Meyering
ce70c7bdc4
(print_user): Use NULL, not `0'.
2005-03-28 18:16:06 +00:00
Jim Meyering
79c88de2cc
(print_uptime): Use NULL, not `0'.
2005-03-28 18:15:16 +00:00