Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/cmd/svc/startd/
H A Dlog.c165 char timebuf[LOG_DATE_SIZE]; in vlog_prefix() local
179 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T", in vlog_prefix()
182 xstrftime_poststart(timebuf, sizeof (timebuf), &now); in vlog_prefix()
184 (void) snprintf(buf, sizeof (buf), "%s/%d%s: ", timebuf, pthread_self(), in vlog_prefix()
330 char timebuf[LOG_DATE_SIZE]; in vlog_instance() local
358 (void) strftime(timebuf, sizeof (timebuf), "%b %e %T", in vlog_instance()
361 xstrftime_poststart(timebuf, sizeof (timebuf), &now); in vlog_instance()
363 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()
/titanic_41/usr/src/cmd/scadm/sparc/mpxu/common/
H A Deventlog.c170 char timebuf[32]; in ADM_Process_old_event_log() local
200 (void) strftime(timebuf, sizeof (timebuf), "%b %d %H:%M:%S", in ADM_Process_old_event_log()
202 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf, in ADM_Process_old_event_log()
218 char timebuf[32]; in ADM_Process_new_event_log() local
328 (void) strftime(timebuf, sizeof (timebuf), in ADM_Process_new_event_log()
331 (void) sprintf(messBuff, "%s : %08lx: \"", timebuf, in ADM_Process_new_event_log()
/titanic_41/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()
/titanic_41/usr/src/cmd/drd/
H A Ddrd_log.c99 char timebuf[DRD_MAX_TIME_LEN] = ""; in drd_log_msg() local
102 drd_timestamp(timebuf, sizeof (timebuf)); in drd_log_msg()
111 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); in drd_log_msg()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/calendar/
H A Dcalprog.c221 char timebuf[1024]; in generate() local
226 strftime(timebuf, sizeof (timebuf), fmt, localtime(&t)); in generate()
227 tb = timebuf; in generate()
/titanic_41/usr/src/lib/libwrap/
H A Drfc931.c45 static jmp_buf timebuf; variable
74 longjmp(timebuf, sig);
113 if (setjmp(timebuf) == 0) {
/titanic_41/usr/src/cmd/vscan/vscand/
H A Dvs_svc.c333 char timebuf[18]; /* MM/DD/YY hh:mm:ss */ in vs_svc_vlog() local
357 (void) strftime(timebuf, sizeof (timebuf), "%D %T", timestamp); in vs_svc_vlog()
361 timebuf, strlen(filepath), filepath); in vs_svc_vlog()
365 timebuf, strlen(filepath), filepath, in vs_svc_vlog()
/titanic_41/usr/src/lib/libsip/common/
H A Dsip_logging.c269 char timebuf[TIME_BUF_SIZE]; in sip_write_xaction_to_log() local
290 (void) strftime(timebuf, sizeof (timebuf), NULL, in sip_write_xaction_to_log()
293 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain-> in sip_write_xaction_to_log()
321 char timebuf[TIME_BUF_SIZE]; in sip_write_dlg_to_log() local
341 (void) strftime(timebuf, sizeof (timebuf), NULL, in sip_write_dlg_to_log()
344 " %d\n%s", timebuf, msg_chain->msg_seq, msg_chain-> in sip_write_dlg_to_log()
/titanic_41/usr/src/common/net/wanboot/
H A Dbootlog.c112 static char timebuf[sizeof ("Tue Jan 19 03:14:07 2038\n")]; in gettime() local
118 (void) strlcpy(timebuf, ctime(&curtime), sizeof (timebuf)); in gettime()
119 timebuf[19] = '\0'; /* truncate before "2038" above */ in gettime()
120 return (timebuf); in gettime()
/titanic_41/usr/src/cmd/cron/
H A Dat.c163 char argpbuf[LINE_MAX], timebuf[80]; in main() local
410 cftime(timebuf, FORMAT, &when); in main()
412 strrchr(job, '/')+1, timebuf); in main()
777 char timebuf[80]; in list_jobs() local
833 ascftime(timebuf, FORMAT, localtime(&t)); in list_jobs()
840 timebuf); in list_jobs()
845 dentry->d_name, timebuf); in list_jobs()
871 ascftime(timebuf, FORMAT, in list_jobs()
873 printf("%s\t%s\n", argv[i], timebuf); in list_jobs()
H A Dcron.c173 static char timebuf[80]; variable
554 cftime(timebuf, "%+", &next_event->time); in main()
556 next_event->time, timebuf); in main()
628 cftime(timebuf, "%+", &next_event->time); in main()
631 next_event->cmd, next_event->time, timebuf); in main()
1276 cftime(timebuf, "%+", &e->time); in readcron()
1278 e->cmd, e->time, timebuf); in readcron()
3012 (void) strftime(timebuf, sizeof (timebuf), FORMAT, localtime(&t)); in msg()
3013 (void) fprintf(stderr, " %s\n", timebuf); in msg()
3040 (void) strftime(timebuf, sizeof (timebuf), FORMAT, localtime(&t)); in logit()
[all …]
/titanic_41/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c226 char timebuf[80]; in EmitClockBasedInfo() local
230 (void) strftime(timebuf, sizeof (timebuf), NULL, in EmitClockBasedInfo()
232 (void) printf("\t/Job_Date (%s) def\n", timebuf); in EmitClockBasedInfo()
/titanic_41/usr/src/lib/libexacct/demo/
H A Dexdump.c376 char timebuf[20]; in disp_obj() local
388 (void) strftime(timebuf, sizeof (timebuf), in disp_obj()
390 (void) fputs(timebuf, stdout); in disp_obj()
/titanic_41/usr/src/lib/libpkg/common/
H A Dpkgserv.c421 static char timebuf[sizeof (PKGSERV_MODE) + sizeof (MODE_TIMEOUT) + 10]; in pkgmodeargument() local
427 (void) snprintf(timebuf, sizeof (timebuf), in pkgmodeargument()
431 return (timebuf); in pkgmodeargument()
/titanic_41/usr/src/cmd/flowstat/
H A Dflowstat.c769 char timebuf[20]; in show_history_date() local
783 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y", in show_history_date()
785 (void) printf("%s\n", timebuf); in show_history_date()
/titanic_41/usr/src/cmd/svc/svcs/
H A Dexplain.c1964 char *timebuf; in print_service() local
2007 timebuf = safe_malloc(tbsz); in print_service()
2008 if (strftime(timebuf, tbsz, NULL, tmp) != 0) in print_service()
2010 free(timebuf); in print_service()
2013 (void) printf(gettext(" State: %s since %s\n"), svcp->state, timebuf); in print_service()
2015 free(timebuf); in print_service()
H A Dsvcs.c2424 char *timebuf; in print_detailed() local
2521 timebuf = safe_malloc(tbsz); in print_detailed()
2522 if (strftime(timebuf, tbsz, NULL, tmp) != 0) in print_detailed()
2524 free(timebuf); in print_detailed()
2528 timebuf); in print_detailed()
2529 free(timebuf); in print_detailed()
/titanic_41/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);
/titanic_41/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()
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c5849 print_time(hrtime_t t, char *timebuf) in print_time() argument
5860 timebuf[0] = '\0'; in print_time()
5863 (void) sprintf(timebuf, in print_time()
5866 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s); in print_time()
5868 (void) sprintf(timebuf, "%llum%02llus", m, s); in print_time()
5870 (void) sprintf(timebuf, "%llus", s); in print_time()
6122 char timebuf[100]; in main() local
6259 print_time(zs->zs_proc_stop - now, timebuf); in main()
6270 (ztest_opts.zo_time * NANOSEC), timebuf); in main()
6284 print_time(zc->zc_time, timebuf); in main()
[all …]
/titanic_41/usr/src/cmd/dlstat/
H A Ddlstat.c537 char timebuf[20]; in show_history_date() local
555 (void) strftime(timebuf, sizeof (timebuf), "%m/%d/%Y", in show_history_date()
557 (void) printf("%s\n", timebuf); in show_history_date()
/titanic_41/usr/src/cmd/tar/
H A Dtar.c6577 struct timeval timebuf[2]; in setPathTimes() local
6586 timebuf[0].tv_sec = time((time_t *)0); in setPathTimes()
6587 timebuf[0].tv_usec = 0; in setPathTimes()
6588 timebuf[1].tv_sec = modTime.tv_sec; in setPathTimes()
6591 timebuf[1].tv_usec = (xhdr_flgs & _X_MTIME) ? modTime.tv_nsec/1000 : 0; in setPathTimes()
6593 if (futimesat(dirfd, path, timebuf) < 0) in setPathTimes()

12