From: Paul Eggert Date: Wed, 30 Mar 2005 05:19:48 +0000 (+0000) Subject: readutmp changes to allow checking for live pids X-Git-Tag: CPPI-1_12~1151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e5310af44273139463599c0afd7d0fa751e7bbb;p=thirdparty%2Fcoreutils.git readutmp changes to allow checking for live pids --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 0526a72391..c53b4f9dbf 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,15 @@ +2005-03-29 Paul Eggert + + * 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 * long-options.c (long_options): Use NULL, not `0'.