/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | vexpire.c | 43 struct tm *tm; local 51 tm = localtime( &now ); 52 now -= tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volprivate.c | 185 struct tm *tm; in derrprint() local 189 tm = localtime(&t); in derrprint() 191 tm->tm_mon+1, tm->tm_mday, tm->tm_year % 100, in derrprint() 192 tm->tm_hour, tm->tm_min, tm->tm_sec); in derrprint()
|
/illumos-gate/usr/src/head/iso/ |
H A D | time_iso.h | 80 struct tm { /* see ctime(3) */ struct 93 extern char *asctime(const struct tm *); 97 extern struct tm *gmtime(const time_t *); 98 extern struct tm *localtime(const time_t *); 99 extern time_t mktime(struct tm *); 102 const struct tm *_RESTRICT_KYWD);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmequiv.c | 54 tmequiv(Tm_t* tm) in tmequiv() argument 56 …return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->t… in tmequiv()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | mkey2.c | 91 char tm[200]; in grec() local 99 while (fgets(tm, 200, f)) { in grec() 100 tlen += strlen(tm); in grec() 101 if (tm[0] == '%' || tm[0] == '.') in grec() 102 curtype = tm[1]; in grec() 104 strcat(s, tm); in grec() 106 if (wholefile == 0 && tm[0] == '\n') in grec()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/ |
H A D | libtopo.c | 157 topo_mod_t tm; in topo_module() local 163 if (mdb_vread(&tm, sizeof (tm), addr) != sizeof (tm)) { in topo_module() 191 if (tm.tm_busy) in topo_module() 214 if (TOPO_MOD_INIT & tm.tm_flags) { in topo_module() 218 if (TOPO_MOD_FINI & tm.tm_flags) { in topo_module() 222 if (TOPO_MOD_REG & tm.tm_flags) { in topo_module() 226 if (TOPO_MOD_UNREG & tm.tm_flags) { in topo_module() 668 topo_mod_t *tm; in tmod_walk_step() local 683 tm = (topo_mod_t *)wsp->walk_data; in tmod_walk_step() 685 if (tm->tm_next) in tmod_walk_step() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | cftime.c | 76 struct tm res; in cftime() 77 struct tm *p; in cftime() 89 ascftime(char *buf, const char *format, const struct tm *tm) in ascftime() argument 96 return ((int)strftime(buf, LONG_MAX, format, tm)); in ascftime()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | log.c | 126 struct tm *tm; in log() local 129 if ((tm = localtime(&curtime)) != NULL) in log() 131 tm->tm_mon+1, tm->tm_mday, tm->tm_hour, in log() 132 tm->tm_min, tm->tm_sec); in log()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/ |
H A D | getdate.y | 169 extern struct tm *gmtime(); 700 struct tm *tm; local 704 tm = localtime(&now); 716 struct tm *tm; local 724 Month = 12 * tm->tm_year + tm->tm_mon + RelMonth; 728 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec, 894 struct tm *a, *b; in difftm() 924 struct tm *tm, gmt; local 943 yyYear = tm->tm_year; 945 yyDay = tm->tm_mday; [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mandoc.c | 479 struct tm tm; in a2time() local 482 memset(&tm, 0, sizeof(struct tm)); in a2time() 486 pp = strptime(p, fmt, &tm); in a2time() 489 *t = mktime(&tm); in a2time() 499 struct tm *tm; in time2a() local 505 tm = localtime(&t); in time2a() 506 if (tm == NULL) in time2a() 518 if ((ssz = strftime(p, 10 + 1, "%B ", tm)) == 0) in time2a() 531 isz = snprintf(p, 4 + 1, "%d, ", tm->tm_mday); in time2a() 536 if (strftime(p, 4 + 1, "%Y", tm) == 0) in time2a()
|
/illumos-gate/usr/src/cmd/ast/libast/ |
H A D | Makefile.defs | 570 tm/tmdata.o \ 571 tm/tmdate.o \ 573 tm/tmfix.o \ 574 tm/tmfmt.o \ 575 tm/tmform.o \ 576 tm/tmgoff.o \ 577 tm/tminit.o \ 578 tm/tmleap.o \ 579 tm/tmlex.o \ 581 tm/tmmake.o \ [all …]
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | fmdump.c | 262 struct tm tm; in gettimeopt() local 333 int m = tm.tm_min; in gettimeopt() 334 int s = tm.tm_sec; in gettimeopt() 335 int b = tm.tm_mon; in gettimeopt() 338 bcopy(localtime(&tod.tv_sec), &tm, sizeof (tm)); in gettimeopt() 342 tm.tm_mon = b; in gettimeopt() 343 tm.tm_mday = d; in gettimeopt() 346 tm.tm_hour = h; in gettimeopt() 347 tm.tm_min = m; in gettimeopt() 348 tm.tm_sec = s; in gettimeopt() [all …]
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 69 struct tm daysend = { 75 long tmsecs(struct tm *, struct tm *); 85 struct tm cur, end, hours; in pnpsplit() 146 struct tm *tp; in checkhol() 170 ssh(struct tm *ltp) in ssh() 310 tmsecs(struct tm *t1, struct tm *t2) in tmsecs() 323 tmless(struct tm *t1, struct tm *t2) in tmless()
|
/illumos-gate/usr/src/cmd/mdb/common/libstand/ |
H A D | ctime.c | 32 struct tm * 35 struct tm *tmp; in localtime() 41 static struct tm tm; in localtime() local 43 tmp = &tm; in localtime() 157 __posix_asctime_r(const struct tm *t, char *cbuf) in __posix_asctime_r() 205 asctime_r(const struct tm *t, char *cbuf, int buflen) in asctime_r() 222 asctime(const struct tm *t) in asctime()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 399 restartterm(tm, fd, err_return) in restartterm() argument 400 const char *tm; in restartterm() 411 __m_trace("restartterm(%s, %d, %p)", tm ? tm : "NULL", fd, err_return); 433 if (tm == (char *) 0 && (tm = getenv("TERM")) == (char *) 0) 434 tm = def_termname; 437 cur_term->_term = m_strdup(tm); 440 len = strlen(terminfo) + 3 + strlen(tm); 450 (void) sprintf(filename, "%s/%c/%s", terminfo, tolower(tm[0]), tm); 463 (void) sprintf(filename, "%s/%c/%s", def_terminfo, tm[0], tm); 540 __m_trace(err_msg, tm); [all …]
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 35 int derive_date(char *, struct tm *); 38 time_t tm_to_secs(struct tm *); 40 static int check_time(struct tm *); 43 static time_t local_to_gm(struct tm *); 88 local_to_gm(struct tm *tme) in local_to_gm() 92 struct tm ltime, gtime; in local_to_gm() 163 tm_to_secs(struct tm *tme) in tm_to_secs() 208 check_time(struct tm *tme) in check_time() 280 struct tm thentime; in parse_time() 383 struct tm nowtime; in derive_date() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 100 static void atime(struct tm *, struct tm *); 133 struct tm *tp, at, rt; 168 struct tm *ct; in main() 475 atime(struct tm *a, struct tm *b) in atime() 516 gtime(struct tm *tptr) in gtime() 938 struct tm tm; in parse_time() local 951 memset(&tm, 0, sizeof (struct tm)); in parse_time() 964 if (tm.tm_year < 69) in parse_time() 965 tm.tm_year += 100; in parse_time() 978 tm.tm_sec = seconds; in parse_time() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_log.c | 148 struct tm tm; in log_write_cur_time() local 152 (void) localtime_r(&secs, &tm); in log_write_cur_time() 154 tm.tm_mon + 1, tm.tm_mday, in log_write_cur_time() 155 tm.tm_hour, tm.tm_min, tm.tm_sec); in log_write_cur_time()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_log.c | 111 struct tm tm, cur_tm; in logr_syslog_set_timestamp() local 114 bzero(&tm, sizeof (tm)); in logr_syslog_set_timestamp() 116 if (strptime(buf, "%b" "%d" "%H:%M:%S", &tm) == NULL) { in logr_syslog_set_timestamp() 124 tm.tm_isdst = cur_tm.tm_isdst; in logr_syslog_set_timestamp() 125 tm.tm_year = cur_tm.tm_year; in logr_syslog_set_timestamp() 126 if (tm.tm_mon > cur_tm.tm_mon) in logr_syslog_set_timestamp() 127 tm.tm_year--; in logr_syslog_set_timestamp() 129 le->le_timestamp.tv_sec = mktime(&tm); in logr_syslog_set_timestamp()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | debug.c | 46 double tm; in debug_elapsed() local 52 tm = (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec/1000000.0; in debug_elapsed() 54 return prev = tm; in debug_elapsed() 55 return tm - prev; in debug_elapsed()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | setup.c | 423 restartterm(char *tm, int fd, int *err_return) in restartterm() argument 451 if ((tm == NULL) && in restartterm() 452 (((tm = getenv("TERM")) == NULL) || (*tm == '\0'))) { in restartterm() 453 tm = (char *)def_termname; in restartterm() 457 cur_term->_term = strdup(tm); in restartterm() 465 len = strlen(terminfo) + 3 + strlen(tm); in restartterm() 475 (void) sprintf(filename, "%s/%c/%s", terminfo, tm[0], tm); in restartterm() 480 len = strlen(def_terminfo) + 3 + strlen(tm); in restartterm() 488 (void) sprintf(filename, "%s/%c/%s", def_terminfo, tm[0], tm); in restartterm() 558 (void) fprintf(stderr, err_msg, tm); in restartterm()
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lvm.c | 113 const TValue *tm; in luaV_gettable() local 126 if (ttisfunction(tm)) { in luaV_gettable() 139 const TValue *tm; in luaV_settable() local 165 if (ttisfunction(tm)) { in luaV_settable() 178 if (ttisnil(tm)) in call_binTM() 180 if (ttisnil(tm)) return 0; in call_binTM() 181 callTM(L, tm, p1, p2, res, 1); in call_binTM() 261 const TValue *tm; in luaV_equalobj_() local 336 const TValue *tm; in luaV_objlen() local 356 callTM(L, tm, rb, rb, ra, 1); in luaV_objlen() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | gmt_mktime.c | 39 time_t krb5int_gmt_mktime(struct tm *t) in krb5int_gmt_mktime() 101 struct tm tm = { in main() local 108 tm.tm_year = yr; in main() 109 t = gmt_mktime (&tm); in main()
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 90 mblk_t *im, *tm; in nb_getmsg_mlen() local 131 tm = NULL; in nb_getmsg_mlen() 152 im = tm->b_cont; in nb_getmsg_mlen() 153 tm->b_cont = NULL; in nb_getmsg_mlen() 154 freeb(tm); in nb_getmsg_mlen() 155 tm = im; in nb_getmsg_mlen() 195 freemsg(tm); in nb_getmsg_mlen() 204 if (!tm) in nb_getmsg_mlen() 207 *mpp = tm; in nb_getmsg_mlen() 212 im->b_cont = tm; in nb_getmsg_mlen() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_display.c | 79 struct tm *tm; in process_pkt() local 99 tm = localtime(&tvp->tv_sec); in process_pkt() 100 pi_time_hour = tm->tm_hour; in process_pkt() 101 pi_time_min = tm->tm_min; in process_pkt() 102 pi_time_sec = tm->tm_sec; in process_pkt() 578 struct tm *tmp; in getxdr_date() 589 (void) memcpy(&my_time, tmp, sizeof (struct tm)); in getxdr_date() 632 struct tm *tmp; in format_time() 647 memcpy(&my_time, tmp, sizeof (struct tm)); in format_time() 674 struct tm *tmp; in getxdr_time() [all …]
|