mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-13 03:44:26 +08:00
readutmp changes to allow checking for live pids
This commit is contained in:
parent
ec764b0a95
commit
3e5310af44
@ -1,3 +1,15 @@
|
||||
2005-03-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
|
||||
* readutmp.c: Likewise. 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.
|
||||
* readutmp.h (UT_PID): Moved here from ../src/who.c.
|
||||
(READ_UTMP_CHECK_PIDS): New constant.
|
||||
|
||||
2005-03-29 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* long-options.c (long_options): Use NULL, not `0'.
|
||||
|
Loading…
Reference in New Issue
Block a user