search for: rtc_time

Displaying 4 results from an estimated 4 matches for "rtc_time".

2017 Mar 21
0
[PATCH] p2v: Calculate offset of the Real Time Clock from UTC.
...n seconds, positive numbers meaning + * that the RTC is running ahead of UTC. + * + * In the error case, C<rtcE<gt>offset> is updated with 0 and + * C<rtcE<gt>basis> is set to C<BASIS_UNKNOWN>. + */ +void +get_rtc_config (struct rtc_config *rtc) +{ + int fd; + struct rtc_time rtm; + struct tm tm; + time_t rtc_time; + time_t system_time; + double rf; + + rtc->basis = BASIS_UNKNOWN; + rtc->offset = 0; + + fd = open ("/dev/rtc", O_RDONLY); + if (fd == -1) { + perror ("/dev/rtc"); + return; + } + + if (ioctl (fd, RTC_RD_TIME, &r...
2017 Mar 21
2
[PATCH] p2v: Calculate offset of the Real Time Clock from UTC.
Unlike the <cpu> node (see the other thread on the libguestfs ML), reading the Real Time Clock doesn't require libvirt and does work :-) For reference, read: https://libvirt.org/formatdomain.html#elementsTime https://en.wikipedia.org/wiki/Time_zone To test this you can run virt-p2v under qemu with a RTC offset: make -C p2v \ run-virt-p2v-in-a-vm \
2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
In an effort to reduce the code, start to use few bits of GLib: - replace the gnulib c-type module - replace the gnulib getprogname module - use g_spawn_sync to launch curl, and drop a file reading function Pino Toscano (6): Include glib.h in p2v.h Use g_ascii_isspace instead of c_isspace from gnulib Use g_get_prgname instead of getprogname from gnulib build: remove no more used gnulib
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am