]> git.ipfire.org Git - thirdparty/coreutils.git/commit
pinky,users,who: optimize read_utmp invocation
authorBruno Haible <bruno@clisp.org>
Thu, 10 Aug 2023 11:50:57 +0000 (13:50 +0200)
committerPádraig Brady <P@draigBrady.com>
Fri, 11 Aug 2023 13:07:37 +0000 (14:07 +0100)
commitd70d55c0a4756f7f9d82c331b0797f1ebcfcbb7c
tree7a34cda1faedcd9a8dde2077a2c88493725c360f
parentad823360267cbfb3f5b1b3e1438122e5c82eb0b2
pinky,users,who: optimize read_utmp invocation

When we are only interested in entries of type USER_PROCESS, tell
read_utmp that it does not need to determine the boot time.

* src/pinky.c (short_pinky): Pass option READ_UTMP_USER_PROCESS.
* src/users.c (users): Likewise.
* src/who.c (who): Likewise, if calling list_entries_who.
src/pinky.c
src/users.c
src/who.c