/freebsd/contrib/ldns/ldns/ |
H A D | util.h | 271 time_t ldns_mktime_from_utc(const struct tm *tm); 273 time_t mktime_from_utc(const struct tm *tm); 289 struct tm * ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result);
|
/freebsd/contrib/lua/src/ |
H A D | lvm.c | 299 if (l_unlikely(notm(tm))) in luaV_finishget() 353 if (l_unlikely(notm(tm))) in luaV_finishset() 357 if (ttisfunction(tm)) { in luaV_finishset() 570 const TValue *tm; in luaV_equalobj() local 597 if (tm == NULL) in luaV_equalobj() 605 if (tm == NULL) in luaV_equalobj() 612 if (tm == NULL) /* no TM? */ in luaV_equalobj() 690 const TValue *tm; in luaV_objlen() local 1520 TMS tm = (TMS)GETARG_C(i); in luaV_execute() local 1530 TMS tm = (TMS)GETARG_C(i); in luaV_execute() local [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_mktime.c | 45 struct tm *t; in ATF_TC_BODY() 46 struct tm tt; in ATF_TC_BODY() 67 struct tm tms; in ATF_TC_BODY() 87 struct tm tms; in ATF_TC_BODY()
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 226 struct tmpfs_mount *tm; in tmpfs_pager_freespace() local 235 tm = node->tn_reg.tn_tmp; in tmpfs_pager_freespace() 251 struct tmpfs_mount *tm; in tmpfs_page_inserted() local 258 tm = node->tn_reg.tn_tmp; in tmpfs_page_inserted() 270 struct tmpfs_mount *tm; in tmpfs_page_removed() local 277 tm = node->tn_reg.tn_tmp; in tmpfs_page_removed() 294 struct tmpfs_mount *tm; in tmpfs_can_alloc_page() local 296 tm = VM_TO_TMPFS_MP(obj); in tmpfs_can_alloc_page() 302 return (tm->tm_pages_max > atomic_load_long(&tm->tm_pages_used)); in tmpfs_can_alloc_page() 993 struct tmpfs_mount *tm; in tmpfs_alloc_vp() local [all …]
|
/freebsd/lib/libfetch/ |
H A D | ftp.c | 404 struct tm tm; in ftp_stat() local 456 &tm.tm_year, &tm.tm_mon, &tm.tm_mday, in ftp_stat() 457 &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) { in ftp_stat() 461 tm.tm_mon--; in ftp_stat() 462 tm.tm_year -= 1900; in ftp_stat() 463 tm.tm_isdst = -1; in ftp_stat() 464 t = timegm(&tm); in ftp_stat() 470 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in ftp_stat() 471 tm.tm_hour, tm.tm_min, tm.tm_sec); in ftp_stat()
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | ltm.c | 51 const TValue *tm = luaH_getstr(events, ename); in luaT_gettm() local 53 if (ttisnil(tm)) { /* no tag method? */ in luaT_gettm() 57 else return tm; in luaT_gettm()
|
/freebsd/contrib/blocklist/bin/ |
H A D | support.c | 91 struct tm tm; in fmttime() local 92 if (localtime_r(&t, &tm) == NULL) in fmttime() 95 strftime(b, l, "%Y/%m/%d %H:%M:%S", &tm); in fmttime()
|
/freebsd/crypto/heimdal/kadmin/ |
H A D | load.c | 75 struct tm tm; in parse_time_string() local 82 tm.tm_year = year - 1900; in parse_time_string() 83 tm.tm_mon = month - 1; in parse_time_string() 84 tm.tm_mday = date; in parse_time_string() 85 tm.tm_hour = hour; in parse_time_string() 86 tm.tm_min = minute; in parse_time_string() 87 tm.tm_sec = second; in parse_time_string() 88 tm.tm_isdst = 0; in parse_time_string() 89 *t = timegm(&tm); in parse_time_string()
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_filter.c | 39 ex_filter(SCR *sp, EXCMD *cmdp, MARK *fm, MARK *tm, MARK *rp, CHAR_T *cmd, enum filtertype ftype) in ex_filter() argument 232 _exit(ex_writefp(sp, "filter", ifp, fm, tm, NULL, NULL, 1)); in ex_filter() 250 if (ex_readfp(sp, "filter", ofp, tm, &nread, 1)) in ex_filter() 262 (cut(sp, NULL, fm, tm, CUT_LINEMODE) || in ex_filter() 263 del(sp, fm, tm, 1))) { in ex_filter()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | openbsd-compat.h | 143 char *strptime(const char *buf, const char *fmt, struct tm *tm); 349 struct tm *localtime_r(const time_t *, struct tm *); 354 time_t timegm(struct tm *);
|
/freebsd/usr.bin/vgrind/ |
H A D | vgrind.sh | 38 tm="/usr/share/tmac" 104 fi | cat $tm/tmac.vgrind - 120 fi | cat $tm/tmac.vgrind -
|
/freebsd/sys/dev/vt/ |
H A D | vt_core.c | 1116 vtterm_bell(struct terminal *tm) in vtterm_bell() argument 1146 vtterm_bell(tm); in vtterm_beep() 1636 vtterm_done(struct terminal *tm) in vtterm_done() argument 1873 vw->vw_buf.vb_terminal = tm; in vtterm_cnprobe() 1889 vtterm_cngetc(struct terminal *tm) in vtterm_cngetc() argument 2031 vw = tm->tm_softc; in vtterm_cngrab() 2050 vw = tm->tm_softc; in vtterm_cnungrab() 2123 terminal_mute(tm, 1); in vt_change_font() 2127 terminal_mute(tm, 0); in vt_change_font() 3099 struct terminal *tm; in vt_allocate_window() local [all …]
|
/freebsd/contrib/diff/lib/ |
H A D | strftime.c | 276 tm_diff (const struct tm *a, const struct tm *b) in tm_diff() 1041 struct tm ltm; 1251 struct tm gtm; 1252 struct tm ltm; 1263 struct tm tm; variable 1266 || ((ltm.tm_sec ^ tm.tm_sec) 1267 | (ltm.tm_min ^ tm.tm_min) 1268 | (ltm.tm_hour ^ tm.tm_hour) 1269 | (ltm.tm_mday ^ tm.tm_mday) 1270 | (ltm.tm_mon ^ tm.tm_mon) [all …]
|
/freebsd/lib/libutil/ |
H A D | login_times.c | 107 in_ltm(const login_time_t *ltm, struct tm *tt, time_t *ends) in in_ltm() 142 in_ltms(const login_time_t *ltm, struct tm *tm, time_t *t) in in_ltms() argument 147 if (in_ltm(ltm + i, tm, t)) in in_ltms()
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_calendar.h | 233 ntpcal_tm_to_rd(const struct tm * /* utm */); 279 ntpcal_rd_to_tm(struct tm * /* utm */, int32_t /* rd */); 300 ntpcal_daysec_to_tm(struct tm * /* utm */, int32_t /* secs */); 303 ntpcal_tm_to_daysec(const struct tm * /* utm */); 330 ntpcal_daysplit_to_tm(struct tm * /* utm */, const ntpcal_split * /* ds */,
|
/freebsd/contrib/openbsm/libbsm/ |
H A D | bsm_token.c | 669 timems = tm.tv_usec/1000; in au_to_file() 672 ADD_U_INT32(dptr, tm.tv_sec); in au_to_file() 1466 struct timeval tm) in au_to_header32_tm() argument 1483 timems = tm.tv_usec/1000; in au_to_header32_tm() 1485 ADD_U_INT32(dptr, tm.tv_sec); in au_to_header32_tm() 1531 timems = tm.tv_usec/1000; in au_to_header32_ex_tm() 1541 struct timeval tm) in au_to_header64_tm() argument 1558 timems = tm.tv_usec/1000; in au_to_header64_tm() 1571 struct timeval tm; in au_to_header32_ex() local 1588 struct timeval tm; in au_to_header32() local [all …]
|
/freebsd/sys/security/audit/ |
H A D | bsm_token.c | 591 timems = tm.tv_usec/1000; in au_to_file() 594 ADD_U_INT32(dptr, tm.tv_sec); in au_to_file() 1436 struct timeval tm) in au_to_header32_tm() argument 1451 timems = tm.tv_usec/1000; in au_to_header32_tm() 1453 ADD_U_INT32(dptr, tm.tv_sec); in au_to_header32_tm() 1498 timems = tm.tv_usec/1000; in au_to_header32_ex_tm() 1508 struct timeval tm) in au_to_header64_tm() argument 1523 timems = tm.tv_usec/1000; in au_to_header64_tm() 1536 struct timeval tm; in au_to_header32_ex() local 1553 struct timeval tm; in au_to_header32() local [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_bancomm.c | 106 struct stfp_tm tm; member 416 struct tm *tadr; in vme_poll() 586 struct tm maj; in tvme_fill() 610 time_vme->day = stfp->tm.tm_yday+1; in stfp_time2tvme() 611 time_vme->hr = stfp->tm.tm_hour; in stfp_time2tvme() 612 time_vme->mn = stfp->tm.tm_min; in stfp_time2tvme() 613 time_vme->sec = stfp->tm.tm_sec; in stfp_time2tvme()
|
H A D | refclock_dumbclock.c | 65 struct tm ymd; /* struct tm for y/m/d only */ 105 struct tm *tm_time_p; in dumbclock_start() 235 struct tm *gmtp; in dumbclock_receive() 236 struct tm *lt_p; in dumbclock_receive() 238 struct tm asserted_tm; /* the struct tm of the same */ in dumbclock_receive()
|
/freebsd/bin/date/ |
H A D | date.c | 58 static void printisodate(struct tm *, long); 61 const struct tm * __restrict, long); 90 struct tm *lt; in main() 225 printisodate(struct tm *lt, long nsec) in printisodate() 252 struct tm *lt; in setthetime() 373 const struct tm * __restrict t, long nsec) in strftime_ns()
|
/freebsd/sys/kern/ |
H A D | subr_fattime.c | 260 struct tm tm; in main() local 280 gmtime_r(&ts.tv_sec, &tm); in main() 281 strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm); in main() 299 gmtime_r(&ts.tv_sec, &tm); in main() 300 strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm); in main()
|
/freebsd/contrib/ldns/compat/ |
H A D | gmtime_r.c | 9 struct tm *gmtime_r(const time_t *timep, struct tm *result) in gmtime_r()
|
H A D | localtime_r.c | 9 struct tm *localtime_r(const time_t *timep, struct tm *result) in localtime_r()
|
/freebsd/usr.sbin/cdcontrol/ |
H A D | cdcontrol.c | 608 &tm, &ts, &tf); in play() 609 if ((m1 > tm) in play() 610 || ((m1 == tm) in play() 630 m1 += tm; in play() 657 m2 = tm; in play() 674 &tm, &ts, &tf); in play() 687 m2 += tm; in play() 696 &tm, &ts, &tf); in play() 698 && ((m2 > tm) in play() 699 || ((m2 == tm) in play() [all …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | bio_ssl.c | 120 unsigned long tm; in ssl_read() local 122 tm = (unsigned long)time(NULL); in ssl_read() 123 if (tm > sb->last_time + sb->renegotiate_timeout) { in ssl_read() 124 sb->last_time = tm; in ssl_read() 189 unsigned long tm; in ssl_write() local 191 tm = (unsigned long)time(NULL); in ssl_write() 192 if (tm > bs->last_time + bs->renegotiate_timeout) { in ssl_write() 193 bs->last_time = tm; in ssl_write()
|