/freebsd-11-stable/usr.bin/at/ |
H A D | parsetime.c | 288 plus_or_minus(struct tm *tm, int delay) argument 296 tm->tm_year += delay; 299 tm->tm_mon += delay; 304 tm->tm_mday += delay; 307 tm->tm_hour += delay; 310 tm->tm_min += delay; 320 tm->tm_isdst = -1; 321 if (mktime(tm) < 0) 333 plus(struct tm *t argument 348 minus(struct tm *tm) argument 364 tod(struct tm *tm) argument 430 assign_date(struct tm *tm, long mday, long mon, long year) argument 479 month(struct tm *tm) argument [all...] |
/freebsd-11-stable/contrib/file/src/ |
H A D | cdf_time.c | 101 struct tm tm; local 111 tm.tm_sec = CAST(int, t % 60); 114 tm.tm_min = CAST(int, t % 60); 117 tm.tm_hour = CAST(int, t % 24); 121 tm.tm_year = CAST(int, CDF_BASE_YEAR + (t / 365)); 123 rdays = cdf_getdays(tm.tm_year); 125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); 126 tm 154 struct tm tm; local [all...] |
H A D | asctime_r.c | 12 asctime_r(const struct tm *t, char *dst)
|
/freebsd-11-stable/contrib/ldns/compat/ |
H A D | timegm.c | 14 timegm (struct tm *tm) { argument 21 ret = mktime(tm);
|
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_snmp.c | 185 * Make an SNMP DateAndTime from a struct tm. This should be in the library. 188 make_date_time(u_char *str, const struct tm *tm, u_int decisecs) argument 191 str[0] = (u_char)((tm->tm_year + 1900) >> 8); 192 str[1] = (u_char)(tm->tm_year + 1900); 193 str[2] = tm->tm_mon + 1; 194 str[3] = tm->tm_mday; 195 str[4] = tm->tm_hour; 196 str[5] = tm->tm_min; 197 str[6] = tm [all...] |
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | strptime.c | 57 static char *_strptime(const char *, const char *, struct tm *, int); 61 strptime(const char *buf, const char *fmt, struct tm *tm) argument 63 return(_strptime(buf, fmt, tm, 1)); 67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) argument 126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) 132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) 138 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) 144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, [all...] |
/freebsd-11-stable/gnu/usr.bin/rcs/lib/ |
H A D | partime.c | 210 t->tm.tm_sec = t->tm.tm_min = t->tm.tm_hour = t->tm.tm_mday = t->tm.tm_mon 211 = t->tm.tm_year = t->tm.tm_wday = t->tm.tm_yday 469 s = parse_fixed (s, 4, &t->tm.tm_year); 484 if (t->tm [all...] |
H A D | partime.h | 44 struct tm tm; member in struct:partime 48 * then tm.tm_year is actually modulo ymodulus.
|
/freebsd-11-stable/sys/dev/efidev/ |
H A D | efirtc.c | 67 struct efi_tm tm; local 75 if ((error = efi_get_time(&tm)) != 0) { 135 struct efi_tm tm; local 138 error = efi_get_time(&tm); 142 ct.sec = tm.tm_sec; 143 ct.min = tm.tm_min; 144 ct.hour = tm.tm_hour; 145 ct.day = tm.tm_mday; 146 ct.mon = tm.tm_mon; 147 ct.year = tm 158 struct efi_tm tm; local [all...] |
/freebsd-11-stable/lib/libc/stdtime/ |
H A D | strptime.c | 60 static char * _strptime(const char *, const char *, struct tm *, int *, locale_t); 86 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, argument 129 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); 150 tm->tm_year = i * 100 - TM_YEAR_BASE; 156 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); 163 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); 182 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); 189 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); 195 buf = _strptime(buf, tptr->ampm_fmt, tm, GMT 684 strptime_l(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm, locale_t loc) argument 703 strptime(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm) argument [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | prettydate.c | 62 static struct tm * 67 struct tm *tm = NULL; local 131 while ((tm = (*(local ? localtime : gmtime))(&ts)) == NULL) 143 /* 'tm' surely not NULL here! */ 144 INSIST(tm != NULL); 146 tm->tm_year += folds * SOLAR_CYCLE_YEARS; 147 if (tm->tm_year <= 0 || tm->tm_year >= 200) 151 return tm; 166 struct tm *tm; local [all...] |
/freebsd-11-stable/include/xlocale/ |
H A D | _time.h | 46 const struct tm * __restrict, locale_t) __strftimelike(3, 0); 55 struct tm * __restrict, locale_t);
|
/freebsd-11-stable/usr.sbin/ctm/ctm_rmail/ |
H A D | error.c | 70 struct tm *tm; local 84 tm = localtime(&now); 85 fprintf(fp, "%04d-%02d-%02d %02d:%02d ", tm->tm_year+1900, 86 tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min);
|
/freebsd-11-stable/include/ |
H A D | time.h | 127 struct tm { struct 146 char *asctime(const struct tm *); 153 struct tm *gmtime(const time_t *); 154 struct tm *localtime(const time_t *); 155 time_t mktime(struct tm *); 157 const struct tm * __restrict); 185 char *asctime_r(const struct tm *, char *); 187 struct tm *gmtime_r(const time_t *, struct tm *); 188 struct tm *localtime_ [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_pcf.c | 137 struct tm tm, *tp; local 148 ZERO(tm); 150 tm.tm_mday = buf[11] * 10 + buf[10]; 151 tm.tm_mon = buf[13] * 10 + buf[12] - 1; 152 tm.tm_year = buf[15] * 10 + buf[14]; 153 tm.tm_hour = buf[7] * 10 + buf[6]; 154 tm.tm_min = buf[5] * 10 + buf[4]; 155 tm.tm_sec = buf[3] * 10 + buf[2]; 156 tm [all...] |
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | a_utctm.c | 113 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d) argument 131 if (tm) 132 tm->tm_sec = 0; 149 if (tm) { 152 tm->tm_year = n < 50 ? n + 100 : n; 155 tm->tm_mon = n - 1; 158 tm->tm_mday = n; 161 tm->tm_hour = n; 164 tm [all...] |
/freebsd-11-stable/contrib/nvi/common/ |
H A D | delete.c | 39 MARK *tm, 51 for (lno = tm->lno; lno >= fm->lno; --lno) { 67 if (tm->lno >= lno) { 68 if (tm->lno == lno) { 71 eof = tm->cno != ENTIRE_LINE && tm->cno >= len ? 1 : 0; 75 for (lno = tm->lno; lno > fm->lno; --lno) { 94 if (tm->lno == fm->lno) { 100 MEMCPY(bp + fm->cno, p + (tm->cno + 1), 101 len - (tm 36 del( SCR *sp, MARK *fm, MARK *tm, int lmode) argument [all...] |
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | der_locl.h | 58 time_t _der_timegm (struct tm *); 59 struct tm * _der_gmtime(time_t t, struct tm *);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | strpftime-test.c | 236 struct tm *tm; local 238 tm = gmtime (&tests[i].t); 243 struct tm tm2; 246 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); 282 struct tm tm; local 283 memset(&tm, 0, sizeof(tm)); 284 strptime ("200505", "%Y%m", &tm); [all...] |
/freebsd-11-stable/tools/KSE/ksetest/ |
H A D | kse_threads_test.c | 89 static void runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm); 98 extern int thread_to_uts(struct kse_thr_mailbox *tm, 198 struct kse_thr_mailbox *tm; local 208 tm = (struct kse_thr_mailbox *)calloc(1, sizeof(struct kse_thr_mailbox)); 211 getcontext(&tm->tm_context); 222 pfmt("main() : 0x%x\n", tm); 223 pfmt("eip -> 0x%x\n", tm->tm_context.uc_mcontext.mc_eip); 224 tm->tm_context.uc_stack.ss_sp = p - MAIN_STACK_SIZE; 225 tm->tm_context.uc_stack.ss_size = MAIN_STACK_SIZE; 236 data->cur_thread = tm; 343 runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm) argument 357 struct kse_thr_mailbox *tm; local 391 struct kse_thr_mailbox *tm, *p; local 468 struct kse_thr_mailbox *tm; local 484 struct kse_thr_mailbox *tm; local [all...] |
/freebsd-11-stable/bin/date/ |
H A D | vary.h | 35 extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
|
/freebsd-11-stable/contrib/apr/time/unix/ |
H A D | timestr.c | 135 struct tm tm; local 136 memset(&tm, 0, sizeof tm); 137 tm.tm_sec = xt->tm_sec; 138 tm.tm_min = xt->tm_min; 139 tm.tm_hour = xt->tm_hour; 140 tm.tm_mday = xt->tm_mday; 141 tm.tm_mon = xt->tm_mon; 142 tm [all...] |
/freebsd-11-stable/gnu/usr.bin/cc/cc_tools/ |
H A D | Makefile.dep | 6 tm.h options.h \ 11 tm.h options.h \ 17 tm.h options.h \ 21 tm.h options.h \ 28 tm.h options.h \ 33 tm.h options.h \ 37 tm.h options.h \ 42 tm.h options.h \ 46 tm.h options.h \ 51 tm [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | Time.h | 20 extern time_t timegm(struct tm *t);
|
/freebsd-11-stable/usr.bin/systat/ |
H A D | keyboard.c | 57 struct timeval last, intvl, now, tm; local 70 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec; 71 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec; 72 while (tm.tv_usec < 0) { 73 tm.tv_usec += 1000000; 74 tm.tv_sec--; 76 while (tm.tv_usec >= 1000000) { 77 tm.tv_usec -= 1000000; 78 tm.tv_sec++; 80 if (tm [all...] |