search for: localtime_r

Displaying 20 results from an estimated 58 matches for "localtime_r".

2004 Aug 06
2
[PATCH] Solais has nanosleep, too.
...========== RCS file: /usr/local/cvsroot/icecast/configure.in,v retrieving revision 1.45 diff -u -r1.45 configure.in --- configure.in 29 Jan 2004 23:23:52 -0000 1.45 +++ configure.in 7 Mar 2004 08:36:54 -0000 @@ -62,7 +62,9 @@ dnl Check for types dnl Checks for library functions. -AC_CHECK_FUNCS(localtime_r nanosleep poll) +AC_CHECK_FUNCS(localtime_r poll) +AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP, 1, + [Define if you have nanosleep])) XIPH_NET dnl -- configure options -- +mb+rzqk7&zzmy:.mkabzhj]zrj) '+a{ +v&{ay,ry'rzg-b"V ~)mz
2003 Jul 11
4
module : cdr_sybase.so
...*desc = "Sybase CDR Backend"; static char *name = "sybase"; static char *config = "cdr_sybase.conf"; static DBPROCESS *dbproc; static LOGINREC *login; static struct tm _date(struct timeval tv) { struct tm tm; time_t t; t = tv.tv_sec; localtime_r(&t,&tm); return tm; } static int sybase_log(struct ast_cdr *cdr) { struct tm tm, end, start, answer; struct timeval tv; struct timezone tz; char *sqlcmd, timestr[128], timestart[128], timeend[128], timeanswer[128]; time_t t; sqlcmd = (char *)malloc(2048); memset(sq...
2022 Jun 23
2
NUT on Windows revival
...ed" * fcntl() code to avoid FD leaks to forked children, is it doable on Windows? * loading dlls from one dir, without copies near every exe (see common.c) * automatically tracking major version number X (from client/Makefile.am) for LTDL discovery of libupsclient-X.dll without hardcoding it * localtime_r, gmtime_r use ugly fallbacks where unavoidable * usb close_dev() crashes * not all dependencies were tried, probably more build warnings are lurking to clean up * installer not investigated * code mostly looks at "WIN32" macro as a big switch; there should be more specific configure-scrip...
2022 Jun 23
2
NUT on Windows revival
...ed" * fcntl() code to avoid FD leaks to forked children, is it doable on Windows? * loading dlls from one dir, without copies near every exe (see common.c) * automatically tracking major version number X (from client/Makefile.am) for LTDL discovery of libupsclient-X.dll without hardcoding it * localtime_r, gmtime_r use ugly fallbacks where unavoidable * usb close_dev() crashes * not all dependencies were tried, probably more build warnings are lurking to clean up * installer not investigated * code mostly looks at "WIN32" macro as a big switch; there should be more specific configure-scrip...
2019 Mar 22
0
[PATCH 4/4] OCaml tools: output messages into JSON for machine readable
...mllib_rfc3999_date_time_string (value unitv) +{ + CAMLparam1 (unitv); + char buf[64]; + struct timespec ts; + struct tm tm; + size_t ret; + size_t total = 0; + + if (clock_gettime (CLOCK_REALTIME, &ts) == -1) + unix_error (errno, (char *) "clock_gettime", Val_unit); + + if (localtime_r (&ts.tv_sec, &tm) == NULL) + unix_error (errno, (char *) "localtime_r", caml_copy_int64 (ts.tv_sec)); + + /* Sadly strftime does not support nanoseconds, so what we do is: + * - stringify everything before the nanoseconds + * - print the nanoseconds + * - stringify the r...
2015 Mar 05
0
[PATCH v3] fish: add journal-view command
...d_len); - message = get_journal_field (xattrs, "MESSAGE", &message_len); - - /* Timestamp. */ - if (ts >= 0) { - char buf[64]; - time_t t = ts / 1000000; - struct tm tm; - - if (strftime (buf, sizeof buf, "%b %d %H:%M:%S", - localtime_r (&t, &tm)) <= 0) { - fprintf (stderr, _("%s: could not format journal entry timestamp\n"), - guestfs_int_program_name); - errors++; - continue; - } - fputs (buf, stdout); - } - - /* Hostname. */ - /* We don't print thi...
2015 Mar 03
2
[PATCH v2] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view. There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is now configurable, it's the same format as virt-log has, since both uses same code now. Maros Zatko (1): fish: add journal-view
2007 Feb 18
8
DO NOT REPLY [Bug 4402] New: Incorrect time logged with glibc 2.5
https://bugzilla.samba.org/show_bug.cgi?id=4402 Summary: Incorrect time logged with glibc 2.5 Product: rsync Version: 2.6.9 Platform: Other OS/Version: Windows XP Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: kilburna@iservnetworks.com
2015 Mar 05
2
[PATCH v3] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is now configurable, it's the same format as virt-log has, since both uses same code now. Maros Zatko (1): fish: add journal-view command cat/Makefile.am | 1 + cat/log.c | 113
2015 Oct 16
2
[PATCH v6 0/2] RFE: journal reader in guestfish
Output is configurable, it's the same format as virt-log has, since both uses same code. First patch moves get_journal_field around and renames it to journal_view and the next one reimplements it a bit and brings it to guestfish. Maros Zatko (2): cat: move get_journal_field to fish/journal.c fish: add journal-view command (RHBZ#988100) .gnulib | 2 +-
2015 Aug 31
0
[PATCH v5 1/2] cat: move get_journal_field to fish/journal.c
...d_len); - message = get_journal_field (xattrs, "MESSAGE", &message_len); - - /* Timestamp. */ - if (ts >= 0) { - char buf[64]; - time_t t = ts / 1000000; - struct tm tm; - - if (strftime (buf, sizeof buf, "%b %d %H:%M:%S", - localtime_r (&t, &tm)) <= 0) { - fprintf (stderr, _("%s: could not format journal entry timestamp\n"), - guestfs_int_program_name); - errors++; - continue; - } - fputs (buf, stdout); - } - - /* Hostname. */ - /* We don't print thi...
2015 Aug 27
0
[PATCH v4 1/2] cat: move get_journal_field to fish/journal.c
...d_len); - message = get_journal_field (xattrs, "MESSAGE", &message_len); - - /* Timestamp. */ - if (ts >= 0) { - char buf[64]; - time_t t = ts / 1000000; - struct tm tm; - - if (strftime (buf, sizeof buf, "%b %d %H:%M:%S", - localtime_r (&t, &tm)) <= 0) { - fprintf (stderr, _("%s: could not format journal entry timestamp\n"), - guestfs_int_program_name); - errors++; - continue; - } - fputs (buf, stdout); - } - - /* Hostname. */ - /* We don't print thi...
2015 Aug 27
4
[PATCH v4 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is configurable, it's the same format as virt-log has, since both uses same code. Maros Zatko (2): cat: move get_journal_field to fish/journal.c fish: add journal-view command cat/Makefile.am
2015 Mar 03
0
[PATCH v2] fish: add journal-view command
...d_len); - message = get_journal_field (xattrs, "MESSAGE", &message_len); - - /* Timestamp. */ - if (ts >= 0) { - char buf[64]; - time_t t = ts / 1000000; - struct tm tm; - - if (strftime (buf, sizeof buf, "%b %d %H:%M:%S", - localtime_r (&t, &tm)) <= 0) { - fprintf (stderr, _("%s: could not format journal entry timestamp\n"), - guestfs_int_program_name); - errors++; - continue; - } - fputs (buf, stdout); - } - - /* Hostname. */ - /* We don't print thi...
2022 Jul 13
2
NUT on Windows revival
...o avoid FD leaks to forked children, is it doable on > Windows? > * loading dlls from one dir, without copies near every exe (see common.c) > * automatically tracking major version number X (from client/Makefile.am) > for LTDL discovery of libupsclient-X.dll without hardcoding it > * localtime_r, gmtime_r use ugly fallbacks where unavoidable > * usb close_dev() crashes > * not all dependencies were tried, probably more build warnings are > lurking to clean up > * installer not investigated > * code mostly looks at "WIN32" macro as a big switch; there should be more...
2022 Jul 13
2
NUT on Windows revival
...o avoid FD leaks to forked children, is it doable on > Windows? > * loading dlls from one dir, without copies near every exe (see common.c) > * automatically tracking major version number X (from client/Makefile.am) > for LTDL discovery of libupsclient-X.dll without hardcoding it > * localtime_r, gmtime_r use ugly fallbacks where unavoidable > * usb close_dev() crashes > * not all dependencies were tried, probably more build warnings are > lurking to clean up > * installer not investigated > * code mostly looks at "WIN32" macro as a big switch; there should be more...
2019 Mar 22
8
[PATCH 0/4] OCaml tools: output messages as JSON machine
Enhance the output in machine parseable mode, by outputting all the messages of OCaml tools as JSON to the machine parseable stream. Related, although not strictly needed for this (and thus can be split if requested), is the addition of the fd format for the machine readable stream. Pino Toscano (4): common/mltools: move the code for machine readable up common/mltools: make sure machine
2004 Aug 06
2
[patch] time stamps in dump file names
Hi, this patch enables the use of time stamps in dump file names: diff -ur icecast-2.0.1/src/source.c icecast-2.0.1.scram/src/source.c --- icecast-2.0.1/src/source.c Wed May 12 17:55:30 2004 +++ icecast-2.0.1.scram/src/source.c Wed Jun 2 23:17:29 2004 @@ -50,6 +50,16 @@ http_parser_t *parser, const char *mount, format_type_t type, mount_proxy *mountinfo) { + char buffer[PATH_MAX]; +
2004 Aug 06
2
[patch] time stamps in dump file names
Hi, this patch enables the use of time stamps in dump file names: diff -ur icecast-2.0.1/src/source.c icecast-2.0.1.scram/src/source.c --- icecast-2.0.1/src/source.c Wed May 12 17:55:30 2004 +++ icecast-2.0.1.scram/src/source.c Wed Jun 2 23:17:29 2004 @@ -50,6 +50,16 @@ http_parser_t *parser, const char *mount, format_type_t type, mount_proxy *mountinfo) { + char buffer[PATH_MAX]; +
2007 Apr 02
1
Quick question about time
Does the GotoIfTime application work in the local time of the server, or UTC? -- Alan Chandler http://www.chandlerfamily.org.uk