/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | log.c | 166 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 D | fork.c | 618 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 D | eventlog.c | 168 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 D | zlook.c | 143 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 D | drd_log.c | 97 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 D | str_conv.c | 161 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 D | ldma_log.c | 99 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 D | sip_logging.c | 267 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 D | vs_svc.c | 331 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 D | rfc931.c | 39 static jmp_buf timebuf; variable 68 longjmp(timebuf, sig); 107 if (setjmp(timebuf) == 0) {
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 165 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 D | cron.c | 171 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 D | lp.tsol_separator.c | 224 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 D | exdump.c | 374 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 D | pkgserv.c | 425 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 D | flowstat.c | 763 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 D | explain.c | 2007 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 D | svcs.c | 2415 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 D | usage.c | 259 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 D | dlstat.c | 543 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 D | ztest.c | 6904 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 D | tar.c | 6621 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 D | dladm.c | 1641 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()
|