On Wednesday, 14 August 2019 16:33:22 CEST Michal Privoznik wrote:
> +int
> +virHostGetBootTime(unsigned long long *when ATTRIBUTE_UNUSED)
> +{
> +#if defined(__linux__) || defined(__FreeBSD__)
> +struct utmpx id = {.ut_type = BOOT_TIME};
> +struct utmpx *res = NULL;
> +
> +if (!(res =
On Wed, Aug 14, 2019 at 16:33:22 +0200, Michal Privoznik wrote:
> This module contains function to get host boot time.
>
> Signed-off-by: Michal Privoznik
> ---
> src/libvirt_private.syms | 4 +++
> src/util/Makefile.inc.am | 2 ++
> src/util/virhostuptime.c | 61 ++
This module contains function to get host boot time.
Signed-off-by: Michal Privoznik
---
src/libvirt_private.syms | 4 +++
src/util/Makefile.inc.am | 2 ++
src/util/virhostuptime.c | 61
src/util/virhostuptime.h | 27 ++
4 files changed,