bin/date/date.c
142
struct tm *lt, tm;
bin/date/date.c
160
tm = *lt;
bin/date/date.c
161
if (strptime(p, pformat, &tm) == NULL) {
bin/date/date.c
165
lt = &tm;
bin/date/date.c
62
struct tm *tp;
bin/ksh/lex.c
1216
struct tm *tm;
bin/ksh/lex.c
1253
tm = localtime(&t);
bin/ksh/lex.c
1254
if (tm)
bin/ksh/lex.c
1256
"%a %b %d", tm);
bin/ksh/lex.c
1272
tm = localtime(&t);
bin/ksh/lex.c
1273
if (tm)
bin/ksh/lex.c
1275
tm);
bin/ksh/lex.c
1325
tm = localtime(&t);
bin/ksh/lex.c
1326
if (tm)
bin/ksh/lex.c
1328
tm);
bin/ksh/lex.c
1334
tm = localtime(&t);
bin/ksh/lex.c
1335
if (tm)
bin/ksh/lex.c
1337
"%l:%M:%S", tm);
bin/ksh/lex.c
1343
tm = localtime(&t);
bin/ksh/lex.c
1344
if (tm)
bin/ksh/lex.c
1346
tm);
bin/ksh/lex.c
1352
tm = localtime(&t);
bin/ksh/lex.c
1353
if (tm)
bin/ksh/lex.c
1355
tm);
bin/ls/print.c
244
struct tm *tm;
bin/ls/print.c
256
if ((tm = localtime(&ftime)) == NULL) {
bin/ls/print.c
259
tm = localtime(&ftime);
bin/ls/print.c
263
"%b %e %H:%M", tm) == 0)
bin/pax/gen_subs.c
107
if ((tm = localtime(&(sbp->st_mtime))) == NULL)
bin/pax/gen_subs.c
110
tm) == 0)
bin/pax/gen_subs.c
152
struct tm *tm;
bin/pax/gen_subs.c
160
if ((tm = localtime(&(arcn->sb.st_mtime))) == NULL)
bin/pax/gen_subs.c
163
tm) == 0)
bin/pax/gen_subs.c
78
struct tm *tm;
bin/pax/sel_subs.c
556
struct tm *lt;
bin/ps/print.c
513
struct tm *tp;
games/grdc/grdc.c
153
tm = localtime(&now.tv_sec);
games/grdc/grdc.c
154
set(tm->tm_sec % 10, 0);
games/grdc/grdc.c
155
set(tm->tm_sec / 10, 4);
games/grdc/grdc.c
156
set(tm->tm_min % 10, 10);
games/grdc/grdc.c
157
set(tm->tm_min / 10, 14);
games/grdc/grdc.c
158
set(tm->tm_hour % 10, 20);
games/grdc/grdc.c
159
set(tm->tm_hour / 10, 24);
games/grdc/grdc.c
163
if (sigwinched || prev_tm_gmtoff != tm->tm_gmtoff) {
games/grdc/grdc.c
166
prev_tm_gmtoff = tm->tm_gmtoff;
games/grdc/grdc.c
198
h = tm->tm_gmtoff / 3600;
games/grdc/grdc.c
199
m = abs((int)tm->tm_gmtoff % 3600 / 60);
games/grdc/grdc.c
203
strlen(tm->tm_zone))
games/grdc/grdc.c
205
tm->tm_zone, h, m);
games/grdc/grdc.c
208
tm->tm_zone, h, m);
games/grdc/grdc.c
217
printw("%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
games/grdc/grdc.c
218
tm->tm_sec);
games/grdc/grdc.c
31
struct tm *tm;
games/hack/hack.unix.c
115
struct tm *lt = getlt();
games/hack/hack.unix.c
130
struct tm *lt = getlt();
games/hack/hack.unix.c
89
static struct tm *getlt(void);
games/hack/hack.unix.c
96
static struct tm *
games/monop/execute.c
44
typedef struct tm TIME;
games/pom/pom.c
199
struct tm *lt;
games/pom/pom.c
75
struct tm *GMT;
include/time.h
113
char *asctime(const struct tm *);
include/time.h
117
struct tm *gmtime(const time_t *);
include/time.h
118
struct tm *localtime(const time_t *);
include/time.h
119
time_t mktime(struct tm *);
include/time.h
121
const struct tm *__restrict)
include/time.h
131
struct tm *__restrict);
include/time.h
135
char *asctime_r(const struct tm *__restrict, char *__restrict)
include/time.h
139
struct tm *gmtime_r(const time_t *__restrict, struct tm *__restrict);
include/time.h
140
struct tm *localtime_r(const time_t *__restrict, struct tm *__restrict);
include/time.h
161
const struct tm *__restrict, locale_t)
include/time.h
172
time_t timelocal(struct tm *);
include/time.h
173
time_t timegm(struct tm *);
include/time.h
174
time_t timeoff(struct tm *, const long);
include/wchar.h
196
struct tm;
include/wchar.h
198
const struct tm *__restrict);
lib/libc/time/asctime.c
115
asctime_r(const struct tm *timeptr, char *buf)
lib/libc/time/asctime.c
130
asctime(const struct tm *timeptr)
lib/libc/time/asctime.c
62
asctime3(const struct tm *timeptr, char *buf, int bufsize)
lib/libc/time/localtime.c
1234
static struct tm *
lib/libc/time/localtime.c
1235
localsub(const time_t *timep, int_fast32_t offset, struct tm *tmp)
lib/libc/time/localtime.c
1240
struct tm * result;
lib/libc/time/localtime.c
1321
struct tm *
lib/libc/time/localtime.c
1322
localtime_r(const time_t *timep, struct tm *p_tm)
lib/libc/time/localtime.c
1332
struct tm *
lib/libc/time/localtime.c
1336
struct tm * p_tm = (struct tm*)_THREAD_PRIVATE(localtime, tm, NULL);
lib/libc/time/localtime.c
1348
static struct tm *
lib/libc/time/localtime.c
1349
gmtsub(const time_t *timep, int_fast32_t offset, struct tm *tmp)
lib/libc/time/localtime.c
1351
struct tm * result;
lib/libc/time/localtime.c
1382
struct tm *
lib/libc/time/localtime.c
1383
gmtime_r(const time_t *timep, struct tm *p_tm)
lib/libc/time/localtime.c
1389
struct tm *
lib/libc/time/localtime.c
1393
struct tm * p_tm = (struct tm*) _THREAD_PRIVATE(gmtime, tm, NULL);
lib/libc/time/localtime.c
1404
struct tm *
lib/libc/time/localtime.c
1407
return gmtsub(timep, offset, &tm);
lib/libc/time/localtime.c
1424
static struct tm *
lib/libc/time/localtime.c
1426
struct tm *tmp)
lib/libc/time/localtime.c
143
static struct tm * gmtsub(const time_t * timep, int_fast32_t offset,
lib/libc/time/localtime.c
144
struct tm * tmp);
lib/libc/time/localtime.c
145
static struct tm * localsub(const time_t * timep, int_fast32_t offset,
lib/libc/time/localtime.c
146
struct tm * tmp);
lib/libc/time/localtime.c
155
static time_t time1(struct tm * tmp,
lib/libc/time/localtime.c
156
struct tm * (*funcp)(const time_t *,
lib/libc/time/localtime.c
1563
struct tm mytm;
lib/libc/time/localtime.c
157
int_fast32_t, struct tm *),
lib/libc/time/localtime.c
159
static time_t time2(struct tm *tmp,
lib/libc/time/localtime.c
160
struct tm * (*funcp)(const time_t *,
lib/libc/time/localtime.c
161
int_fast32_t, struct tm*),
lib/libc/time/localtime.c
163
static time_t time2sub(struct tm *tmp,
lib/libc/time/localtime.c
1638
tmcomp(const struct tm *atmp, const struct tm *btmp)
lib/libc/time/localtime.c
164
struct tm * (*funcp)(const time_t *,
lib/libc/time/localtime.c
165
int_fast32_t, struct tm*),
lib/libc/time/localtime.c
1652
time2sub(struct tm *tmp,
lib/libc/time/localtime.c
1653
struct tm *(*funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/time/localtime.c
1666
struct tm yourtm, mytm;
lib/libc/time/localtime.c
167
static struct tm * timesub(const time_t * timep, int_fast32_t offset,
lib/libc/time/localtime.c
168
const struct state * sp, struct tm * tmp);
lib/libc/time/localtime.c
169
static int tmcomp(const struct tm * atmp,
lib/libc/time/localtime.c
170
const struct tm * btmp);
lib/libc/time/localtime.c
180
struct tm *offtime(const time_t *, long);
lib/libc/time/localtime.c
1823
time2(struct tm *tmp,
lib/libc/time/localtime.c
1824
struct tm * (*funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/time/localtime.c
1839
time1(struct tm *tmp,
lib/libc/time/localtime.c
1840
struct tm * (*funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/time/localtime.c
1914
mktime(struct tm *tmp)
lib/libc/time/localtime.c
1929
timelocal(struct tm *tmp)
lib/libc/time/localtime.c
1937
timegm(struct tm *tmp)
lib/libc/time/localtime.c
1945
timeoff(struct tm *tmp, long offset)
lib/libc/time/localtime.c
217
static struct tm tm;
lib/libc/time/strftime.c
111
strftime(char *s, size_t maxsize, const char *format, const struct tm *t)
lib/libc/time/strftime.c
130
_fmt(const char *format, const struct tm *t, char *pt, const char *ptlim, int *warnp)
lib/libc/time/strftime.c
282
struct tm tm;
lib/libc/time/strftime.c
287
tm = *t;
lib/libc/time/strftime.c
288
mkt = mktime(&tm);
lib/libc/time/strftime.c
99
static char * _fmt(const char *, const struct tm *, char *, const char *,
lib/libc/time/strftime_l.c
10
strftime_l(char *s, size_t maxsize, const char *format, const struct tm *t,
lib/libc/time/strptime.c
153
if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0)))
lib/libc/time/strptime.c
159
if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0)))
lib/libc/time/strptime.c
165
if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0)))
lib/libc/time/strptime.c
171
if (!(bp = _strptime(bp, "%H:%M", tm, 0)))
lib/libc/time/strptime.c
177
if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0)))
lib/libc/time/strptime.c
183
if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0)))
lib/libc/time/strptime.c
189
if (!(bp = _strptime(bp, "%e-%b-%Y", tm, 0)))
lib/libc/time/strptime.c
195
if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, 0)))
lib/libc/time/strptime.c
201
if (!(bp = _strptime(bp, _ctloc(d_fmt), tm, 0)))
lib/libc/time/strptime.c
227
tm->tm_wday = i;
lib/libc/time/strptime.c
252
tm->tm_mon = i;
lib/libc/time/strptime.c
271
if (!(_conv_num(&bp, &tm->tm_mday, 1, 31)))
lib/libc/time/strptime.c
281
if (!(_conv_num(&bp, &tm->tm_hour, 0, 23)))
lib/libc/time/strptime.c
290
if (!(_conv_num(&bp, &tm->tm_hour, 1, 12)))
lib/libc/time/strptime.c
296
if (!(_conv_num(&bp, &tm->tm_yday, 1, 366)))
lib/libc/time/strptime.c
298
tm->tm_yday--;
lib/libc/time/strptime.c
304
if (!(_conv_num(&bp, &tm->tm_min, 0, 59)))
lib/libc/time/strptime.c
310
if (!(_conv_num(&bp, &tm->tm_mon, 1, 12)))
lib/libc/time/strptime.c
312
tm->tm_mon--;
lib/libc/time/strptime.c
321
if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */
lib/libc/time/strptime.c
323
else if (tm->tm_hour == 12)
lib/libc/time/strptime.c
324
tm->tm_hour = 0;
lib/libc/time/strptime.c
332
if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */
lib/libc/time/strptime.c
334
else if (tm->tm_hour < 12)
lib/libc/time/strptime.c
335
tm->tm_hour += 12;
lib/libc/time/strptime.c
346
if (!(_conv_num(&bp, &tm->tm_sec, 0, 60)))
lib/libc/time/strptime.c
350
if (!(epoch_to_tm(&bp, tm)))
lib/libc/time/strptime.c
369
if (!(_conv_num(&bp, &tm->tm_wday, 0, 6)))
lib/libc/time/strptime.c
378
tm->tm_wday = i % 7;
lib/libc/time/strptime.c
408
tm->tm_year = i - TM_YEAR_BASE;
lib/libc/time/strptime.c
421
tm->tm_isdst = 0;
lib/libc/time/strptime.c
422
tm->tm_gmtoff = 0;
lib/libc/time/strptime.c
423
tm->tm_zone = gmt;
lib/libc/time/strptime.c
426
tm->tm_isdst = 0;
lib/libc/time/strptime.c
427
tm->tm_gmtoff = 0;
lib/libc/time/strptime.c
428
tm->tm_zone = utc;
lib/libc/time/strptime.c
437
tm->tm_isdst = i;
lib/libc/time/strptime.c
438
tm->tm_gmtoff = -(timezone);
lib/libc/time/strptime.c
439
tm->tm_zone = tzname[i];
lib/libc/time/strptime.c
472
tm->tm_isdst = 0;
lib/libc/time/strptime.c
473
tm->tm_gmtoff = 0;
lib/libc/time/strptime.c
474
tm->tm_zone = utc;
lib/libc/time/strptime.c
486
tm->tm_gmtoff = (-5 - i) * SECSPERHOUR;
lib/libc/time/strptime.c
487
tm->tm_zone = nast[i];
lib/libc/time/strptime.c
493
tm->tm_isdst = 1;
lib/libc/time/strptime.c
494
tm->tm_gmtoff = (-4 - i) * SECSPERHOUR;
lib/libc/time/strptime.c
495
tm->tm_zone = nadt[i];
lib/libc/time/strptime.c
515
tm->tm_isdst = 0; /* XXX */
lib/libc/time/strptime.c
516
tm->tm_gmtoff = offs;
lib/libc/time/strptime.c
517
tm->tm_zone = NULL; /* XXX */
lib/libc/time/strptime.c
545
tm->tm_year = relyear + 2000 - TM_YEAR_BASE;
lib/libc/time/strptime.c
547
tm->tm_year = relyear + 1900 - TM_YEAR_BASE;
lib/libc/time/strptime.c
549
tm->tm_year = relyear + century - TM_YEAR_BASE;
lib/libc/time/strptime.c
556
const int year = tm->tm_year + TM_YEAR_BASE;
lib/libc/time/strptime.c
560
tm->tm_yday = tm->tm_mday - 1;
lib/libc/time/strptime.c
561
for (i = 0; i < tm->tm_mon; i++)
lib/libc/time/strptime.c
562
tm->tm_yday += mon_lens[i];
lib/libc/time/strptime.c
566
int days = tm->tm_yday;
lib/libc/time/strptime.c
568
tm->tm_wday = EPOCH_WDAY +
lib/libc/time/strptime.c
573
tm->tm_yday;
lib/libc/time/strptime.c
574
tm->tm_wday %= DAYSPERWEEK;
lib/libc/time/strptime.c
575
if (tm->tm_wday < 0)
lib/libc/time/strptime.c
576
tm->tm_wday += DAYSPERWEEK;
lib/libc/time/strptime.c
579
tm->tm_mon = 0;
lib/libc/time/strptime.c
580
while (tm->tm_mon < MONSPERYEAR && days >= mon_lens[tm->tm_mon])
lib/libc/time/strptime.c
581
days -= mon_lens[tm->tm_mon++];
lib/libc/time/strptime.c
584
tm->tm_mday = days + 1;
lib/libc/time/strptime.c
616
epoch_to_tm(const unsigned char **buf, struct tm *tm)
lib/libc/time/strptime.c
630
if (localtime_r(&secs, tm) == NULL)
lib/libc/time/strptime.c
78
static int epoch_to_tm(const unsigned char **, struct tm *);
lib/libc/time/strptime.c
80
static char *_strptime(const char *, const char *, struct tm *, int);
lib/libc/time/strptime.c
86
strptime(const char *buf, const char *fmt, struct tm *tm)
lib/libc/time/strptime.c
88
return(_strptime(buf, fmt, tm, 1));
lib/libc/time/strptime.c
93
_strptime(const char *buf, const char *fmt, struct tm *tm, int initialize)
lib/libc/time/wcsftime.c
107
static wchar_t * _fmt(const wchar_t *, const struct tm *, wchar_t *, const wchar_t *,
lib/libc/time/wcsftime.c
120
const wchar_t *__restrict format, const struct tm *__restrict t)
lib/libc/time/wcsftime.c
138
_fmt(const wchar_t *format, const struct tm *t, wchar_t *pt,
lib/libc/time/wcsftime.c
288
struct tm tm;
lib/libc/time/wcsftime.c
293
tm = *t;
lib/libc/time/wcsftime.c
294
mkt = mktime(&tm);
lib/libcrypto/asn1/a_time.c
102
return ASN1_time_parse(s->data, s->length, tm, 0) != -1;
lib/libcrypto/asn1/a_time.c
105
memset(tm, 0, sizeof(*tm));
lib/libcrypto/asn1/a_time.c
107
return asn1_time_time_t_to_tm(&now, tm);
lib/libcrypto/asn1/a_time.c
114
struct tm tm_from, tm_to;
lib/libcrypto/asn1/a_time.c
97
ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm)
lib/libcrypto/asn1/a_time_posix.c
178
OPENSSL_tm_to_posix(const struct tm *tm, int64_t *out)
lib/libcrypto/asn1/a_time_posix.c
180
return posix_time_from_utc(tm->tm_year + (int64_t)1900,
lib/libcrypto/asn1/a_time_posix.c
181
tm->tm_mon + (int64_t)1, tm->tm_mday, tm->tm_hour, tm->tm_min,
lib/libcrypto/asn1/a_time_posix.c
182
tm->tm_sec, out);
lib/libcrypto/asn1/a_time_posix.c
187
OPENSSL_posix_to_tm(int64_t time, struct tm *out_tm)
lib/libcrypto/asn1/a_time_posix.c
189
struct tm tmp_tm = {0};
lib/libcrypto/asn1/a_time_posix.c
207
asn1_time_tm_to_time_t(const struct tm *tm, time_t *out)
lib/libcrypto/asn1/a_time_posix.c
211
if (!OPENSSL_tm_to_posix(tm, &posix_time))
lib/libcrypto/asn1/a_time_posix.c
226
asn1_time_time_t_to_tm(const time_t *time, struct tm *out_tm)
lib/libcrypto/asn1/a_time_posix.c
234
OPENSSL_timegm(const struct tm *tm, time_t *out) {
lib/libcrypto/asn1/a_time_posix.c
235
return asn1_time_tm_to_time_t(tm, out);
lib/libcrypto/asn1/a_time_posix.c
239
struct tm *
lib/libcrypto/asn1/a_time_posix.c
240
OPENSSL_gmtime(const time_t *time, struct tm *out_tm) {
lib/libcrypto/asn1/a_time_posix.c
249
OPENSSL_gmtime_adj(struct tm *tm, int offset_day, int64_t offset_sec)
lib/libcrypto/asn1/a_time_posix.c
253
if (!OPENSSL_tm_to_posix(tm, &posix_time))
lib/libcrypto/asn1/a_time_posix.c
268
if (!OPENSSL_posix_to_tm(posix_time, tm))
lib/libcrypto/asn1/a_time_posix.c
275
OPENSSL_gmtime_diff(int *out_days, int *out_secs, const struct tm *from,
lib/libcrypto/asn1/a_time_posix.c
276
const struct tm *to)
lib/libcrypto/asn1/a_time_tm.c
108
tm_to_utctime(struct tm *tm, ASN1_TIME *atime)
lib/libcrypto/asn1/a_time_tm.c
112
if (tm->tm_year >= 150 || tm->tm_year < 50) {
lib/libcrypto/asn1/a_time_tm.c
118
tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday,
lib/libcrypto/asn1/a_time_tm.c
119
tm->tm_hour, tm->tm_min, tm->tm_sec) == -1) {
lib/libcrypto/asn1/a_time_tm.c
133
tm_to_rfc5280_time(struct tm *tm, ASN1_TIME *atime)
lib/libcrypto/asn1/a_time_tm.c
135
if (tm->tm_year >= 50 && tm->tm_year < 150)
lib/libcrypto/asn1/a_time_tm.c
136
return tm_to_utctime(tm, atime);
lib/libcrypto/asn1/a_time_tm.c
138
return tm_to_gentime(tm, atime);
lib/libcrypto/asn1/a_time_tm.c
199
asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm)
lib/libcrypto/asn1/a_time_tm.c
288
ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode)
lib/libcrypto/asn1/a_time_tm.c
302
if (asn1_time_parse_cbs(&cbs, type == V_ASN1_GENERALIZEDTIME, tm)) {
lib/libcrypto/asn1/a_time_tm.c
318
struct tm tm;
lib/libcrypto/asn1/a_time_tm.c
320
if (ASN1_time_parse(str, strlen(str), &tm, mode) == -1)
lib/libcrypto/asn1/a_time_tm.c
329
return tm_to_utctime(&tm, s);
lib/libcrypto/asn1/a_time_tm.c
331
return tm_to_gentime(&tm, s);
lib/libcrypto/asn1/a_time_tm.c
333
return tm_to_rfc5280_time(&tm, s);
lib/libcrypto/asn1/a_time_tm.c
344
struct tm tm;
lib/libcrypto/asn1/a_time_tm.c
346
if (!asn1_time_time_t_to_tm(&t, &tm))
lib/libcrypto/asn1/a_time_tm.c
35
ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2)
lib/libcrypto/asn1/a_time_tm.c
350
if (!OPENSSL_gmtime_adj(&tm, offset_day, offset_sec))
lib/libcrypto/asn1/a_time_tm.c
361
if (!tm_to_utctime(&tm, atime))
lib/libcrypto/asn1/a_time_tm.c
365
if (!tm_to_gentime(&tm, atime))
lib/libcrypto/asn1/a_time_tm.c
369
if (!tm_to_rfc5280_time(&tm, atime))
lib/libcrypto/asn1/a_time_tm.c
412
struct tm tm;
lib/libcrypto/asn1/a_time_tm.c
417
if (t->type != ASN1_time_parse(t->data, t->length, &tm, t->type))
lib/libcrypto/asn1/a_time_tm.c
425
if (!tm_to_gentime(&tm, agt))
lib/libcrypto/asn1/a_time_tm.c
451
struct tm tm1, tm2;
lib/libcrypto/asn1/a_time_tm.c
475
struct tm tm1, tm2;
lib/libcrypto/asn1/a_time_tm.c
592
struct tm tm;
lib/libcrypto/asn1/a_time_tm.c
596
if (!ASN1_TIME_to_tm(t, &tm))
lib/libcrypto/asn1/a_time_tm.c
598
return tm_to_rfc5280_time(&tm, t);
lib/libcrypto/asn1/a_time_tm.c
65
ASN1_time_tm_clamp_notafter(struct tm *tm)
lib/libcrypto/asn1/a_time_tm.c
68
struct tm broken_os_epoch_tm;
lib/libcrypto/asn1/a_time_tm.c
74
if (ASN1_time_tm_cmp(tm, &broken_os_epoch_tm) == 1)
lib/libcrypto/asn1/a_time_tm.c
75
memcpy(tm, &broken_os_epoch_tm, sizeof(*tm));
lib/libcrypto/asn1/a_time_tm.c
82
tm_to_gentime(struct tm *tm, ASN1_TIME *atime)
lib/libcrypto/asn1/a_time_tm.c
86
if (tm->tm_year < -1900 || tm->tm_year > 9999 - 1900) {
lib/libcrypto/asn1/a_time_tm.c
91
if (asprintf(&time_str, "%04u%02u%02u%02u%02u%02uZ", tm->tm_year + 1900,
lib/libcrypto/asn1/a_time_tm.c
92
tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min,
lib/libcrypto/asn1/a_time_tm.c
93
tm->tm_sec) == -1) {
lib/libcrypto/asn1/asn1.h
671
int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
lib/libcrypto/asn1/asn1_local.h
156
int asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm);
lib/libcrypto/asn1/asn1_local.h
166
int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, int64_t offset_sec);
lib/libcrypto/asn1/asn1_local.h
167
int OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from,
lib/libcrypto/asn1/asn1_local.h
168
const struct tm *to);
lib/libcrypto/asn1/asn1_local.h
169
int asn1_time_time_t_to_tm(const time_t *time, struct tm *out_tm);
lib/libcrypto/asn1/asn1_local.h
170
int asn1_time_tm_to_time_t(const struct tm *tm, time_t *out);
lib/libcrypto/asn1/asn1_local.h
193
int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode);
lib/libcrypto/asn1/asn1_local.h
194
int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2);
lib/libcrypto/asn1/posix_time.h
33
int OPENSSL_posix_to_tm(int64_t time, struct tm *out_tm);
lib/libcrypto/asn1/posix_time.h
40
int OPENSSL_tm_to_posix(const struct tm *tm, int64_t *out);
lib/libcrypto/asn1/posix_time.h
48
int OPENSSL_timegm(const struct tm *tm, time_t *out);
lib/libcrypto/asn1/t_x509.c
398
ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
lib/libcrypto/asn1/t_x509.c
400
if (tm->type == V_ASN1_UTCTIME)
lib/libcrypto/asn1/t_x509.c
401
return ASN1_UTCTIME_print(bp, tm);
lib/libcrypto/asn1/t_x509.c
402
if (tm->type == V_ASN1_GENERALIZEDTIME)
lib/libcrypto/asn1/t_x509.c
403
return ASN1_GENERALIZEDTIME_print(bp, tm);
lib/libcrypto/asn1/t_x509.c
415
ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm)
lib/libcrypto/asn1/t_x509.c
424
i = tm->length;
lib/libcrypto/asn1/t_x509.c
425
v = (char *)tm->data;
lib/libcrypto/asn1/t_x509.c
442
if (tm->length >= 14 &&
lib/libcrypto/asn1/t_x509.c
447
if (tm->length >= 15 && v[14] == '.') {
lib/libcrypto/asn1/t_x509.c
448
int l = tm->length;
lib/libcrypto/asn1/t_x509.c
470
ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm)
lib/libcrypto/asn1/t_x509.c
477
i = tm->length;
lib/libcrypto/asn1/t_x509.c
478
v = (const char *)tm->data;
lib/libcrypto/asn1/t_x509.c
496
if (tm->length >=12 &&
lib/libcrypto/cms/cms.h
339
ASN1_OCTET_STRING **keyid, ASN1_GENERALIZEDTIME **tm,
lib/libcrypto/cms/cms_kari.c
160
ASN1_OCTET_STRING **keyid, ASN1_GENERALIZEDTIME **tm,
lib/libcrypto/cms/cms_kari.c
172
if (tm)
lib/libcrypto/cms/cms_kari.c
173
*tm = NULL;
lib/libcrypto/cms/cms_kari.c
179
if (tm)
lib/libcrypto/cms/cms_kari.c
180
*tm = rid->d.rKeyId->date;
lib/libcrypto/crypto.h
433
struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm);
lib/libcrypto/ocsp/ocsp_cl.c
399
struct tm tm_this, tm_next;
lib/libcrypto/pkcs7/pk7_attr.c
184
ASN1_TIME *tm;
lib/libcrypto/pkcs7/pk7_attr.c
187
if ((tm = t) == NULL)
lib/libcrypto/pkcs7/pk7_attr.c
188
tm = X509_gmtime_adj(NULL, 0);
lib/libcrypto/pkcs7/pk7_attr.c
189
if (tm == NULL) {
lib/libcrypto/pkcs7/pk7_attr.c
195
if (ASN1_time_parse(tm->data, tm->length, NULL, tm->type) == -1)
lib/libcrypto/pkcs7/pk7_attr.c
197
if (!PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, tm->type, tm))
lib/libcrypto/pkcs7/pk7_attr.c
199
tm = NULL;
lib/libcrypto/pkcs7/pk7_attr.c
204
if (tm != t)
lib/libcrypto/pkcs7/pk7_attr.c
205
ASN1_TIME_free(tm);
lib/libcrypto/x509/x509.h
678
int X509_set_notBefore(X509 *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
679
int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
680
int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
681
int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
729
int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
730
int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
731
int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
732
int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
lib/libcrypto/x509/x509.h
738
int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);
lib/libcrypto/x509/x509_internal.h
86
int ASN1_time_tm_clamp_notafter(struct tm *tm);
lib/libcrypto/x509/x509_set.c
166
X509_set_notBefore(X509 *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509_set.c
173
if (in != tm) {
lib/libcrypto/x509/x509_set.c
174
in = ASN1_STRING_dup(tm);
lib/libcrypto/x509/x509_set.c
186
X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509_set.c
188
return X509_set_notBefore(x, tm);
lib/libcrypto/x509/x509_set.c
209
X509_set_notAfter(X509 *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509_set.c
216
if (in != tm) {
lib/libcrypto/x509/x509_set.c
217
in = ASN1_STRING_dup(tm);
lib/libcrypto/x509/x509_set.c
229
X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509_set.c
231
return X509_set_notAfter(x, tm);
lib/libcrypto/x509/x509_verify.c
52
struct tm tm = { 0 };
lib/libcrypto/x509/x509_verify.c
58
type = ASN1_time_parse(atime->data, atime->length, &tm, atime->type);
lib/libcrypto/x509/x509_verify.c
63
if (tm.tm_year < 150 && type != V_ASN1_UTCTIME)
lib/libcrypto/x509/x509_verify.c
65
if (tm.tm_year >= 150 && type != V_ASN1_GENERALIZEDTIME)
lib/libcrypto/x509/x509_verify.c
74
if (!ASN1_time_tm_clamp_notafter(&tm))
lib/libcrypto/x509/x509_verify.c
83
return asn1_time_tm_to_time_t(&tm, out);
lib/libcrypto/x509/x509cset.c
105
X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509cset.c
112
if (in != tm) {
lib/libcrypto/x509/x509cset.c
113
in = ASN1_STRING_dup(tm);
lib/libcrypto/x509/x509cset.c
124
X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509cset.c
126
return X509_CRL_set_lastUpdate(x, tm);
lib/libcrypto/x509/x509cset.c
131
X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509cset.c
138
if (in != tm) {
lib/libcrypto/x509/x509cset.c
139
in = ASN1_STRING_dup(tm);
lib/libcrypto/x509/x509cset.c
150
X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
lib/libcrypto/x509/x509cset.c
152
return X509_CRL_set_nextUpdate(x, tm);
lib/libcrypto/x509/x509cset.c
187
X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
lib/libcrypto/x509/x509cset.c
194
if (in != tm) {
lib/libcrypto/x509/x509cset.c
195
in = ASN1_STRING_dup(tm);
lib/libssl/bio_ssl.c
177
time_t tm;
lib/libssl/bio_ssl.c
179
tm = time(NULL);
lib/libssl/bio_ssl.c
180
if (tm > sb->last_time + sb->renegotiate_timeout) {
lib/libssl/bio_ssl.c
181
sb->last_time = tm;
lib/libssl/bio_ssl.c
248
time_t tm;
lib/libssl/bio_ssl.c
250
tm = time(NULL);
lib/libssl/bio_ssl.c
251
if (tm > bs->last_time + bs->renegotiate_timeout) {
lib/libssl/bio_ssl.c
252
bs->last_time = tm;
lib/libssl/ssl.h
1106
void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
lib/libtls/tls_conninfo.c
133
struct tm before_tm, after_tm;
lib/libtls/tls_conninfo.c
29
tls_convert_notafter(struct tm *tm, time_t *out_time)
lib/libtls/tls_conninfo.c
34
if (OPENSSL_timegm(tm, out_time))
lib/libtls/tls_conninfo.c
36
if (!OPENSSL_tm_to_posix(tm, &posix_time))
lib/libtls/tls_ocsp.c
63
struct tm tm;
lib/libtls/tls_ocsp.c
70
if (!ASN1_TIME_to_tm(gt, &tm))
lib/libtls/tls_ocsp.c
72
if (!OPENSSL_timegm(&tm, gt_time))
libexec/ftpd/ftpcmd.y
614
struct tm *t;
libexec/getty/main.c
566
struct tm *tm;
libexec/getty/main.c
568
if ((tm = localtime(&t)) != NULL)
libexec/getty/main.c
570
"%l:%M%p on %A, %d %B %Y", tm) != 0)
libexec/rpc.rstatd/rstat_proc.c
172
struct timeval tm, btm;
libexec/rpc.rstatd/rstat_proc.c
237
gettimeofday(&tm, NULL);
libexec/rpc.rstatd/rstat_proc.c
238
stats_all.s1.v_intr -= hz*(tm.tv_sec - btm.tv_sec) +
libexec/rpc.rstatd/rstat_proc.c
239
hz*(tm.tv_usec - btm.tv_usec)/1000000;
libexec/rpc.rstatd/rstat_proc.c
260
stats_all.s3.curtime.tv_sec = tm.tv_sec;
libexec/rpc.rstatd/rstat_proc.c
261
stats_all.s3.curtime.tv_usec = tm.tv_usec;
libexec/snmpd/snmpd_metrics/mib.c
293
struct tm *ptm;
libexec/talkd/announce.c
90
struct tm *localclock;
regress/lib/libc/time/strptime/main.c
100
tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday);
regress/lib/libc/time/strptime/main.c
53
struct tm tm;
regress/lib/libc/time/strptime/main.c
84
tm.tm_sec = -1;
regress/lib/libc/time/strptime/main.c
85
tm.tm_min = -1;
regress/lib/libc/time/strptime/main.c
86
tm.tm_hour = -1;
regress/lib/libc/time/strptime/main.c
87
tm.tm_mday = -1;
regress/lib/libc/time/strptime/main.c
88
tm.tm_mon = -1;
regress/lib/libc/time/strptime/main.c
89
tm.tm_year = -1;
regress/lib/libc/time/strptime/main.c
90
tm.tm_wday = -1;
regress/lib/libc/time/strptime/main.c
91
tm.tm_yday = -1;
regress/lib/libc/time/strptime/main.c
93
p = strptime(buf, format, &tm);
regress/lib/libc/time/strptime/main.c
99
tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mday,
regress/lib/libc/time/time_conversion/timetest.c
1733
void printtm(FILE *f, struct tm *tm)
regress/lib/libc/time/time_conversion/timetest.c
1740
tm->tm_year,
regress/lib/libc/time/time_conversion/timetest.c
1741
tm->tm_mon,
regress/lib/libc/time/time_conversion/timetest.c
1742
tm->tm_mday,
regress/lib/libc/time/time_conversion/timetest.c
1743
tm->tm_hour,
regress/lib/libc/time/time_conversion/timetest.c
1744
tm->tm_min,
regress/lib/libc/time/time_conversion/timetest.c
1745
tm->tm_sec,
regress/lib/libc/time/time_conversion/timetest.c
1746
tm->tm_wday,
regress/lib/libc/time/time_conversion/timetest.c
1747
tm->tm_yday,
regress/lib/libc/time/time_conversion/timetest.c
1748
tm->tm_isdst,
regress/lib/libc/time/time_conversion/timetest.c
1749
tm->tm_gmtoff,
regress/lib/libc/time/time_conversion/timetest.c
1750
tm->tm_zone);
regress/lib/libc/time/time_conversion/timetest.c
1756
struct tm local = {}, gmt = {};
regress/lib/libc/time/time_conversion/timetest.c
1818
void printtmdescr(FILE *f, struct tm *tm, char * descr)
regress/lib/libc/time/time_conversion/timetest.c
1821
printtm(f, tm);
regress/lib/libc/time/time_conversion/timetest.c
32
struct tm local_tm;
regress/lib/libc/time/time_conversion/timetest.c
33
struct tm gmt_tm;
regress/lib/libc/time/time_conversion/timetest.c
36
static int tm_match(struct tm * tm1, struct tm *tm2) {
regress/lib/libcrypto/asn1/asn1time.c
298
struct tm tm;
regress/lib/libcrypto/asn1/asn1time.c
317
if (ASN1_TIME_to_tm(gt, &tm) == 0) {
regress/lib/libcrypto/asn1/asn1time.c
323
if (!OPENSSL_timegm(&tm, &t)) {
regress/lib/libcrypto/asn1/asn1time.c
641
struct tm overflow_year = {0}, overflow_month = {0};
regress/lib/libcrypto/asn1/asn1time.c
642
struct tm copy, max_time = {0}, min_time = {0}, zero = {0};
regress/usr.bin/ssh/timestamp.c
35
struct tm *tm;
regress/usr.bin/ssh/timestamp.c
40
if ((tm = localtime(&tv.tv_sec)) == NULL)
regress/usr.bin/ssh/timestamp.c
42
if (strftime(buf, sizeof buf, "%Y%m%dT%H%M%S", tm) <= 0)
sbin/dump/itime.c
279
struct tm then;
sbin/dump/main.c
114
struct tm then;
sbin/fsdb/fsdb.c
859
struct tm t;
sbin/isakmpd/log.c
174
struct tm *tm;
sbin/isakmpd/log.c
185
if ((tm = localtime(&t)) == NULL) {
sbin/isakmpd/log.c
188
tm = localtime(&t);
sbin/isakmpd/log.c
193
tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec,
sbin/isakmpd/log.c
197
tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec,
sbin/isakmpd/policy.c
1731
struct tm *tm;
sbin/isakmpd/policy.c
1733
if ((tm = gmtime(&tt)) == NULL) {
sbin/isakmpd/policy.c
1737
strftime(mytimeofday, 14, "%Y%m%d%H%M%S", tm);
sbin/isakmpd/policy.c
1741
struct tm *tm;
sbin/isakmpd/policy.c
1743
if ((tm = localtime(&tt)) == NULL) {
sbin/isakmpd/policy.c
1747
strftime(mytimeofday, 14, "%Y%m%d%H%M%S", tm);
sbin/isakmpd/x509.c
118
ASN1_TIME *tm;
sbin/isakmpd/x509.c
223
if (((tm = X509_get_notBefore(cert)) == NULL) ||
sbin/isakmpd/x509.c
224
(ASN1_STRING_type(tm) != V_ASN1_UTCTIME &&
sbin/isakmpd/x509.c
225
ASN1_STRING_type(tm) != V_ASN1_GENERALIZEDTIME)) {
sbin/isakmpd/x509.c
226
struct tm *ltm;
sbin/isakmpd/x509.c
237
data = ASN1_STRING_get0_data(tm);
sbin/isakmpd/x509.c
238
len = ASN1_STRING_length(tm);
sbin/isakmpd/x509.c
256
if (ASN1_STRING_type(tm) == V_ASN1_UTCTIME) {
sbin/isakmpd/x509.c
321
tm = X509_get_notAfter(cert);
sbin/isakmpd/x509.c
322
if (tm == NULL ||
sbin/isakmpd/x509.c
323
(ASN1_STRING_type(tm) != V_ASN1_UTCTIME &&
sbin/isakmpd/x509.c
324
ASN1_STRING_type(tm) != V_ASN1_GENERALIZEDTIME)) {
sbin/isakmpd/x509.c
325
struct tm *ltm;
sbin/isakmpd/x509.c
336
data = ASN1_STRING_get0_data(tm);
sbin/isakmpd/x509.c
337
len = ASN1_STRING_length(tm);
sbin/isakmpd/x509.c
355
if (ASN1_STRING_type(tm) == V_ASN1_UTCTIME) {
sbin/newfs_msdos/newfs_msdos.c
240
struct tm *tm;
sbin/newfs_msdos/newfs_msdos.c
553
if ((tm = localtime(&now)) == NULL)
sbin/newfs_msdos/newfs_msdos.c
607
x = (((u_int)(1 + tm->tm_mon) << 8 |
sbin/newfs_msdos/newfs_msdos.c
608
(u_int)tm->tm_mday) +
sbin/newfs_msdos/newfs_msdos.c
609
((u_int)tm->tm_sec << 8 |
sbin/newfs_msdos/newfs_msdos.c
611
((u_int)(1900 + tm->tm_year) +
sbin/newfs_msdos/newfs_msdos.c
612
((u_int)tm->tm_hour << 8 |
sbin/newfs_msdos/newfs_msdos.c
613
(u_int)tm->tm_min));
sbin/newfs_msdos/newfs_msdos.c
648
x = (u_int)tm->tm_hour << 11 |
sbin/newfs_msdos/newfs_msdos.c
649
(u_int)tm->tm_min << 5 |
sbin/newfs_msdos/newfs_msdos.c
650
(u_int)tm->tm_sec >> 1;
sbin/newfs_msdos/newfs_msdos.c
652
x = (u_int)(tm->tm_year - 80) << 9 |
sbin/newfs_msdos/newfs_msdos.c
653
(u_int)(tm->tm_mon + 1) << 5 |
sbin/newfs_msdos/newfs_msdos.c
654
(u_int)tm->tm_mday;
sbin/route/route.c
1873
struct tm *tp;
sbin/shutdown/shutdown.c
111
struct tm *lt;
sbin/shutdown/shutdown.c
306
struct tm *lt;
sbin/shutdown/shutdown.c
499
struct tm *lt;
sbin/shutdown/shutdown.c
596
struct tm *tm;
sbin/shutdown/shutdown.c
605
tm = localtime(&shuttime);
sbin/shutdown/shutdown.c
608
if (tm) {
sbin/shutdown/shutdown.c
609
strftime(when, sizeof(when), "at %H:%M %Z", tm);
sbin/unwind/libunbound/config.h
1445
struct tm *gmtime_r(const time_t *timep, struct tm *result);
sbin/unwind/libunbound/config.h
1526
struct tm;
sbin/unwind/libunbound/config.h
1527
char *strptime(const char *s, const char *format, struct tm *tm);
sbin/unwind/libunbound/services/cache/infra.c
558
socklen_t addrlen, uint8_t* name, size_t namelen, time_t tm)
sbin/unwind/libunbound/services/cache/infra.c
582
data_entry_init(infra, &key->entry, tm);
sbin/unwind/libunbound/sldns/parseutil.c
120
sldns_mon_and_mday_from_year_and_yday(struct tm *result)
sbin/unwind/libunbound/sldns/parseutil.c
134
sldns_wday_from_year_and_yday(struct tm *result)
sbin/unwind/libunbound/sldns/parseutil.c
146
static struct tm *
sbin/unwind/libunbound/sldns/parseutil.c
147
sldns_gmtime64_r(int64_t clock, struct tm *result)
sbin/unwind/libunbound/sldns/parseutil.c
174
struct tm *
sbin/unwind/libunbound/sldns/parseutil.c
175
sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result)
sbin/unwind/libunbound/sldns/parseutil.c
72
sldns_mktime_from_utc(const struct tm *tm)
sbin/unwind/libunbound/sldns/parseutil.c
74
int year = 1900 + tm->tm_year;
sbin/unwind/libunbound/sldns/parseutil.c
81
for (i = 0; i < tm->tm_mon; ++i) {
sbin/unwind/libunbound/sldns/parseutil.c
84
if (tm->tm_mon > 1 && is_leap_year(year)) {
sbin/unwind/libunbound/sldns/parseutil.c
87
days += tm->tm_mday - 1;
sbin/unwind/libunbound/sldns/parseutil.c
89
hours = days * 24 + tm->tm_hour;
sbin/unwind/libunbound/sldns/parseutil.c
90
minutes = hours * 60 + tm->tm_min;
sbin/unwind/libunbound/sldns/parseutil.c
91
seconds = minutes * 60 + tm->tm_sec;
sbin/unwind/libunbound/sldns/parseutil.c
99
sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result)
sbin/unwind/libunbound/sldns/parseutil.h
17
struct tm;
sbin/unwind/libunbound/sldns/parseutil.h
55
time_t sldns_mktime_from_utc(const struct tm *tm);
sbin/unwind/libunbound/sldns/parseutil.h
71
struct tm * sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result);
sbin/unwind/libunbound/sldns/str2wire.c
2147
struct tm tm;
sbin/unwind/libunbound/sldns/str2wire.c
2152
memset(&tm, 0, sizeof(tm));
sbin/unwind/libunbound/sldns/str2wire.c
2154
&tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour,
sbin/unwind/libunbound/sldns/str2wire.c
2155
&tm.tm_min, &tm.tm_sec) == 6) {
sbin/unwind/libunbound/sldns/str2wire.c
2156
tm.tm_year -= 1900;
sbin/unwind/libunbound/sldns/str2wire.c
2157
tm.tm_mon--;
sbin/unwind/libunbound/sldns/str2wire.c
2159
if (tm.tm_year < 70)
sbin/unwind/libunbound/sldns/str2wire.c
2161
if (tm.tm_mon < 0 || tm.tm_mon > 11)
sbin/unwind/libunbound/sldns/str2wire.c
2163
if (tm.tm_mday < 1 || tm.tm_mday > 31)
sbin/unwind/libunbound/sldns/str2wire.c
2165
if (tm.tm_hour < 0 || tm.tm_hour > 23)
sbin/unwind/libunbound/sldns/str2wire.c
2167
if (tm.tm_min < 0 || tm.tm_min > 59)
sbin/unwind/libunbound/sldns/str2wire.c
2169
if (tm.tm_sec < 0 || tm.tm_sec > 59)
sbin/unwind/libunbound/sldns/str2wire.c
2172
sldns_write_uint32(rd, (uint32_t)sldns_mktime_from_utc(&tm));
sbin/unwind/libunbound/sldns/wire2str.c
1685
struct tm tm;
sbin/unwind/libunbound/sldns/wire2str.c
1688
memset(&tm, 0, sizeof(tm));
sbin/unwind/libunbound/sldns/wire2str.c
1692
if(sldns_serial_arithmetics_gmtime_r(t, time(NULL), &tm) &&
sbin/unwind/libunbound/sldns/wire2str.c
1693
strftime(date_buf, 15, "%Y%m%d%H%M%S", &tm)) {
sbin/unwind/libunbound/util/config_file.c
2236
struct tm tm;
sbin/unwind/libunbound/util/config_file.c
2237
memset(&tm, 0, sizeof(tm));
sbin/unwind/libunbound/util/config_file.c
2240
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
sbin/unwind/libunbound/util/config_file.c
2241
&tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6)
sbin/unwind/libunbound/util/config_file.c
2243
tm.tm_year -= 1900;
sbin/unwind/libunbound/util/config_file.c
2244
tm.tm_mon--;
sbin/unwind/libunbound/util/config_file.c
2246
if (tm.tm_year < 70) return 0;
sbin/unwind/libunbound/util/config_file.c
2247
if (tm.tm_mon < 0 || tm.tm_mon > 11) return 0;
sbin/unwind/libunbound/util/config_file.c
2248
if (tm.tm_mday < 1 || tm.tm_mday > 31) return 0;
sbin/unwind/libunbound/util/config_file.c
2249
if (tm.tm_hour < 0 || tm.tm_hour > 23) return 0;
sbin/unwind/libunbound/util/config_file.c
2250
if (tm.tm_min < 0 || tm.tm_min > 59) return 0;
sbin/unwind/libunbound/util/config_file.c
2251
if (tm.tm_sec < 0 || tm.tm_sec > 59) return 0;
sbin/unwind/libunbound/util/config_file.c
2253
t = sldns_mktime_from_utc(&tm);
sbin/unwind/libunbound/util/log.c
236
struct tm tm;
sbin/unwind/libunbound/util/log.c
284
struct tm *tm_p;
sbin/unwind/libunbound/util/log.c
288
tm_p = localtime_r(&now, &tm);
sbin/unwind/libunbound/util/log.c
310
if(log_time_asc && localtime_r(&now, &tm) && strftime(tmbuf,
sbin/unwind/libunbound/util/log.c
311
sizeof(tmbuf), "%b %d %H:%M:%S", &tm)%(sizeof(tmbuf)) != 0) {
sbin/unwind/libunbound/util/netevent.c
6904
struct internal_timer *tm = (struct internal_timer*)calloc(1,
sbin/unwind/libunbound/util/netevent.c
6906
if(!tm) {
sbin/unwind/libunbound/util/netevent.c
6910
tm->super.ev_timer = tm;
sbin/unwind/libunbound/util/netevent.c
6911
tm->base = base;
sbin/unwind/libunbound/util/netevent.c
6912
tm->super.callback = cb;
sbin/unwind/libunbound/util/netevent.c
6913
tm->super.cb_arg = cb_arg;
sbin/unwind/libunbound/util/netevent.c
6914
tm->ev = ub_event_new(base->eb->base, -1, UB_EV_TIMEOUT,
sbin/unwind/libunbound/util/netevent.c
6915
comm_timer_callback, &tm->super);
sbin/unwind/libunbound/util/netevent.c
6916
if(tm->ev == NULL) {
sbin/unwind/libunbound/util/netevent.c
6918
free(tm);
sbin/unwind/libunbound/util/netevent.c
6921
return &tm->super;
sbin/unwind/libunbound/util/netevent.c
6961
struct comm_timer* tm = (struct comm_timer*)arg;
sbin/unwind/libunbound/util/netevent.c
6964
ub_comm_base_now(tm->ev_timer->base);
sbin/unwind/libunbound/util/netevent.c
6965
tm->ev_timer->enabled = 0;
sbin/unwind/libunbound/util/netevent.c
6966
fptr_ok(fptr_whitelist_comm_timer(tm->callback));
sbin/unwind/libunbound/util/netevent.c
6967
(*tm->callback)(tm->cb_arg);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1393
struct tm tm;
sbin/unwind/libunbound/validator/val_sigcrypt.c
1404
memset(&tm, 0, sizeof(tm));
sbin/unwind/libunbound/validator/val_sigcrypt.c
1405
if(gmtime_r(&te, &tm) && strftime(expi_buf, 15, "%Y%m%d%H%M%S", &tm)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1406
&&gmtime_r(&ti, &tm) && strftime(incep_buf, 15, "%Y%m%d%H%M%S", &tm)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1407
&&gmtime_r(&tn, &tm) && strftime(now_buf, 15, "%Y%m%d%H%M%S", &tm)) {
sys/arch/amd64/stand/efiboot/memprobe.c
42
dump_biosmem(bios_memmap_t *tm)
sys/arch/amd64/stand/efiboot/memprobe.c
47
if (tm == NULL)
sys/arch/amd64/stand/efiboot/memprobe.c
48
tm = bios_memmap;
sys/arch/amd64/stand/efiboot/memprobe.c
50
for (p = tm; p->type != BIOS_MAP_END; p++) {
sys/arch/amd64/stand/efiboot/memprobe.c
52
(long)(p - tm), p->type, p->addr,
sys/arch/amd64/stand/libsa/memprobe.c
315
dump_biosmem(bios_memmap_t *tm)
sys/arch/amd64/stand/libsa/memprobe.c
320
if (tm == NULL)
sys/arch/amd64/stand/libsa/memprobe.c
321
tm = bios_memmap;
sys/arch/amd64/stand/libsa/memprobe.c
323
for (p = tm; p->type != BIOS_MAP_END; p++) {
sys/arch/amd64/stand/libsa/memprobe.c
325
(long)(p - tm), p->type, p->addr,
sys/arch/hppa/stand/mkboot/mkboot.c
354
struct tm *tm;
sys/arch/hppa/stand/mkboot/mkboot.c
357
tm = localtime(&statb.st_ctime);
sys/arch/hppa/stand/mkboot/mkboot.c
358
*toc = (tm->tm_year / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
359
*toc++ |= tm->tm_year % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
360
*toc = ((tm->tm_mon+1) / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
361
*toc++ |= (tm->tm_mon+1) % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
362
*toc = (tm->tm_mday / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
363
*toc++ |= tm->tm_mday % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
364
*toc = (tm->tm_hour / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
365
*toc++ |= tm->tm_hour % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
366
*toc = (tm->tm_min / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
367
*toc++ |= tm->tm_min % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
368
*toc = (tm->tm_sec / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
369
*toc |= tm->tm_sec % 10;
sys/arch/i386/stand/libsa/memprobe.c
309
dump_biosmem(bios_memmap_t *tm)
sys/arch/i386/stand/libsa/memprobe.c
314
if (tm == NULL)
sys/arch/i386/stand/libsa/memprobe.c
315
tm = bios_memmap;
sys/arch/i386/stand/libsa/memprobe.c
317
for (p = tm; p->type != BIOS_MAP_END; p++) {
sys/arch/i386/stand/libsa/memprobe.c
319
(long)(p - tm), p->type, p->addr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
47
struct tm tm;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
50
time64_to_tm(now, 0, &tm);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
51
timestamp->seconds = tm.tm_sec;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
52
timestamp->minutes = tm.tm_min;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
53
timestamp->hours = tm.tm_hour;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
55
timestamp->day = tm.tm_mday;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
56
timestamp->month = 1 + tm.tm_mon;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
57
timestamp->year = (1900 + tm.tm_year) % 100;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
58
timestamp->century = (1900 + tm.tm_year) / 100;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
733
struct threaded_migrate *tm = arg;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
735
return migrate_copy(tm->migrate, 2 * CHUNK_SZ, &tm->prng);
sys/dev/pci/drm/i915/gt/selftest_migrate.c
748
struct threaded_migrate *tm = arg;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
750
return global_copy(tm->migrate, 2 * CHUNK_SZ, &tm->prng);
sys/dev/pci/drm/i915/gt/selftest_migrate.c
763
struct threaded_migrate *tm = arg;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
765
return migrate_clear(tm->migrate, 2 * CHUNK_SZ, &tm->prng);
sys/dev/pci/drm/i915/gt/selftest_migrate.c
770
struct threaded_migrate *tm = arg;
sys/dev/pci/drm/i915/gt/selftest_migrate.c
772
return global_clear(tm->migrate, 2 * CHUNK_SZ, &tm->prng);
sys/dev/pci/if_ixl.c
3741
ixl_atq_poll(struct ixl_softc *sc, struct ixl_aq_desc *iaq, unsigned int tm)
sys/dev/pci/if_ixl.c
3770
if (t++ > tm) {
sys/net/radix.c
187
struct radix_node *x, *tm;
sys/net/radix.c
191
tm = rn_addmask(m_arg, 1, head->rnh_treetop->rn_off);
sys/net/radix.c
192
if (tm == NULL)
sys/net/radix.c
194
netmask = tm->rn_key;
sys/net/radix.c
420
struct radix_node *tm, *saved_tm;
sys/net/radix.c
446
tm = rn_search(addmask_key, mask_rnhead->rnh_treetop);
sys/net/radix.c
447
if (memcmp(addmask_key, tm->rn_key, mlen) != 0)
sys/net/radix.c
448
tm = NULL;
sys/net/radix.c
449
if (tm || search)
sys/net/radix.c
450
return (tm);
sys/net/radix.c
451
tm = malloc(max_keylen + 2 * sizeof(*tm), M_RTABLE, M_NOWAIT | M_ZERO);
sys/net/radix.c
452
if (tm == NULL)
sys/net/radix.c
454
saved_tm = tm;
sys/net/radix.c
455
netmask = cp = (caddr_t)(tm + 2);
sys/net/radix.c
457
tm = rn_insert(cp, mask_rnhead, &maskduplicated, tm);
sys/net/radix.c
461
return (tm);
sys/net/radix.c
480
tm->rn_b = -1 - b;
sys/net/radix.c
482
tm->rn_flags |= RNF_NORMAL;
sys/net/radix.c
483
return (tm);
sys/net/radix.c
763
struct radix_node *tt, *saved_tt, *tm = NULL;
sys/net/radix.c
774
if ((tm = rn_addmask(n_arg, 0, top->rn_off)) == 0)
sys/net/radix.c
790
if (tm) {
sys/net/radix.c
791
tt->rn_mask = tm->rn_key;
sys/net/radix.c
792
tt->rn_b = tm->rn_b;
sys/net/radix.c
793
tt->rn_flags |= tm->rn_flags & RNF_NORMAL;
sys/net/radix.c
939
struct radix_node *tm;
sys/net/radix.c
941
if ((tm = rn_addmask(netmask, 1, off)) == NULL)
sys/net/radix.c
943
netmask = tm->rn_key;
usr.bin/at/at.c
190
struct tm runtime;
usr.bin/at/at.c
399
struct tm runtime;
usr.bin/at/at.c
759
struct tm *lt;
usr.bin/at/parsetime.c
292
dateadd(int minutes, struct tm *tm)
usr.bin/at/parsetime.c
298
tm->tm_mday++;
usr.bin/at/parsetime.c
304
tm->tm_hour++;
usr.bin/at/parsetime.c
305
if (tm->tm_hour > 23) {
usr.bin/at/parsetime.c
306
tm->tm_mday++;
usr.bin/at/parsetime.c
307
tm->tm_hour = 0;
usr.bin/at/parsetime.c
312
tm->tm_min += minutes;
usr.bin/at/parsetime.c
314
if (tm->tm_min > 59) {
usr.bin/at/parsetime.c
315
tm->tm_hour++;
usr.bin/at/parsetime.c
316
tm->tm_min -= 60;
usr.bin/at/parsetime.c
318
if (tm->tm_hour > 23) {
usr.bin/at/parsetime.c
319
tm->tm_mday++;
usr.bin/at/parsetime.c
320
tm->tm_hour = 0;
usr.bin/at/parsetime.c
333
plus(struct tm *tm)
usr.bin/at/parsetime.c
350
tm->tm_year += increment;
usr.bin/at/parsetime.c
353
tm->tm_mon += increment;
usr.bin/at/parsetime.c
354
while (tm->tm_mon >= 12) {
usr.bin/at/parsetime.c
355
tm->tm_year++;
usr.bin/at/parsetime.c
356
tm->tm_mon -= 12;
usr.bin/at/parsetime.c
371
dateadd(increment, tm);
usr.bin/at/parsetime.c
385
tod(struct tm *tm)
usr.bin/at/parsetime.c
435
(tm->tm_hour > hour ||
usr.bin/at/parsetime.c
436
(tm->tm_hour == hour && tm->tm_min > minute))) {
usr.bin/at/parsetime.c
437
tm->tm_mday++;
usr.bin/at/parsetime.c
438
tm->tm_wday++;
usr.bin/at/parsetime.c
441
tm->tm_hour = hour;
usr.bin/at/parsetime.c
442
tm->tm_min = minute;
usr.bin/at/parsetime.c
443
if (tm->tm_hour == 24) {
usr.bin/at/parsetime.c
444
tm->tm_hour = 0;
usr.bin/at/parsetime.c
445
tm->tm_mday++;
usr.bin/at/parsetime.c
458
assign_date(struct tm *tm, int mday, int mon, int year)
usr.bin/at/parsetime.c
470
year += (tm->tm_year / 100) * 100;
usr.bin/at/parsetime.c
472
if (year == tm->tm_year - 1)
usr.bin/at/parsetime.c
474
else if (year < tm->tm_year)
usr.bin/at/parsetime.c
480
(tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday)))
usr.bin/at/parsetime.c
481
year = tm->tm_year + 1;
usr.bin/at/parsetime.c
483
tm->tm_mday = mday;
usr.bin/at/parsetime.c
484
tm->tm_mon = mon;
usr.bin/at/parsetime.c
487
tm->tm_year = year;
usr.bin/at/parsetime.c
501
month(struct tm *tm)
usr.bin/at/parsetime.c
510
if (plus(tm) != 0)
usr.bin/at/parsetime.c
516
tm->tm_mday++;
usr.bin/at/parsetime.c
517
tm->tm_wday++;
usr.bin/at/parsetime.c
536
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
545
mday = tm->tm_mday;
usr.bin/at/parsetime.c
548
if (wday < tm->tm_wday)
usr.bin/at/parsetime.c
549
mday += 7 - (tm->tm_wday - wday);
usr.bin/at/parsetime.c
551
mday += (wday - tm->tm_wday);
usr.bin/at/parsetime.c
553
tm->tm_wday = wday;
usr.bin/at/parsetime.c
555
assign_date(tm, mday, tm->tm_mon, tm->tm_year);
usr.bin/at/parsetime.c
605
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
623
struct tm nowtime, runtime;
usr.bin/awk/run.c
2062
struct tm *tm, tmbuf;
usr.bin/awk/run.c
2221
tm = &tmbuf;
usr.bin/awk/run.c
2223
&tm->tm_year, &tm->tm_mon, &tm->tm_mday, &tm->tm_hour,
usr.bin/awk/run.c
2224
&tm->tm_min, &tm->tm_sec, &tm->tm_isdst);
usr.bin/awk/run.c
2227
tm->tm_isdst = -1; /* let mktime figure it out */
usr.bin/awk/run.c
2230
tm->tm_year -= 1900;
usr.bin/awk/run.c
2231
tm->tm_mon--;
usr.bin/awk/run.c
2232
u = mktime(tm);
usr.bin/awk/run.c
2251
tm = localtime(&tv);
usr.bin/awk/run.c
2252
if (tm == NULL)
usr.bin/awk/run.c
2267
} while (strftime(buf, sz, fmt, tm) == 0 && fmt[0] != '\0');
usr.bin/cal/cal.c
148
struct tm *local_time;
usr.bin/cal/cal.c
550
struct tm tm;
usr.bin/cal/cal.c
557
if ((cp = strptime(s, "%b", &tm)) != NULL && *cp == '\0')
usr.bin/cal/cal.c
558
v = tm.tm_mon + 1;
usr.bin/calendar/calendar.h
38
extern struct tm *tp;
usr.bin/calendar/day.c
106
l = strftime(buf, sizeof(buf), "%A", &tm);
usr.bin/calendar/day.c
117
tm.tm_mon = i;
usr.bin/calendar/day.c
118
l = strftime(buf, sizeof(buf), "%b", &tm);
usr.bin/calendar/day.c
127
l = strftime(buf, sizeof(buf), "%B", &tm);
usr.bin/calendar/day.c
188
struct tm tm;
usr.bin/calendar/day.c
196
bzero(&tm, sizeof tm);
usr.bin/calendar/day.c
197
tm.tm_sec = 0;
usr.bin/calendar/day.c
198
tm.tm_min = 0;
usr.bin/calendar/day.c
200
tm.tm_isdst = 0;
usr.bin/calendar/day.c
201
tm.tm_hour = 12;
usr.bin/calendar/day.c
202
tm.tm_wday = 0;
usr.bin/calendar/day.c
203
tm.tm_mday = tp->tm_mday;
usr.bin/calendar/day.c
204
tm.tm_mon = tp->tm_mon;
usr.bin/calendar/day.c
205
tm.tm_year = tp->tm_year;
usr.bin/calendar/day.c
208
tm.tm_mday = atoi(date + len - 2);
usr.bin/calendar/day.c
213
tm.tm_mon = atoi(date + len - 4) - 1;
usr.bin/calendar/day.c
219
tm.tm_year = atoi(date);
usr.bin/calendar/day.c
221
if (tm.tm_year < 69) /* Y2K */
usr.bin/calendar/day.c
222
tm.tm_year += 100;
usr.bin/calendar/day.c
223
else if (tm.tm_year > 1900)
usr.bin/calendar/day.c
224
tm.tm_year -= 1900;
usr.bin/calendar/day.c
228
printf("Mktime: %d %lld %d %s\n", (int)mktime(&tm), (long long)t, len,
usr.bin/calendar/day.c
229
asctime(&tm));
usr.bin/calendar/day.c
231
return(mktime(&tm));
usr.bin/calendar/day.c
273
struct tm tmtmp;
usr.bin/calendar/day.c
428
memcpy(&tmtmp, tp, sizeof(struct tm));
usr.bin/calendar/day.c
493
memcpy(&tmtmp, tp, sizeof(struct tm));
usr.bin/calendar/day.c
52
struct tm *tp;
usr.bin/calendar/day.c
81
fill_print_date(struct match *m, struct tm *tm)
usr.bin/calendar/day.c
84
daynames ? "%a %b %d" : "%b %d", tm) == 0)
usr.bin/calendar/day.c
93
struct tm tm;
usr.bin/calendar/day.c
96
tm.tm_wday = i;
usr.bin/calendar/day.c
97
l = strftime(buf, sizeof(buf), "%a", &tm);
usr.bin/cdio/cdio.c
1001
toc2msf(tr2+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
1002
if (cmpmsf(m2, s2, f2, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
1008
toc2msf(n+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
1012
m2 = tm;
usr.bin/cdio/cdio.c
1015
} else if (cmpmsf(m2, s2, f2, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
688
unsigned char tm, ts, tf;
usr.bin/cdio/cdio.c
975
toc2msf(tr1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
976
addmsf(&m1, &s1, &f1, tm, ts, tf);
usr.bin/cdio/cdio.c
979
toc2msf(tr1+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
980
if (cmpmsf(m1, s1, f1, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
986
toc2msf(n+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
987
if (cmpmsf(m1, s1, f1, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
997
toc2msf(tr2, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
998
addmsf(&m2, &s2, &f2, tm, ts, tf);
usr.bin/chpass/util.c
49
struct tm *tp = localtime(&tval);
usr.bin/chpass/util.c
61
struct tm tm;
usr.bin/chpass/util.c
68
(void) memset(&tm, 0, sizeof(tm));
usr.bin/chpass/util.c
71
t = strptime(p, "%B %d %Y", &tm);
usr.bin/chpass/util.c
74
tm.tm_isdst = -1;
usr.bin/chpass/util.c
75
*store = mktime(&tm);
usr.bin/cvs/checkout.c
491
struct tm datetm;
usr.bin/cvs/client.c
460
struct tm datetm;
usr.bin/cvs/client.c
629
struct tm datetm;
usr.bin/cvs/client.c
699
struct tm datetm;
usr.bin/cvs/client.c
802
struct tm datetm;
usr.bin/cvs/date.y
596
struct tm *tm;
usr.bin/cvs/date.y
600
tm = localtime(&now);
usr.bin/cvs/date.y
601
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
usr.bin/cvs/date.y
610
struct tm *tm;
usr.bin/cvs/date.y
616
tm = localtime(&Start);
usr.bin/cvs/date.y
617
Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth;
usr.bin/cvs/date.y
621
Convert(Month, (time_t)tm->tm_mday, Year,
usr.bin/cvs/date.y
622
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
usr.bin/cvs/date.y
785
difftm(struct tm *a, struct tm *b)
usr.bin/cvs/date.y
810
struct tm gmt, tm;
usr.bin/cvs/date.y
816
!localtime_r(&nowtime, &tm))
usr.bin/cvs/date.y
819
tz = difftm(&gmt, &tm) / 60;
usr.bin/cvs/date.y
821
if (tm.tm_isdst)
usr.bin/cvs/date.y
824
yyYear = tm.tm_year + 1900;
usr.bin/cvs/date.y
825
yyMonth = tm.tm_mon + 1;
usr.bin/cvs/date.y
826
yyDay = tm.tm_mday;
usr.bin/cvs/date.y
853
Start -= ((tm.tm_hour * 60L + tm.tm_min) * 60L) +
usr.bin/cvs/date.y
854
tm.tm_sec;
usr.bin/cvs/diff.c
307
struct tm datetm;
usr.bin/cvs/diff_internals.c
890
struct tm t;
usr.bin/cvs/diff_internals.c
929
struct tm t;
usr.bin/cvs/edit.c
262
struct tm t;
usr.bin/cvs/edit.c
329
struct tm t;
usr.bin/cvs/entries.c
123
struct tm t, dt;
usr.bin/cvs/entries.c
428
struct tm datetm;
usr.bin/cvs/entries.c
508
struct tm datetm;
usr.bin/cvs/history.c
74
struct tm datetm;
usr.bin/cvs/rcs.h
166
struct tm rd_date;
usr.bin/cvs/rcsparse.c
88
struct tm date;
usr.bin/cvs/status.c
255
struct tm datetm;
usr.bin/dig/dig.c
177
struct tm tmnow;
usr.bin/dig/lib/dns/dns_time.c
33
struct tm *tm;
usr.bin/dig/lib/dns/dns_time.c
38
tm = gmtime(&t);
usr.bin/dig/lib/dns/dns_time.c
39
if ((l = strftime(buf, sizeof(buf), "%Y%m%d%H%M%S", tm)) == 0)
usr.bin/dig/lib/dns/gen.c
326
struct tm *tm;
usr.bin/dig/lib/dns/gen.c
430
if ((tm = localtime(&now)) != NULL && tm->tm_year > 104) {
usr.bin/dig/lib/dns/gen.c
432
tm->tm_year + 1900);
usr.bin/finger/lprint.c
70
struct tm *delta;
usr.bin/finger/lprint.c
73
struct tm *tp;
usr.bin/finger/sprint.c
152
struct tm *delta;
usr.bin/ftp/fetch.c
338
struct tm lmt = { 0 };
usr.bin/ftp/util.c
1159
struct tm tm;
usr.bin/ftp/util.c
1162
if (gmtime_r(&t, &tm) == NULL)
usr.bin/ftp/util.c
1165
return (strftime(tmbuf, len, "%a, %d %h %Y %T GMT", &tm));
usr.bin/ftp/util.c
620
struct tm timebuf;
usr.bin/ipcs/ipcs.c
125
struct tm *tm;
usr.bin/ipcs/ipcs.c
130
tm = localtime(&t);
usr.bin/ipcs/ipcs.c
132
tm->tm_hour, tm->tm_min, tm->tm_sec);
usr.bin/kdump/ktrstruct.c
147
struct tm *tm;
usr.bin/kdump/ktrstruct.c
157
tm = localtime(&t);
usr.bin/kdump/ktrstruct.c
158
if (tm != NULL) {
usr.bin/kdump/ktrstruct.c
160
tm);
usr.bin/last/last.c
224
struct tm *tm;
usr.bin/last/last.c
226
tm = localtime(&bp->ut_time);
usr.bin/last/last.c
227
if (tm == NULL) {
usr.bin/last/last.c
235
tm);
usr.bin/last/last.c
556
struct tm *t;
usr.bin/leave/leave.c
62
struct tm *t;
usr.bin/lock/lock.c
76
struct tm *timp;
usr.bin/make/timestamp.c
41
struct tm *parts;
usr.bin/mandoc/mandoc.c
101
struct tm tm;
usr.bin/mandoc/mandoc.c
104
memset(&tm, 0, sizeof(struct tm));
usr.bin/mandoc/mandoc.c
106
pp = strptime(p, fmt, &tm);
usr.bin/mandoc/mandoc.c
108
*t = mktime(&tm);
usr.bin/mandoc/mandoc.c
118
struct tm *tm;
usr.bin/mandoc/mandoc.c
124
tm = localtime(&t);
usr.bin/mandoc/mandoc.c
125
if (tm == NULL)
usr.bin/mandoc/mandoc.c
137
if ((ssz = strftime(p, 10 + 1, "%B ", tm)) == 0)
usr.bin/mandoc/mandoc.c
150
isz = snprintf(p, 4 + 1, "%d, ", tm->tm_mday);
usr.bin/mandoc/mandoc.c
155
if (strftime(p, 4 + 1, "%Y", tm) == 0)
usr.bin/newsyslog/newsyslog.c
1182
struct tm tm;
usr.bin/newsyslog/newsyslog.c
1185
if (localtime_r(&timenow, &tm) == NULL)
usr.bin/newsyslog/newsyslog.c
1188
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
usr.bin/newsyslog/newsyslog.c
1218
if (strptime(s, format, &tm) == NULL)
usr.bin/newsyslog/newsyslog.c
1221
return mktime(&tm);
usr.bin/newsyslog/newsyslog.c
1243
struct tm tm;
usr.bin/newsyslog/newsyslog.c
1247
if (localtime_r(&timenow, &tm) == NULL)
usr.bin/newsyslog/newsyslog.c
1252
nd = mtab[tm.tm_mon];
usr.bin/newsyslog/newsyslog.c
1254
if (tm.tm_mon == 1) {
usr.bin/newsyslog/newsyslog.c
1255
if (((tm.tm_year + 1900) % 4 == 0) &&
usr.bin/newsyslog/newsyslog.c
1256
(((tm.tm_year + 1900) % 100 != 0) ||
usr.bin/newsyslog/newsyslog.c
1257
((tm.tm_year + 1900) % 400 == 0))) {
usr.bin/newsyslog/newsyslog.c
1261
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
usr.bin/newsyslog/newsyslog.c
1273
tm.tm_hour = l;
usr.bin/newsyslog/newsyslog.c
1284
if (l != tm.tm_wday) {
usr.bin/newsyslog/newsyslog.c
1287
if (l < tm.tm_wday) {
usr.bin/newsyslog/newsyslog.c
1288
save = 6 - tm.tm_wday;
usr.bin/newsyslog/newsyslog.c
1291
save = l - tm.tm_wday;
usr.bin/newsyslog/newsyslog.c
1294
tm.tm_mday += save;
usr.bin/newsyslog/newsyslog.c
1296
if (tm.tm_mday > nd) {
usr.bin/newsyslog/newsyslog.c
1297
tm.tm_mon++;
usr.bin/newsyslog/newsyslog.c
1298
tm.tm_mday = tm.tm_mday - nd;
usr.bin/newsyslog/newsyslog.c
1309
tm.tm_mday = nd;
usr.bin/newsyslog/newsyslog.c
1319
if (l < tm.tm_mday)
usr.bin/newsyslog/newsyslog.c
1320
tm.tm_mon++;
usr.bin/newsyslog/newsyslog.c
1321
tm.tm_mday = l;
usr.bin/newsyslog/newsyslog.c
1335
return (mktime(&tm));
usr.bin/newsyslog/newsyslog.c
405
struct tm *tm;
usr.bin/newsyslog/newsyslog.c
412
tm = gmtime(&now.tv_sec);
usr.bin/newsyslog/newsyslog.c
413
l = strftime(daytime, sizeof(daytime), "%FT%T", tm);
usr.bin/openssl/ca.c
1714
ASN1_UTCTIME *tm;
usr.bin/openssl/ca.c
2198
if ((tm = X509_get_notAfter(ret)) == NULL)
usr.bin/openssl/ca.c
2200
row[DB_exp_date] = strndup(ASN1_STRING_get0_data(tm),
usr.bin/openssl/ca.c
2201
ASN1_STRING_length(tm));
usr.bin/openssl/ca.c
2278
ASN1_UTCTIME *tm = NULL;
usr.bin/openssl/ca.c
2326
if ((tm = X509_get_notAfter(x509)) == NULL)
usr.bin/openssl/ca.c
2328
row[DB_exp_date] = strndup(ASN1_STRING_get0_data(tm),
usr.bin/openssl/ca.c
2329
ASN1_STRING_length(tm));
usr.bin/openssl/speed.c
2687
int bits, int tm)
usr.bin/openssl/speed.c
2690
: "Doing %d bit %s %s for %ds: ", bits, str, str2, tm);
usr.bin/openssl/speed.c
2692
alarm(tm);
usr.bin/pr/pr.c
1414
struct tm *timeptr = NULL;
usr.bin/rcs/ci.c
472
struct tm *t, *t_head;
usr.bin/rcs/date.y
601
struct tm *tm;
usr.bin/rcs/date.y
605
tm = localtime(&now);
usr.bin/rcs/date.y
606
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
usr.bin/rcs/date.y
615
struct tm *tm;
usr.bin/rcs/date.y
621
tm = localtime(&Start);
usr.bin/rcs/date.y
622
Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth;
usr.bin/rcs/date.y
626
Convert(Month, (time_t)tm->tm_mday, Year,
usr.bin/rcs/date.y
627
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
usr.bin/rcs/date.y
790
difftm(struct tm *a, struct tm *b)
usr.bin/rcs/date.y
815
struct tm gmt, tm;
usr.bin/rcs/date.y
821
!localtime_r(&nowtime, &tm))
usr.bin/rcs/date.y
824
tz = difftm(&gmt, &tm) / 60;
usr.bin/rcs/date.y
826
if (tm.tm_isdst)
usr.bin/rcs/date.y
829
yyYear = tm.tm_year + 1900;
usr.bin/rcs/date.y
830
yyMonth = tm.tm_mon + 1;
usr.bin/rcs/date.y
831
yyDay = tm.tm_mday;
usr.bin/rcs/date.y
858
Start -= ((tm.tm_hour * 60L + tm.tm_min) * 60L) +
usr.bin/rcs/date.y
859
tm.tm_sec;
usr.bin/rcs/diff.c
880
struct tm *t;
usr.bin/rcs/rcs.c
1491
struct tm tb;
usr.bin/rcs/rcs.h
183
struct tm rd_date;
usr.bin/rcs/rcs.h
267
void rcs_set_tz(char *, struct rcs_delta *, struct tm *);
usr.bin/rcs/rcsdiff.c
280
struct tm *tb;
usr.bin/rcs/rcsparse.c
88
struct tm date;
usr.bin/rcs/rcstime.c
35
rcs_set_tz(char *tz, struct rcs_delta *rdp, struct tm *tb)
usr.bin/rcs/rcstime.c
41
struct tm *ltb;
usr.bin/rcs/rlog.c
442
struct tm t;
usr.bin/rup/rup.c
182
struct tm *tmp_time, host_time;
usr.bin/rwall/rwall.c
106
struct tm *lt;
usr.bin/ssh/krl.c
812
struct tm *tm;
usr.bin/ssh/krl.c
815
tm = localtime(&t);
usr.bin/ssh/krl.c
816
if (tm == NULL)
usr.bin/ssh/krl.c
820
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
usr.bin/ssh/misc.c
2448
struct tm tm;
usr.bin/ssh/misc.c
2489
memset(&tm, 0, sizeof(tm));
usr.bin/ssh/misc.c
2490
if ((cp = strptime(buf, fmt, &tm)) == NULL || *cp != '\0')
usr.bin/ssh/misc.c
2493
if ((tt = timegm(&tm)) < 0)
usr.bin/ssh/misc.c
2496
if ((tt = mktime(&tm)) < 0)
usr.bin/ssh/misc.c
2508
struct tm tm;
usr.bin/ssh/misc.c
2510
if (localtime_r(&tt, &tm) == NULL)
usr.bin/ssh/misc.c
2513
strftime(buf, len, "%Y-%m-%dT%H:%M:%S", &tm);
usr.bin/ssh/moduli.c
143
struct tm *gtm;
usr.bin/ssh/sftp-common.c
217
struct tm *ltime = localtime(&st->st_mtime);
usr.bin/stat/stat.c
496
struct tm *tm;
usr.bin/stat/stat.c
638
tm = localtime(&secs);
usr.bin/stat/stat.c
639
(void)strftime(path, sizeof(path), timefmt, tm);
usr.bin/systat/pf.c
208
time_t tm = 0;
usr.bin/systat/pf.c
219
tm = uptime.tv_sec - s->since;
usr.bin/systat/pf.c
222
ADD_LINE_A("pf", "Since", tm);
usr.bin/systat/pf.c
282
if (tm > 0)
usr.bin/systat/pf.c
284
(double)s->fcounters[i] / (double)tm);
usr.bin/systat/pf.c
294
if (tm > 0)
usr.bin/systat/pf.c
296
(double)s->scounters[i] / (double)tm);
usr.bin/systat/pf.c
305
if (tm > 0)
usr.bin/systat/pf.c
307
(double)s->ncounters[i] / (double)tm);
usr.bin/systat/pf.c
314
if (tm > 0)
usr.bin/systat/pf.c
316
(double)s->counters[i] / (double)tm);
usr.bin/systat/pf.c
323
if (tm > 0)
usr.bin/systat/pf.c
325
(double)s->lcounters[i] / (double)tm);
usr.bin/systat/vmstat.c
496
double tm;
usr.bin/systat/vmstat.c
499
tm = 0;
usr.bin/systat/vmstat.c
501
tm += s.cpustats.cs_time[i];
usr.bin/systat/vmstat.c
502
if (tm == 0.0)
usr.bin/systat/vmstat.c
503
tm = 1.0;
usr.bin/systat/vmstat.c
504
return (s.cpustats.cs_time[indx] * 100.0 / tm);
usr.bin/tmux/format.c
170
struct tm tm;
usr.bin/tmux/format.c
290
memcpy(&to->tm, &from->tm, sizeof to->tm);
usr.bin/tmux/format.c
3956
struct tm now_tm, tm;
usr.bin/tmux/format.c
3966
localtime_r(&t, &tm);
usr.bin/tmux/format.c
3971
strftime(s, sizeof s, "%H:%M:%S", &tm);
usr.bin/tmux/format.c
3973
strftime(s, sizeof s, "%H:%M", &tm);
usr.bin/tmux/format.c
3978
if ((tm.tm_year == now_tm.tm_year && tm.tm_mon == now_tm.tm_mon) ||
usr.bin/tmux/format.c
3980
strftime(s, sizeof s, "%a%d", &tm);
usr.bin/tmux/format.c
3985
if ((tm.tm_year == now_tm.tm_year && tm.tm_mon < now_tm.tm_mon) ||
usr.bin/tmux/format.c
3986
(tm.tm_year == now_tm.tm_year - 1 && tm.tm_mon > now_tm.tm_mon)) {
usr.bin/tmux/format.c
3987
strftime(s, sizeof s, "%d%b", &tm);
usr.bin/tmux/format.c
3992
strftime(s, sizeof s, "%h%y", &tm);
usr.bin/tmux/format.c
4010
struct tm tm;
usr.bin/tmux/format.c
4081
localtime_r(&t, &tm);
usr.bin/tmux/format.c
4082
strftime(s, sizeof s, time_format, &tm);
usr.bin/tmux/format.c
5526
localtime_r(&es->time, &es->tm);
usr.bin/tmux/format.c
5528
if (strftime(expanded, sizeof expanded, fmt, &es->tm) == 0) {
usr.bin/tmux/window-clock.c
152
struct tm now, then;
usr.bin/tmux/window-clock.c
233
struct tm *tm;
usr.bin/tmux/window-clock.c
242
tm = localtime(&t);
usr.bin/tmux/window-clock.c
249
if (tm->tm_hour >= 12)
usr.bin/tmux/window-clock.c
258
strftime(tim, sizeof tim, timeformat, tm);
usr.bin/touch/touch.c
162
struct tm *lt;
usr.bin/touch/touch.c
237
struct tm *lt;
usr.bin/touch/touch.c
289
struct tm tm;
usr.bin/touch/touch.c
294
memset(&tm, 0, sizeof(tm));
usr.bin/touch/touch.c
295
p = strptime(arg, "%F", &tm);
usr.bin/touch/touch.c
298
p = strptime(p + 1, "%T", &tm);
usr.bin/touch/touch.c
325
tm.tm_isdst = -1;
usr.bin/touch/touch.c
326
tsp[0].tv_sec = utc ? timegm(&tm) : mktime(&tm);
usr.bin/ts/ts.c
186
struct tm *tm;
usr.bin/ts/ts.c
189
if ((tm = localtime(&ts->tv_sec)) == NULL)
usr.bin/ts/ts.c
201
while (strftime(outbuf, obsize, buf, tm) == 0) {
usr.bin/vi/common/cut.c
102
(LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) {
usr.bin/vi/common/cut.c
113
(LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) {
usr.bin/vi/common/cut.c
140
for (lno = fm->lno; lno <= tm->lno; ++lno)
usr.bin/vi/common/cut.c
148
if (cut_line(sp, fm->lno, fm->cno, fm->lno != tm->lno ?
usr.bin/vi/common/cut.c
149
CUT_LINE_TO_EOL : (tm->cno - fm->cno) + 1, cbp))
usr.bin/vi/common/cut.c
153
for (lno = fm->lno; ++lno < tm->lno;)
usr.bin/vi/common/cut.c
158
if (tm->lno != fm->lno &&
usr.bin/vi/common/cut.c
159
cut_line(sp, lno, 0, tm->cno + 1, cbp))
usr.bin/vi/common/cut.c
65
cut(SCR *sp, CHAR_T *namep, MARK *fm, MARK *tm, int flags)
usr.bin/vi/common/cut.c
73
if (fm->lno == OOBLNO || tm->lno == OOBLNO)
usr.bin/vi/common/delete.c
115
if (db_get(sp, tm->lno, DBG_FATAL, &p, &len))
usr.bin/vi/common/delete.c
117
if (len != 0 && tm->cno != len - 1) {
usr.bin/vi/common/delete.c
118
if (len < tm->cno + 1 || len - (tm->cno + 1) > SIZE_MAX - tlen) {
usr.bin/vi/common/delete.c
122
nlen = (len - (tm->cno + 1)) + tlen;
usr.bin/vi/common/delete.c
128
memcpy(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1));
usr.bin/vi/common/delete.c
129
tlen += len - (tm->cno + 1);
usr.bin/vi/common/delete.c
137
for (lno = tm->lno; lno > fm->lno; --lno) {
usr.bin/vi/common/delete.c
33
del(SCR *sp, MARK *fm, MARK *tm, int lmode)
usr.bin/vi/common/delete.c
44
for (lno = tm->lno; lno >= fm->lno; --lno) {
usr.bin/vi/common/delete.c
60
if (tm->lno >= lno) {
usr.bin/vi/common/delete.c
61
if (tm->lno == lno) {
usr.bin/vi/common/delete.c
64
eof = tm->cno != -1 && tm->cno >= len ? 1 : 0;
usr.bin/vi/common/delete.c
68
for (lno = tm->lno; lno > fm->lno; --lno) {
usr.bin/vi/common/delete.c
87
if (tm->lno == fm->lno) {
usr.bin/vi/common/delete.c
94
memcpy(bp + fm->cno, p + (tm->cno + 1), len - (tm->cno + 1));
usr.bin/vi/common/delete.c
96
bp, len - ((tm->cno - fm->cno) + 1)))
usr.bin/vi/common/exf.c
731
file_write(SCR *sp, MARK *fm, MARK *tm, char *name, int flags)
usr.bin/vi/common/exf.c
861
tm = &to;
usr.bin/vi/common/exf.c
864
rval = ex_writefp(sp, name, fp, fm, tm, &nlno, &nch, 0);
usr.bin/vi/ex/ex_filter.c
108
if (ex_writefp(sp, "filter", ifp, fm, tm, NULL, NULL, 1))
usr.bin/vi/ex/ex_filter.c
260
ifp, fm, tm, NULL, NULL, 1));
usr.bin/vi/ex/ex_filter.c
299
if (ex_readfp(sp, "filter", ofp, tm, &nread, 1))
usr.bin/vi/ex/ex_filter.c
305
(cut(sp, NULL, fm, tm, CUT_LINEMODE) ||
usr.bin/vi/ex/ex_filter.c
306
del(sp, fm, tm, 1))) {
usr.bin/vi/ex/ex_filter.c
41
ex_filter(SCR *sp, EXCMD *cmdp, MARK *fm, MARK *tm, MARK *rp, char *cmd,
usr.bin/vi/ex/ex_move.c
35
MARK fm1, fm2, m, tm;
usr.bin/vi/ex/ex_move.c
60
tm.lno = cmdp->lineno;
usr.bin/vi/ex/ex_move.c
61
tm.cno = 0;
usr.bin/vi/ex/ex_move.c
62
if (put(sp, &cb, NULL, &tm, &m, 1, 1))
usr.bin/vi/ex/ex_write.c
267
ex_writefp(SCR *sp, char *name, FILE *fp, MARK *fm, MARK *tm, u_long *nlno,
usr.bin/vi/ex/ex_write.c
280
tline = tm->lno;
usr.bin/vi/vi/v_txt.c
241
v_txt(SCR *sp, VICMD *vp, MARK *tm, const char *lp, size_t len,
usr.bin/vi/vi/v_txt.c
320
tp->owrite = (tm->cno - tp->cno) + 1;
usr.bin/vi/vi/v_txt.c
321
tp->insert = (len - tm->cno) - 1;
usr.bin/vi/vi/v_txt.c
325
if (LF_ISSET(TXT_EMARK) && txt_emark(sp, tp, tm->cno))
usr.bin/w/pr_time.c
48
struct tm *tp;
usr.bin/wall/wall.c
178
struct tm *lt;
usr.sbin/ac/ac.c
400
struct tm *ltm;
usr.sbin/acme-client/revokeproc.c
44
struct tm t;
usr.sbin/acme-client/revokeproc.c
64
struct tm t;
usr.sbin/amd/amq/amq.c
111
struct tm *tp = localtime(&t);
usr.sbin/amd/amq/amq.c
93
struct tm *tp = localtime(&t);
usr.sbin/btrace/btrace.c
1270
struct tm *tm;
usr.sbin/btrace/btrace.c
1278
tm = localtime(&time);
usr.sbin/btrace/btrace.c
1279
strftime(buf, sizeof(buf), ba2str(ba, dtev), tm);
usr.sbin/cron/cron.c
285
struct tm *tm = gmtime(&virtualSecond);
usr.sbin/cron/cron.c
292
minute = tm->tm_min -FIRST_MINUTE;
usr.sbin/cron/cron.c
293
hour = tm->tm_hour -FIRST_HOUR;
usr.sbin/cron/cron.c
294
dom = tm->tm_mday -FIRST_DOM;
usr.sbin/cron/cron.c
295
month = tm->tm_mon +1 /* 0..11 -> 1..12 */ -FIRST_MONTH;
usr.sbin/cron/cron.c
296
dow = tm->tm_wday -FIRST_DOW;
usr.sbin/cron/cron.c
331
struct tm tm;
usr.sbin/cron/cron.c
337
tm = *localtime(&StartTime);
usr.sbin/cron/cron.c
338
if (initialize || tm.tm_isdst != isdst) {
usr.sbin/cron/cron.c
339
isdst = tm.tm_isdst;
usr.sbin/cron/cron.c
340
GMToff = get_gmtoff(&StartTime, &tm);
usr.sbin/dhcpd/parse.c
508
struct tm tm;
usr.sbin/dhcpd/parse.c
545
memset(&tm, 0, sizeof(tm)); /* 'cuz strptime ignores tm_isdt. */
usr.sbin/dhcpd/parse.c
546
p = strptime(timestr, DB_TIMEFMT, &tm);
usr.sbin/dhcpd/parse.c
548
p = strptime(timestr, OLD_DB_TIMEFMT, &tm);
usr.sbin/dhcpd/parse.c
555
guess = timegm(&tm);
usr.sbin/eigrpd/packet.c
255
struct seq_addr_head *seq_addr_list, struct tlv_mcast_seq *tm)
usr.sbin/eigrpd/packet.c
295
if (tm)
usr.sbin/eigrpd/packet.c
296
nbr->next_mcast_seq = ntohl(tm->seq);
usr.sbin/eigrpd/packet.c
332
struct tlv_mcast_seq *tm = NULL;
usr.sbin/eigrpd/packet.c
379
if ((tm = tlv_decode_mcast_seq(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
428
tm) < 0)
usr.sbin/eigrpd/tlv.c
123
struct tlv_mcast_seq tm;
usr.sbin/eigrpd/tlv.c
125
tm.type = htons(TLV_TYPE_MCAST_SEQ);
usr.sbin/eigrpd/tlv.c
126
tm.length = htons(TLV_TYPE_MCAST_SEQ_LEN);
usr.sbin/eigrpd/tlv.c
127
tm.seq = htonl(seq);
usr.sbin/eigrpd/tlv.c
129
return (ibuf_add(buf, &tm, sizeof(tm)));
usr.sbin/eigrpd/tlv.c
347
struct tlv_mcast_seq *tm;
usr.sbin/eigrpd/tlv.c
353
tm = (struct tlv_mcast_seq *)buf;
usr.sbin/eigrpd/tlv.c
354
return (tm);
usr.sbin/httpd/server_file.c
496
struct tm tm;
usr.sbin/httpd/server_file.c
561
localtime_r(&t, &tm);
usr.sbin/httpd/server_file.c
562
strftime(tmstr, sizeof(tmstr), "%d-%h-%Y %R", &tm);
usr.sbin/httpd/server_file.c
720
struct tm tm;
usr.sbin/httpd/server_file.c
725
memset(&tm, 0, sizeof(struct tm));
usr.sbin/httpd/server_file.c
732
"%a, %d %h %Y %T %Z", &tm) != NULL &&
usr.sbin/httpd/server_file.c
733
timegm(&tm) >= mtim->tv_sec)
usr.sbin/httpd/server_http.c
1855
struct tm *tm;
usr.sbin/httpd/server_http.c
1876
if ((tm = localtime(&t)) == NULL)
usr.sbin/httpd/server_http.c
1878
if (strftime(tstamp, sizeof(tstamp), "%d/%b/%Y:%H:%M:%S %z", tm) == 0)
usr.sbin/httpd/server_http.c
793
struct tm tm;
usr.sbin/httpd/server_http.c
796
if (t == -1 || gmtime_r(&t, &tm) == NULL)
usr.sbin/httpd/server_http.c
799
return (strftime(tmbuf, len, "%a, %d %h %Y %T GMT", &tm));
usr.sbin/ldapd/attributes.c
251
ldap_strftime(time_t tm)
usr.sbin/ldapd/attributes.c
254
struct tm *gmt = gmtime(&tm);
usr.sbin/ldapd/ldapd.h
424
char *ldap_strftime(time_t tm);
usr.sbin/makefs/cd9660/cd9660_conversion.c
152
struct tm t, gm;
usr.sbin/makefs/cd9660/cd9660_conversion.c
172
struct tm t;
usr.sbin/makefs/cd9660/cd9660_conversion.c
192
struct tm t;
usr.sbin/makefs/msdos/mkfs_msdos.c
232
struct tm *tm;
usr.sbin/makefs/msdos/mkfs_msdos.c
596
tm = localtime(&now);
usr.sbin/makefs/msdos/mkfs_msdos.c
660
x = (((u_int)(1 + tm->tm_mon) << 8 |
usr.sbin/makefs/msdos/mkfs_msdos.c
661
(u_int)tm->tm_mday) +
usr.sbin/makefs/msdos/mkfs_msdos.c
662
((u_int)tm->tm_sec << 8 |
usr.sbin/makefs/msdos/mkfs_msdos.c
664
((u_int)(1900 + tm->tm_year) +
usr.sbin/makefs/msdos/mkfs_msdos.c
665
((u_int)tm->tm_hour << 8 |
usr.sbin/makefs/msdos/mkfs_msdos.c
666
(u_int)tm->tm_min));
usr.sbin/makefs/msdos/mkfs_msdos.c
701
x = (u_int)tm->tm_hour << 11 |
usr.sbin/makefs/msdos/mkfs_msdos.c
702
(u_int)tm->tm_min << 5 |
usr.sbin/makefs/msdos/mkfs_msdos.c
703
(u_int)tm->tm_sec >> 1;
usr.sbin/makefs/msdos/mkfs_msdos.c
705
x = (u_int)(tm->tm_year - 80) << 9 |
usr.sbin/makefs/msdos/mkfs_msdos.c
706
(u_int)(tm->tm_mon + 1) << 5 |
usr.sbin/makefs/msdos/mkfs_msdos.c
707
(u_int)tm->tm_mday;
usr.sbin/mopd/common/put.c
81
struct tm *timenow;
usr.sbin/mrouted/main.c
551
struct tm *thyme;
usr.sbin/ndp/ndp.c
576
struct tm *tm;
usr.sbin/ndp/ndp.c
578
tm = localtime(&now.tv_sec);
usr.sbin/ndp/ndp.c
579
if (tm != NULL) {
usr.sbin/ndp/ndp.c
580
strftime(buf, sizeof(buf), "%H:%M:%S", tm);
usr.sbin/npppctl/npppctl.c
282
struct tm tm;
usr.sbin/npppctl/npppctl.c
286
localtime_r(&w->time, &tm);
usr.sbin/npppctl/npppctl.c
287
strftime(time_buf, sizeof(time_buf), "%Y/%m/%d %T", &tm);
usr.sbin/npppd/common/debugutil.c
128
struct tm *lt;
usr.sbin/nsd/rdata.c
441
struct tm tmbuf;
usr.sbin/nsd/rdata.c
442
struct tm* tm;
usr.sbin/nsd/rdata.c
449
tm = gmtime_r(&time, &tmbuf);
usr.sbin/nsd/rdata.c
450
if (!strftime(buf, sizeof(buf), "%Y%m%d%H%M%S", tm))
usr.sbin/nsd/util.c
173
struct tm tm, *tm_p;
usr.sbin/nsd/util.c
175
tm_p = localtime_r(&now, &tm);
usr.sbin/nsd/util.c
192
struct tm tm;
usr.sbin/nsd/util.c
195
localtime_r(&now, &tm));
usr.sbin/nsd/xfrd.c
2408
struct tm* tm = localtime(&v);
usr.sbin/nsd/xfrd.c
2410
if(!strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S", tm))
usr.sbin/ntpd/constraint.c
1068
if ((tm = gmtime(¬before)) == NULL)
usr.sbin/ntpd/constraint.c
1070
if (strftime(timebuf1, sizeof(timebuf1), X509_DATE, tm) == 0)
usr.sbin/ntpd/constraint.c
1081
if ((tm = gmtime(¬after)) == NULL)
usr.sbin/ntpd/constraint.c
1083
if (strftime(timebuf1, sizeof(timebuf1), X509_DATE, tm) == 0)
usr.sbin/ntpd/constraint.c
91
struct tm tls_tm;
usr.sbin/ntpd/constraint.c
983
struct tm *tm;
usr.sbin/ocspcheck/ocspcheck.c
187
struct tm tm;
usr.sbin/ocspcheck/ocspcheck.c
195
if (!ASN1_TIME_to_tm(gt, &tm))
usr.sbin/ocspcheck/ocspcheck.c
197
if (!OPENSSL_timegm(&tm, &rv))
usr.sbin/pppd/chat/chat.c
1320
struct tm* tm_now = localtime (&time_now);
usr.sbin/radiusctl/radiusctl.c
1016
struct tm tm;
usr.sbin/radiusctl/radiusctl.c
1018
localtime_r(&tim->tv_sec, &tm);
usr.sbin/radiusctl/radiusctl.c
1019
strftime(buf, bufsiz, "%F %T", &tm);
usr.sbin/radiusctl/radiusctl.c
1028
struct tm tm;
usr.sbin/radiusctl/radiusctl.c
1030
localtime_r(&tim->tv_sec, &tm);
usr.sbin/radiusctl/radiusctl.c
1032
strftime(buf, bufsiz, "%l:%M%p", &tm);
usr.sbin/radiusctl/radiusctl.c
1034
strftime(buf, bufsiz, "%e%b%y", &tm);
usr.sbin/radiusctl/radiusctl.c
1036
strftime(buf, bufsiz, "%m/%d", &tm);
usr.sbin/radiusd/log.c
64
struct tm tm;
usr.sbin/radiusd/log.c
89
localtime_r(&curr, &tm);
usr.sbin/radiusd/log.c
90
strftime(fmtbuf, sizeof(fmtbuf), "%Y-%m-%d %H:%M:%S:", &tm);
usr.sbin/rbootd/utils.c
75
struct tm *tmp;
usr.sbin/rdate/rdate.c
189
struct tm *ltm;
usr.sbin/relayd/relay_http.c
1045
struct tm tm;
usr.sbin/relayd/relay_http.c
1048
if (t == -1 || gmtime_r(&t, &tm) == NULL)
usr.sbin/relayd/relay_http.c
1051
return (strftime(tmbuf, len, "%a, %d %h %Y %T GMT", &tm));
usr.sbin/route6d/route6d.c
3122
struct tm *tm;
usr.sbin/route6d/route6d.c
3125
if ((tm = localtime(&t)) == 0) {
usr.sbin/route6d/route6d.c
3129
snprintf(buf, sizeof(buf), "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
usr.sbin/route6d/route6d.c
3130
tm->tm_sec);
usr.sbin/rpki-client/output-json.c
30
struct tm *tp;
usr.sbin/rpki-client/output.c
256
struct tm *tp;
usr.sbin/rpki-client/print.c
91
struct tm tm;
usr.sbin/rpki-client/print.c
93
if (gmtime_r(&t, &tm) == NULL)
usr.sbin/rpki-client/print.c
96
strftime(buf, sizeof(buf), "%a %d %b %Y %T %z", &tm);
usr.sbin/rpki-client/x509.c
292
struct tm tm;
usr.sbin/rpki-client/x509.c
295
memset(&tm, 0, sizeof(tm));
usr.sbin/rpki-client/x509.c
299
if (!ASN1_TIME_to_tm(at, &tm))
usr.sbin/rpki-client/x509.c
301
if ((*t = timegm(&tm)) == -1)
usr.sbin/slaacctl/slaacctl.c
183
struct tm *t;
usr.sbin/smtpd/mta.c
160
time_t tm;
usr.sbin/smtpd/mta.c
1600
time_t tm;
usr.sbin/smtpd/mta.c
1605
tm = 0;
usr.sbin/smtpd/mta.c
1631
if (limit_host || limit_route || tm)
usr.sbin/smtpd/mta.c
1675
if (tm == 0 || mx->host->lastconn + l->conndelay_host < tm)
usr.sbin/smtpd/mta.c
1676
tm = mx->host->lastconn + l->conndelay_host;
usr.sbin/smtpd/mta.c
1710
if (tm == 0 || route->lastconn + l->conndelay_route < tm)
usr.sbin/smtpd/mta.c
1711
tm = route->lastconn + l->conndelay_route;
usr.sbin/smtpd/mta.c
1720
if (tm == 0 || route->lastdisc + l->discdelay_route < tm)
usr.sbin/smtpd/mta.c
1721
tm = route->lastdisc + l->discdelay_route;
usr.sbin/smtpd/mta.c
1759
else if (tm) {
usr.sbin/smtpd/mta.c
1760
if (tm > *nextconn)
usr.sbin/smtpd/mta.c
1761
*nextconn = tm;
usr.sbin/smtpd/mta.c
2644
hs->tm = time(NULL);
usr.sbin/smtpd/mta.c
395
hostname, (unsigned long long) hs->tm,
usr.sbin/smtpd/to.c
142
struct tm *lt;
usr.sbin/snmpd/mib.y
499
struct tm tm = {};
usr.sbin/snmpd/mib.y
512
if (strptime(timebuf, "%Y%m%d%H%MZ", &tm) == NULL) {
usr.sbin/snmpd/mib.y
517
if (($$ = mktime(&tm)) == -1) {
usr.sbin/syslogd/syslogd.c
1788
struct tm *tm;
usr.sbin/syslogd/syslogd.c
1791
tm = gmtime(&now.tv_sec);
usr.sbin/syslogd/syslogd.c
1792
l = strftime(timestamp, 33, "%FT%T", tm);
usr.sbin/tcpdump/gmt2local.c
47
struct tm *gmt, *loc;
usr.sbin/tcpdump/gmt2local.c
48
struct tm sgmt;
usr.sbin/tcpdump/privsep.c
586
struct tm *lt, *gt;
usr.sbin/tcpdump/privsep.c
736
struct tm *
usr.sbin/tcpdump/privsep.c
739
static struct tm lt, gt0;
usr.sbin/tcpdump/privsep.c
740
static struct tm *gt = NULL;
usr.sbin/tcpdump/privsep.c
748
if (memcmp(gt, >0, sizeof(struct tm)) == 0) {
usr.sbin/tcpdump/privsep.h
59
struct tm *priv_localtime(const time_t *);
usr.sbin/tcpdump/smbutil.c
56
struct tm t;
usr.sbin/unbound/daemon/remote.c
3394
struct tm tm;
usr.sbin/unbound/daemon/remote.c
3395
struct tm *tm_p;
usr.sbin/unbound/daemon/remote.c
3397
&z->soa_zone_acquired, &tm);
usr.sbin/unbound/services/cache/infra.c
558
socklen_t addrlen, uint8_t* name, size_t namelen, time_t tm)
usr.sbin/unbound/services/cache/infra.c
582
data_entry_init(infra, &key->entry, tm);
usr.sbin/unbound/sldns/parseutil.c
120
sldns_mon_and_mday_from_year_and_yday(struct tm *result)
usr.sbin/unbound/sldns/parseutil.c
134
sldns_wday_from_year_and_yday(struct tm *result)
usr.sbin/unbound/sldns/parseutil.c
146
static struct tm *
usr.sbin/unbound/sldns/parseutil.c
147
sldns_gmtime64_r(int64_t clock, struct tm *result)
usr.sbin/unbound/sldns/parseutil.c
174
struct tm *
usr.sbin/unbound/sldns/parseutil.c
175
sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result)
usr.sbin/unbound/sldns/parseutil.c
72
sldns_mktime_from_utc(const struct tm *tm)
usr.sbin/unbound/sldns/parseutil.c
74
int year = 1900 + tm->tm_year;
usr.sbin/unbound/sldns/parseutil.c
81
for (i = 0; i < tm->tm_mon; ++i) {
usr.sbin/unbound/sldns/parseutil.c
84
if (tm->tm_mon > 1 && is_leap_year(year)) {
usr.sbin/unbound/sldns/parseutil.c
87
days += tm->tm_mday - 1;
usr.sbin/unbound/sldns/parseutil.c
89
hours = days * 24 + tm->tm_hour;
usr.sbin/unbound/sldns/parseutil.c
90
minutes = hours * 60 + tm->tm_min;
usr.sbin/unbound/sldns/parseutil.c
91
seconds = minutes * 60 + tm->tm_sec;
usr.sbin/unbound/sldns/parseutil.c
99
sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result)
usr.sbin/unbound/sldns/parseutil.h
17
struct tm;
usr.sbin/unbound/sldns/parseutil.h
55
time_t sldns_mktime_from_utc(const struct tm *tm);
usr.sbin/unbound/sldns/parseutil.h
71
struct tm * sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result);
usr.sbin/unbound/sldns/str2wire.c
2147
struct tm tm;
usr.sbin/unbound/sldns/str2wire.c
2152
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/sldns/str2wire.c
2154
&tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour,
usr.sbin/unbound/sldns/str2wire.c
2155
&tm.tm_min, &tm.tm_sec) == 6) {
usr.sbin/unbound/sldns/str2wire.c
2156
tm.tm_year -= 1900;
usr.sbin/unbound/sldns/str2wire.c
2157
tm.tm_mon--;
usr.sbin/unbound/sldns/str2wire.c
2159
if (tm.tm_year < 70)
usr.sbin/unbound/sldns/str2wire.c
2161
if (tm.tm_mon < 0 || tm.tm_mon > 11)
usr.sbin/unbound/sldns/str2wire.c
2163
if (tm.tm_mday < 1 || tm.tm_mday > 31)
usr.sbin/unbound/sldns/str2wire.c
2165
if (tm.tm_hour < 0 || tm.tm_hour > 23)
usr.sbin/unbound/sldns/str2wire.c
2167
if (tm.tm_min < 0 || tm.tm_min > 59)
usr.sbin/unbound/sldns/str2wire.c
2169
if (tm.tm_sec < 0 || tm.tm_sec > 59)
usr.sbin/unbound/sldns/str2wire.c
2172
sldns_write_uint32(rd, (uint32_t)sldns_mktime_from_utc(&tm));
usr.sbin/unbound/sldns/wire2str.c
1685
struct tm tm;
usr.sbin/unbound/sldns/wire2str.c
1688
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/sldns/wire2str.c
1692
if(sldns_serial_arithmetics_gmtime_r(t, time(NULL), &tm) &&
usr.sbin/unbound/sldns/wire2str.c
1693
strftime(date_buf, 15, "%Y%m%d%H%M%S", &tm)) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1325
struct tm tm;
usr.sbin/unbound/smallapp/unbound-anchor.c
1331
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/smallapp/unbound-anchor.c
1333
s = strptime(s, "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
usr.sbin/unbound/smallapp/unbound-anchor.c
1361
tm.tm_hour += hr;
usr.sbin/unbound/smallapp/unbound-anchor.c
1362
tm.tm_min += mn;
usr.sbin/unbound/smallapp/unbound-anchor.c
1364
tm.tm_hour -= hr;
usr.sbin/unbound/smallapp/unbound-anchor.c
1365
tm.tm_min -= mn;
usr.sbin/unbound/smallapp/unbound-anchor.c
1375
t = sldns_mktime_from_utc(&tm);
usr.sbin/unbound/testcode/signit.c
81
struct tm tm;
usr.sbin/unbound/testcode/signit.c
82
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/testcode/signit.c
85
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
usr.sbin/unbound/testcode/signit.c
86
&tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6)
usr.sbin/unbound/testcode/signit.c
88
tm.tm_year -= 1900;
usr.sbin/unbound/testcode/signit.c
89
tm.tm_mon--;
usr.sbin/unbound/testcode/signit.c
91
if (tm.tm_year < 70) return 0;
usr.sbin/unbound/testcode/signit.c
92
if (tm.tm_mon < 0 || tm.tm_mon > 11) return 0;
usr.sbin/unbound/testcode/signit.c
93
if (tm.tm_mday < 1 || tm.tm_mday > 31) return 0;
usr.sbin/unbound/testcode/signit.c
94
if (tm.tm_hour < 0 || tm.tm_hour > 23) return 0;
usr.sbin/unbound/testcode/signit.c
95
if (tm.tm_min < 0 || tm.tm_min > 59) return 0;
usr.sbin/unbound/testcode/signit.c
96
if (tm.tm_sec < 0 || tm.tm_sec > 59) return 0;
usr.sbin/unbound/testcode/signit.c
98
t = ldns_mktime_from_utc(&tm);
usr.sbin/unbound/util/config_file.c
2236
struct tm tm;
usr.sbin/unbound/util/config_file.c
2237
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/util/config_file.c
2240
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
usr.sbin/unbound/util/config_file.c
2241
&tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6)
usr.sbin/unbound/util/config_file.c
2243
tm.tm_year -= 1900;
usr.sbin/unbound/util/config_file.c
2244
tm.tm_mon--;
usr.sbin/unbound/util/config_file.c
2246
if (tm.tm_year < 70) return 0;
usr.sbin/unbound/util/config_file.c
2247
if (tm.tm_mon < 0 || tm.tm_mon > 11) return 0;
usr.sbin/unbound/util/config_file.c
2248
if (tm.tm_mday < 1 || tm.tm_mday > 31) return 0;
usr.sbin/unbound/util/config_file.c
2249
if (tm.tm_hour < 0 || tm.tm_hour > 23) return 0;
usr.sbin/unbound/util/config_file.c
2250
if (tm.tm_min < 0 || tm.tm_min > 59) return 0;
usr.sbin/unbound/util/config_file.c
2251
if (tm.tm_sec < 0 || tm.tm_sec > 59) return 0;
usr.sbin/unbound/util/config_file.c
2253
t = sldns_mktime_from_utc(&tm);
usr.sbin/unbound/util/log.c
236
struct tm tm;
usr.sbin/unbound/util/log.c
284
struct tm *tm_p;
usr.sbin/unbound/util/log.c
288
tm_p = localtime_r(&now, &tm);
usr.sbin/unbound/util/log.c
311
localtime_r(&now, &tm))%(sizeof(tmbuf)) != 0) {
usr.sbin/unbound/util/netevent.c
6904
struct internal_timer *tm = (struct internal_timer*)calloc(1,
usr.sbin/unbound/util/netevent.c
6906
if(!tm) {
usr.sbin/unbound/util/netevent.c
6910
tm->super.ev_timer = tm;
usr.sbin/unbound/util/netevent.c
6911
tm->base = base;
usr.sbin/unbound/util/netevent.c
6912
tm->super.callback = cb;
usr.sbin/unbound/util/netevent.c
6913
tm->super.cb_arg = cb_arg;
usr.sbin/unbound/util/netevent.c
6914
tm->ev = ub_event_new(base->eb->base, -1, UB_EV_TIMEOUT,
usr.sbin/unbound/util/netevent.c
6915
comm_timer_callback, &tm->super);
usr.sbin/unbound/util/netevent.c
6916
if(tm->ev == NULL) {
usr.sbin/unbound/util/netevent.c
6918
free(tm);
usr.sbin/unbound/util/netevent.c
6921
return &tm->super;
usr.sbin/unbound/util/netevent.c
6961
struct comm_timer* tm = (struct comm_timer*)arg;
usr.sbin/unbound/util/netevent.c
6964
ub_comm_base_now(tm->ev_timer->base);
usr.sbin/unbound/util/netevent.c
6965
tm->ev_timer->enabled = 0;
usr.sbin/unbound/util/netevent.c
6966
fptr_ok(fptr_whitelist_comm_timer(tm->callback));
usr.sbin/unbound/util/netevent.c
6967
(*tm->callback)(tm->cb_arg);
usr.sbin/unbound/validator/val_sigcrypt.c
1393
struct tm tm;
usr.sbin/unbound/validator/val_sigcrypt.c
1404
memset(&tm, 0, sizeof(tm));
usr.sbin/unbound/validator/val_sigcrypt.c
1405
if(gmtime_r(&te, &tm) && strftime(expi_buf, 15, "%Y%m%d%H%M%S", &tm)
usr.sbin/unbound/validator/val_sigcrypt.c
1406
&&gmtime_r(&ti, &tm) && strftime(incep_buf, 15, "%Y%m%d%H%M%S", &tm)
usr.sbin/unbound/validator/val_sigcrypt.c
1407
&&gmtime_r(&tn, &tm) && strftime(now_buf, 15, "%Y%m%d%H%M%S", &tm)) {
usr.sbin/user/user.c
972
struct tm tm;
usr.sbin/user/user.c
976
memset(&tm, 0, sizeof(tm));
usr.sbin/user/user.c
977
tm.tm_isdst = -1;
usr.sbin/user/user.c
978
if (strptime(s, "%c", &tm) != NULL) {
usr.sbin/user/user.c
979
*tp = mktime(&tm);
usr.sbin/user/user.c
980
} else if (strptime(s, "%B %d %Y", &tm) != NULL) {
usr.sbin/user/user.c
981
*tp = mktime(&tm);
usr.sbin/vmd/mc146818.c
93
struct tm *gnow;
usr.sbin/zdump/zdump.c
124
struct tm tm, newtm, *tmp, *newtmp;
usr.sbin/zdump/zdump.c
251
tm = *tmp;
usr.sbin/zdump/zdump.c
252
strlcpy(buf, abbr(&tm), sizeof buf);
usr.sbin/zdump/zdump.c
264
(delta(&newtm, &tm) != (newt - t) ||
usr.sbin/zdump/zdump.c
265
newtm.tm_isdst != tm.tm_isdst ||
usr.sbin/zdump/zdump.c
275
tm = newtm;
usr.sbin/zdump/zdump.c
339
struct tm lotm, *lotmp;
usr.sbin/zdump/zdump.c
340
struct tm tm, *tmp;
usr.sbin/zdump/zdump.c
360
tm = *tmp;
usr.sbin/zdump/zdump.c
362
(delta(&tm, &lotm) == (t - lot) &&
usr.sbin/zdump/zdump.c
363
tm.tm_isdst == lotm.tm_isdst &&
usr.sbin/zdump/zdump.c
364
strcmp(abbr(&tm), loab) == 0)) {
usr.sbin/zdump/zdump.c
366
lotm = tm;
usr.sbin/zdump/zdump.c
381
delta(struct tm *newp, struct tm *oldp)
usr.sbin/zdump/zdump.c
404
struct tm *tmp;
usr.sbin/zdump/zdump.c
435
abbr(struct tm *tmp)
usr.sbin/zdump/zdump.c
447
dumptime(const struct tm *timeptr)
usr.sbin/zdump/zdump.c
71
static char *abbr(struct tm *tmp);
usr.sbin/zdump/zdump.c
73
static __pure intmax_t delta(struct tm *newp, struct tm *oldp);
usr.sbin/zdump/zdump.c
74
static void dumptime(const struct tm *tmp);