]> Savannah Git Hosting - gnulib.git/commit
readutmp: Return a boot time also on Android.
authorBruno Haible <bruno@clisp.org>
Thu, 10 Aug 2023 05:59:19 +0000 (07:59 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 10 Aug 2023 05:59:19 +0000 (07:59 +0200)
commit9db6a91083ecca9c49bd5353c7624c6388f332fb
tree83324d3d285019025ed71ab2441fc7fb649e38f8
parentfb1fafceb5b4379705e5463ff5dbbb82dd3be36f
readutmp: Return a boot time also on Android.

* lib/readutmp.c (get_linux_uptime): New function, extracted from
get_boot_time_uncached.
(read_utmp_from_file): Don't look for file time stamps on Android.
Instead, use get_linux_uptime.
(get_boot_time_uncached): Use get_linux_uptime.
ChangeLog
lib/readutmp.c