search for: tm_gmtoff

Displaying 13 results from an estimated 13 matches for "tm_gmtoff".

2012 Apr 13
2
[PATCH] libxl: fix rtc_timeoffset setting
..._memkb = b_info->max_memkb; libxl_defbool_setdefault(&b_info->localtime, false); - if (libxl_defbool_val(b_info->localtime)) { - time_t t; - struct tm *tm; - - t = time(NULL); - tm = localtime(&t); - - b_info->rtc_timeoffset += tm->tm_gmtoff; - } libxl_defbool_setdefault(&b_info->disable_migrate, false); diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 0bdd654..91c4bd8 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -65,6 +65,8 @@ int libxl__build_pre(libxl__gc *gc, uint32_t...
2007 Dec 02
1
Asterisk on Solaris
...tuctions here, http://forums.digium.com/viewtopic.php?t=5888. However, this is the message I get. This is Solaris on X86. Any ideas? [CC] stdtime/localtime.c -> stdtime/localtime.o stdtime/localtime.c: In function `localsub': stdtime/localtime.c:1136: error: structure has no member named `tm_gmtoff' gmake[1]: *** [stdtime/localtime.o] Error 1 gmake: *** [main] Error 2 Thanks, Mike Clark
2012 Mar 25
1
[PATCH v3] libxl: support for "rtc_timeoffset" and "localtime"
....c | 11 +++++++++++ tools/libxl/libxl_dom.c | 3 +++ tools/libxl/libxl_types.idl | 2 ++ tools/libxl/xl_cmdimpl.c | 5 +++++ 5 files changed, 29 insertions(+), 0 deletions(-) Changed since v2: * Move rtc_timeoffset adjust logic to libxl * Update docs Changed since v1: * Add tm_gmtoff, instead subtract, to rtc_timeoffset (Giam Teck Choon) * Add docs for the newly supported options * Include "bool localtime" in libxl API * Remove the unneeded "rtc_timeoffset" output in printf_info_sexp() diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index 55f7...
2017 Mar 21
0
[PATCH] p2v: Calculate offset of the Real Time Clock from UTC.
...tely it's not possible to distinguish between UTC and + * localtime in timezones that lie along the Greenwich Meridian + * (obviously including the UK), when daylight savings time is not + * in effect. In that case, prefer UTC. + */ + localtime_r (&system_time, &tm); + if (tm.tm_gmtoff != 0 && tm.tm_gmtoff != rtc->offset) + rtc->basis = BASIS_UTC; + else { + rtc->basis = BASIS_LOCALTIME; + rtc->offset = 0; +#ifdef DEBUG_STDERR + fprintf (stderr, "%s: RTC time is localtime\n", getprogname ()); +#endif + } + + return; +} + +#endif /* HAV...
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 \
2009 Jul 27
2
v1.1.18 released
...when it was being recalculated. - Searching quoted-printable message body internally converted "_" characters to spaces and didn't match search keys with "_". - Messages in year's first/last day may have had broken timezones with OSes not having struct tm->tm_gmtoff (e.g. Solaris). -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot-news/attachments/20090727/4a39d0ad/attachment.b...
2009 Jul 27
2
v1.1.18 released
...when it was being recalculated. - Searching quoted-printable message body internally converted "_" characters to spaces and didn't match search keys with "_". - Messages in year's first/last day may have had broken timezones with OSes not having struct tm->tm_gmtoff (e.g. Solaris). -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot-news/attachments/20090727/4a39d0ad/attachment.b...
2008 Mar 10
0
[PATCH] timezone extern is not portable to all unices
This patch pulls the tm_gmtoff variable from the struct tm to compute the offset since UTC in minutes vs using the non-portable timezone extern Signed-off-by: Doug Goldstein <cardoe at gentoo.org> --- swfdec-gtk/swfdec_gtk_system.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) -------------- next p...
2009 Jul 27
5
v1.2.2 released
...when it was being recalculated. - Searching quoted-printable message body internally converted "_" characters to spaces and didn't match search keys with "_". - Messages in year's first/last day may have had broken timezones with OSes not having struct tm->tm_gmtoff (e.g. Solaris). - virtual plugin: If another session adds a new mailbox to index, don't crash. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url...
2009 Jul 27
5
v1.2.2 released
...when it was being recalculated. - Searching quoted-printable message body internally converted "_" characters to spaces and didn't match search keys with "_". - Messages in year's first/last day may have had broken timezones with OSes not having struct tm->tm_gmtoff (e.g. Solaris). - virtual plugin: If another session adds a new mailbox to index, don't crash. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...|| !i_isdigit(s[1])) + return 0; + tm.tm_sec = (s[0] - '0') * 10 + s[1] - '0'; + s += 2; + + /* skip optional fractional seconds */ + if (*s == '.') { + do + ++s; + while (i_isdigit(*s)); + } + + if (i_toupper(s[0]) == 'Z' && s[1] == '\0') + tm.tm_gmtoff = 0; + else if (s[0] == '+' || s[0] == '-') { + char tzsign = *s++; + + /* HH: */ + if (!i_isdigit(s[0]) || !i_isdigit(s[1]) || s[2] != ':') + return 0; + tm.tm_gmtoff = ((s[0] - '0') * 10 + s[1] - '0') * 3600; + s += 3; + + /* MM */ + if (!i_isdigit...
2006 Nov 05
1
RC11 Build Failure on FreeBSD 6.1
..... no checking type of off_t... long long checking whether size_t is signed... no checking type of size_t... unsigned int checking for stdint.h... (cached) yes checking for uintmax_t... yes checking for uint_fast32_t... yes checking for socklen_t... yes checking for /dev/urandom... yes checking for tm_gmtoff... yes checking how large time_t values gmtime() accepts... 32 checking for struct iovec... yes checking Linux compatible mremap()... no checking whether shared mmaps get updated by write()s... yes checking whether fd passing works... yes checking for sendfile in -lsendfile... no checking Linux com...
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