Home
last modified time | relevance | path

Searched refs:timebuf (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c166 char timebuf[LOG_DATE_SIZE]; in vlog_prefix() local
180 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T", in vlog_prefix()
183 xstrftime_poststart(timebuf, sizeof (timebuf), &now); in vlog_prefix()
185 (void) snprintf(buf, sizeof (buf), "%s/%d%s: ", timebuf, pthread_self(), in vlog_prefix()
331 char timebuf[LOG_DATE_SIZE]; in vlog_instance() local
359 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T", in vlog_instance()
362 xstrftime_poststart(timebuf, sizeof (timebuf), &now); in vlog_instance()
364 message = uu_msprintf("[ %s %s ]\n", timebuf, omessage); in vlog_instance()
H A Dfork.c618 char path[20] = "/sbin/rc.", log[20] = "rc..log", timebuf[20]; in fork_rc_script() local
679 sz = strftime(timebuf, sizeof (timebuf), "%b %e %T", in fork_rc_script()
683 (void) fprintf(stderr, "%s Executing %s %s\n", timebuf, path, arg); in fork_rc_script()
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Deventlog.c168 char timebuf[32]; in ADM_Process_old_event_log() local
198 (void) strftime(timebuf, sizeof (timebuf), "%b %d %H:%M:%S", in ADM_Process_old_event_log()
200 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf, in ADM_Process_old_event_log()
216 char timebuf[32]; in ADM_Process_new_event_log() local
326 (void) strftime(timebuf, sizeof (timebuf), in ADM_Process_new_event_log()
329 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf, in ADM_Process_new_event_log()
/illumos-gate/usr/src/cmd/zlook/
H A Dzlook.c143 char timebuf[512]; in print_stats() local
154 timebuf[0] = 0; in print_stats()
155 if (ctime_r(&sb->st_atime, timebuf, 512)) { in print_stats()
157 (void) printf("%s", timebuf); in print_stats()
159 timebuf[0] = 0; in print_stats()
160 if (ctime_r(&sb->st_mtime, timebuf, 512)) { in print_stats()
162 (void) printf("%s", timebuf); in print_stats()
164 timebuf[0] = 0; in print_stats()
165 if (ctime_r(&sb->st_ctime, timebuf, 512)) { in print_stats()
167 (void) printf("%s", timebuf); in print_stats()
/illumos-gate/usr/src/cmd/drd/
H A Ddrd_log.c97 char timebuf[DRD_MAX_TIME_LEN] = ""; in drd_log_msg() local
100 drd_timestamp(timebuf, sizeof (timebuf)); in drd_log_msg()
109 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); in drd_log_msg()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dstr_conv.c161 struct tm timebuf; in krb5_string_to_timestamp() local
190 (void) localtime_r(&now, &timebuf); in krb5_string_to_timestamp()
192 memcpy(&timebuf, localtime(&now), sizeof(timebuf)); in krb5_string_to_timestamp()
195 if ((s = strptime(string, atime_format_table[i], &timebuf)) in krb5_string_to_timestamp()
201 if (timebuf.tm_year <= 0) in krb5_string_to_timestamp()
203 ret_time = mktime(&timebuf); in krb5_string_to_timestamp()
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_log.c99 char timebuf[LDMA_MAX_TIME_LEN] = ""; in ldma_log_msg() local
102 ldma_timestamp(timebuf, sizeof (timebuf)); in ldma_log_msg()
112 (void) fprintf(stderr, "%s%s.%s: %s\n", timebuf, module, in ldma_log_msg()
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_logging.c267 char timebuf[TIME_BUF_SIZE]; in sip_write_xaction_to_log() local
288 (void) strftime(timebuf, sizeof (timebuf), NULL, in sip_write_xaction_to_log()
291 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain-> in sip_write_xaction_to_log()
319 char timebuf[TIME_BUF_SIZE]; in sip_write_dlg_to_log() local
339 (void) strftime(timebuf, sizeof (timebuf), NULL, in sip_write_dlg_to_log()
342 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain-> in sip_write_dlg_to_log()
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_svc.c331 char timebuf[18]; /* MM/DD/YY hh:mm:ss */ in vs_svc_vlog() local
355 (void) strftime(timebuf, sizeof (timebuf), "%D %T", timestamp); in vs_svc_vlog()
359 timebuf, strlen(filepath), filepath); in vs_svc_vlog()
363 timebuf, strlen(filepath), filepath, in vs_svc_vlog()
/illumos-gate/usr/src/lib/libwrap/
H A Drfc931.c39 static jmp_buf timebuf; variable
68 longjmp(timebuf, sig);
107 if (setjmp(timebuf) == 0) {
/illumos-gate/usr/src/cmd/cron/
H A Dat.c165 char argpbuf[LINE_MAX], timebuf[80]; in main() local
412 cftime(timebuf, FORMAT, &when); in main()
414 strrchr(job, '/')+1, timebuf); in main()
794 char timebuf[80]; in list_jobs() local
850 ascftime(timebuf, FORMAT, localtime(&t)); in list_jobs()
857 timebuf); in list_jobs()
862 dentry->d_name, timebuf); in list_jobs()
888 ascftime(timebuf, FORMAT, in list_jobs()
890 printf("%s\t%s\n", argv[i], timebuf); in list_jobs()
H A Dcron.c171 static char timebuf[80]; variable
552 cftime(timebuf, "%+", &next_event->time); in main()
554 next_event->time, timebuf); in main()
626 cftime(timebuf, "%+", &next_event->time); in main()
629 next_event->cmd, next_event->time, timebuf); in main()
1302 cftime(timebuf, "%+", &e->time); in readcron()
1304 e->cmd, e->time, timebuf); in readcron()
2978 (void) strftime(timebuf, sizeof (timebuf), FORMAT, localtime(&t)); in msg()
2979 (void) fprintf(stderr, " %s\n", timebuf); in msg()
3006 (void) strftime(timebuf, sizeof (timebuf), FORMAT, localtime(&t)); in logit()
[all …]
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c224 char timebuf[80]; in EmitClockBasedInfo() local
228 (void) strftime(timebuf, sizeof (timebuf), NULL, in EmitClockBasedInfo()
230 (void) printf("\t/Job_Date (%s) def\n", timebuf); in EmitClockBasedInfo()
/illumos-gate/usr/src/lib/libexacct/demo/
H A Dexdump.c374 char timebuf[20]; in disp_obj() local
386 (void) strftime(timebuf, sizeof (timebuf), in disp_obj()
388 (void) fputs(timebuf, stdout); in disp_obj()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c425 static char timebuf[sizeof (PKGSERV_MODE) + sizeof (MODE_TIMEOUT) + 10]; in pkgmodeargument() local
431 (void) snprintf(timebuf, sizeof (timebuf), in pkgmodeargument()
435 return (timebuf); in pkgmodeargument()
/illumos-gate/usr/src/cmd/flowstat/
H A Dflowstat.c763 char timebuf[20]; in show_history_date() local
777 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y", in show_history_date()
779 (void) printf("%s\n", timebuf); in show_history_date()
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dexplain.c2007 char *timebuf; in print_service() local
2050 timebuf = safe_malloc(tbsz); in print_service()
2051 if (strftime(timebuf, tbsz, NULL, tmp) != 0) in print_service()
2053 free(timebuf); in print_service()
2056 (void) printf(gettext(" State: %s since %s\n"), svcp->state, timebuf); in print_service()
2058 free(timebuf); in print_service()
H A Dsvcs.c2415 char *timebuf; in print_detailed() local
2527 timebuf = safe_malloc(tbsz); in print_detailed()
2528 if (strftime(timebuf, tbsz, NULL, tmp) != 0) in print_detailed()
2530 free(timebuf); in print_detailed()
2534 timebuf); in print_detailed()
2535 free(timebuf); in print_detailed()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dusage.c259 char timebuf[TIMEBUFLEN]; in add_stat_item() local
263 (void) strftime(timebuf, sizeof (timebuf), in add_stat_item()
265 dissect_time(timebuf, &ns->net_stat_time); in add_stat_item()
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c543 char timebuf[20]; in show_history_date() local
561 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y", in show_history_date()
563 (void) printf("%s\n", timebuf); in show_history_date()
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c6904 print_time(hrtime_t t, char *timebuf) in print_time() argument
6915 timebuf[0] = '\0'; in print_time()
6918 (void) sprintf(timebuf, in print_time()
6921 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s); in print_time()
6923 (void) sprintf(timebuf, "%llum%02llus", m, s); in print_time()
6925 (void) sprintf(timebuf, "%llus", s); in print_time()
7244 char timebuf[100]; in main() local
7393 print_time(zs->zs_proc_stop - now, timebuf); in main()
7404 (ztest_opts.zo_time * NANOSEC), timebuf); in main()
7418 print_time(zc->zc_time, timebuf); in main()
[all …]
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c6621 struct timeval timebuf[2]; in setPathTimes() local
6630 timebuf[0].tv_sec = time((time_t *)0); in setPathTimes()
6631 timebuf[0].tv_usec = 0; in setPathTimes()
6632 timebuf[1].tv_sec = modTime.tv_sec; in setPathTimes()
6635 timebuf[1].tv_usec = (xhdr_flgs & _X_MTIME) ? modTime.tv_nsec/1000 : 0; in setPathTimes()
6637 if (futimesat(dirfd, path, timebuf) < 0) in setPathTimes()
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c1641 char timebuf[20]; in show_usage_date() local
1659 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y", in show_usage_date()
1661 (void) printf("%s\n", timebuf); in show_usage_date()