Re: [libvirt] [PATCH 4/5] util: Introduce virhostuptime

2019-08-21 Thread Pino Toscano
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 =

Re: [libvirt] [PATCH 4/5] util: Introduce virhostuptime

2019-08-21 Thread Jiri Denemark
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 ++

[libvirt] [PATCH 4/5] util: Introduce virhostuptime

2019-08-14 Thread Michal Privoznik
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,