Searched refs:timebuf (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/drd/
H A Ddrd_log.c99 char timebuf[DRD_MAX_TIME_LEN] = ""; local
102 drd_timestamp(timebuf, sizeof (timebuf));
111 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf);
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_log.c99 char timebuf[LDMA_MAX_TIME_LEN] = ""; local
102 ldma_timestamp(timebuf, sizeof (timebuf));
112 (void) fprintf(stderr, "%s%s.%s: %s\n", timebuf, module,
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Deventlog.c170 char timebuf[32]; local
200 (void) strftime(timebuf, sizeof (timebuf), "%b %d %H:%M:%S",
202 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf,
218 char timebuf[32]; local
328 (void) strftime(timebuf, sizeof (timebuf),
331 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf,
/illumos-gate/usr/src/cmd/zlook/
H A Dzlook.c143 char timebuf[512]; local
154 timebuf[0] = 0;
155 if (ctime_r(&sb->st_atime, timebuf, 512)) {
157 (void) printf("%s", timebuf);
159 timebuf[0] = 0;
160 if (ctime_r(&sb->st_mtime, timebuf, 512)) {
162 (void) printf("%s", timebuf);
164 timebuf[0] = 0;
165 if (ctime_r(&sb->st_ctime, timebuf, 512)) {
167 (void) printf("%s", timebuf);
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dstr_conv.c162 struct tm timebuf;
187 * indicated that no guarantees are made as to preserving timebuf
191 (void) localtime_r(&now, &timebuf);
193 memcpy(&timebuf, localtime(&now), sizeof(timebuf));
196 if ((s = strptime(string, atime_format_table[i], &timebuf))
202 if (timebuf.tm_year <= 0)
204 ret_time = mktime(&timebuf);
161 struct tm timebuf; local
/illumos-gate/usr/src/lib/libwrap/
H A Drfc931.c45 static jmp_buf timebuf; variable
74 longjmp(timebuf, sig);
113 if (setjmp(timebuf) == 0) {
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c165 char timebuf[LOG_DATE_SIZE]; local
179 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T",
182 xstrftime_poststart(timebuf, sizeof (timebuf), &now);
184 (void) snprintf(buf, sizeof (buf), "%s/%d%s: ", timebuf, pthread_self(),
330 char timebuf[LOG_DATE_SIZE]; local
358 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T",
361 xstrftime_poststart(timebuf, sizeo
[all...]
H A Dfork.c618 char path[20] = "/sbin/rc.", log[20] = "rc..log", timebuf[20]; local
679 sz = strftime(timebuf, sizeof (timebuf), "%b %e %T",
683 (void) fprintf(stderr, "%s Executing %s %s\n", timebuf, path, arg);
/illumos-gate/usr/src/cmd/calendar/
H A Dcalprog.c221 char timebuf[1024]; local
226 strftime(timebuf, sizeof (timebuf), fmt, localtime(&t));
227 tb = timebuf;
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_svc.c333 char timebuf[18]; /* MM/DD/YY hh:mm:ss */ local
357 (void) strftime(timebuf, sizeof (timebuf), "%D %T", timestamp);
361 timebuf, strlen(filepath), filepath);
365 timebuf, strlen(filepath), filepath,
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_logging.c269 char timebuf[TIME_BUF_SIZE]; local
290 (void) strftime(timebuf, sizeof (timebuf), NULL,
293 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain->
321 char timebuf[TIME_BUF_SIZE]; local
341 (void) strftime(timebuf, sizeof (timebuf), NULL,
344 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain->
/illumos-gate/usr/src/lib/libexacct/demo/
H A Dexdump.c376 char timebuf[20]; local
388 (void) strftime(timebuf, sizeof (timebuf),
390 (void) fputs(timebuf, stdout);
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c226 char timebuf[80]; local
230 (void) strftime(timebuf, sizeof (timebuf), NULL,
232 (void) printf("\t/Job_Date (%s) def\n", timebuf);
/illumos-gate/usr/src/common/net/wanboot/
H A Dbootlog.c112 static char timebuf[sizeof ("Tue Jan 19 03:14:07 2038\n")]; local
118 (void) strlcpy(timebuf, ctime(&curtime), sizeof (timebuf));
119 timebuf[19] = '\0'; /* truncate before "2038" above */
120 return (timebuf);
/illumos-gate/usr/src/cmd/cron/
H A Dat.c164 char argpbuf[LINE_MAX], timebuf[80]; local
411 cftime(timebuf, FORMAT, &when);
413 strrchr(job, '/')+1, timebuf);
795 char timebuf[80]; local
851 ascftime(timebuf, FORMAT, localtime(&t));
858 timebuf);
863 dentry->d_name, timebuf);
889 ascftime(timebuf, FORMAT,
891 printf("%s\t%s\n", argv[i], timebuf);
H A Dcron.c173 static char timebuf[80]; variable
554 cftime(timebuf, "%+", &next_event->time);
556 next_event->time, timebuf);
628 cftime(timebuf, "%+", &next_event->time);
631 next_event->cmd, next_event->time, timebuf);
1276 cftime(timebuf, "%+", &e->time);
1278 e->cmd, e->time, timebuf);
3012 (void) strftime(timebuf, sizeof (timebuf), FORMAT, localtime(&t));
3013 (void) fprintf(stderr, " %s\n", timebuf);
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c421 static char timebuf[sizeof (PKGSERV_MODE) + sizeof (MODE_TIMEOUT) + 10]; local
427 (void) snprintf(timebuf, sizeof (timebuf),
431 return (timebuf);
/illumos-gate/usr/src/cmd/flowstat/
H A Dflowstat.c752 char timebuf[20]; local
766 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y",
768 (void) printf("%s\n", timebuf);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dscmadm.c1691 char timebuf[80]; local
1729 (void) strftime(timebuf, 80, "%x %X", tm_ptr);
1732 progname, timebuf);
1767 (void) strftime(timebuf, 80, "%x %X", tm_ptr);
1768 (void) printf("sd alert trace dump %s at %s\n", filename, timebuf);
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dexplain.c1964 char *timebuf; local
2007 timebuf = safe_malloc(tbsz);
2008 if (strftime(timebuf, tbsz, NULL, tmp) != 0)
2010 free(timebuf);
2013 (void) printf(gettext(" State: %s since %s\n"), svcp->state, timebuf); local
2015 free(timebuf);
H A Dsvcs.c2425 char *timebuf; local
2522 timebuf = safe_malloc(tbsz);
2523 if (strftime(timebuf, tbsz, NULL, tmp) != 0)
2525 free(timebuf);
2529 timebuf);
2530 free(timebuf);
/illumos-gate/usr/src/lib/libdladm/common/
H A Dusage.c186 * Given a timebuf of the form M/D/Y,H:M:S break it into individual elements.
259 char timebuf[TIMEBUFLEN]; local
263 (void) strftime(timebuf, sizeof (timebuf),
265 dissect_time(timebuf, &ns->net_stat_time);
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c5922 print_time(hrtime_t t, char *timebuf) argument
5933 timebuf[0] = '\0';
5936 (void) sprintf(timebuf,
5939 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s);
5941 (void) sprintf(timebuf, "%llum%02llus", m, s);
5943 (void) sprintf(timebuf, "%llus", s);
6196 char timebuf[100]; local
6333 print_time(zs->zs_proc_stop - now, timebuf);
6344 (ztest_opts.zo_time * NANOSEC), timebuf);
6358 print_time(zc->zc_time, timebuf);
[all...]
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c537 char timebuf[20]; local
555 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y",
557 (void) printf("%s\n", timebuf);
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c6620 struct timeval timebuf[2]; local
6629 timebuf[0].tv_sec = time((time_t *)0);
6630 timebuf[0].tv_usec = 0;
6631 timebuf[1].tv_sec = modTime.tv_sec;
6634 timebuf[1].tv_usec = (xhdr_flgs & _X_MTIME) ? modTime.tv_nsec/1000 : 0;
6636 if (futimesat(dirfd, path, timebuf) < 0)

Completed in 171 milliseconds

12