]> Savannah Git Hosting - gnulib.git/commit
readutmp: Return a boot time also on OpenBSD.
authorBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 20:52:22 +0000 (22:52 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 20:52:22 +0000 (22:52 +0200)
commite069091227c58e0bb4f8bfb091f102f55f181f23
tree371e8cd650f58f46c32b112e078abb0108ef6ad1
parent51f5c00413f3b2fc42520d4f520a8b9181afe531
readutmp: Return a boot time also on OpenBSD.

* lib/readutmp.h (BOOT_TIME, USER_PROCESS): Provide fallback
definitions.
* lib/readutmp.c (read_utmp_from_file) [__OpenBSD__]: Fake a BOOT_TIME
entry by looking at the time stamp of a specific file.
ChangeLog
lib/readutmp.c
lib/readutmp.h