bin/date/date.c
231
printisodate(struct tm *lt, long nsec, long res)
bin/date/date.c
258
struct tm *lt;
bin/date/date.c
379
const struct tm * __restrict t, long nsec, long res)
bin/date/date.c
59
static void printisodate(struct tm *, long, long);
bin/date/date.c
62
const struct tm * __restrict, long, long);
bin/date/date.c
90
struct tm *lt;
bin/date/vary.c
106
daysinmonth(const struct tm *t)
bin/date/vary.c
129
adjyear(struct tm *t, char type, int64_t val, int mk)
bin/date/vary.c
150
adjmon(struct tm *t, char type, int64_t val, int istext, int mk)
bin/date/vary.c
210
adjday(struct tm *t, char type, int64_t val, int mk)
bin/date/vary.c
254
adjwday(struct tm *t, char type, int64_t val, int istext, int mk)
bin/date/vary.c
290
adjhour(struct tm *t, char type, int64_t val, int mk)
bin/date/vary.c
335
adjmin(struct tm *t, char type, int64_t val, int mk)
bin/date/vary.c
376
adjsec(struct tm *t, char type, int64_t val, int mk)
bin/date/vary.c
417
vary_apply(const struct vary *v, struct tm *t)
bin/date/vary.c
56
static int adjhour(struct tm *, char, int64_t, int);
bin/date/vary.c
59
domktime(struct tm *t, char type)
bin/date/vary.h
35
extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
bin/ls/print.c
437
ls_strftime(char *str, size_t len, const char *fmt, const struct tm *tm)
bin/ls/print.c
446
if (month_max_size > 0 && tm != NULL) {
bin/ls/print.c
449
get_abmon(tm->tm_mon),
bin/ls/print.c
450
(int)padding_for_month[tm->tm_mon],
bin/ls/print.c
456
if (tm != NULL)
bin/ls/print.c
457
strftime(str, len, format, tm);
bin/pax/sel_subs.c
527
struct tm *lt;
bin/ps/print.c
383
struct tm *tp;
bin/sh/parser.c
2227
struct tm *now;
crypto/heimdal/appl/ftp/ftp/cmds.c
660
struct tm *tm;
crypto/heimdal/appl/ftp/ftp/cmds.c
680
tm = gmtime(&mtime);
crypto/heimdal/appl/ftp/ftp/cmds.c
681
tm->tm_mon++;
crypto/heimdal/appl/ftp/ftp/cmds.c
682
tm->tm_year += 1900;
crypto/heimdal/appl/ftp/ftp/cmds.c
684
if ((tm->tm_year > yy) ||
crypto/heimdal/appl/ftp/ftp/cmds.c
685
(tm->tm_year == yy &&
crypto/heimdal/appl/ftp/ftp/cmds.c
686
tm->tm_mon > mo) ||
crypto/heimdal/appl/ftp/ftp/cmds.c
687
(tm->tm_mon == mo &&
crypto/heimdal/appl/ftp/ftp/cmds.c
688
tm->tm_mday > day) ||
crypto/heimdal/appl/ftp/ftp/cmds.c
689
(tm->tm_mday == day &&
crypto/heimdal/appl/ftp/ftp/cmds.c
690
tm->tm_hour > hour) ||
crypto/heimdal/appl/ftp/ftp/cmds.c
691
(tm->tm_hour == hour &&
crypto/heimdal/appl/ftp/ftp/cmds.c
692
tm->tm_min > min) ||
crypto/heimdal/appl/ftp/ftp/cmds.c
693
(tm->tm_min == min &&
crypto/heimdal/appl/ftp/ftp/cmds.c
694
tm->tm_sec > sec))
crypto/heimdal/appl/ftp/ftp/ftp_locl.h
120
struct tm *localtime(const time_t *);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
2399
struct tm *t;
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
623
struct tm *t;
crypto/heimdal/appl/ftp/ftpd/ls.c
270
struct tm *tm = localtime(&mtime);
crypto/heimdal/appl/ftp/ftpd/ls.c
273
strftime(buf, sizeof(buf), "%b %e %Y", tm);
crypto/heimdal/appl/ftp/ftpd/ls.c
275
strftime(buf, sizeof(buf), "%b %e %H:%M", tm);
crypto/heimdal/appl/telnet/telnetd/telnetd.h
188
struct tm *localtime(const time_t *);
crypto/heimdal/kadmin/load.c
75
struct tm tm;
crypto/heimdal/kadmin/load.c
82
tm.tm_year = year - 1900;
crypto/heimdal/kadmin/load.c
83
tm.tm_mon = month - 1;
crypto/heimdal/kadmin/load.c
84
tm.tm_mday = date;
crypto/heimdal/kadmin/load.c
85
tm.tm_hour = hour;
crypto/heimdal/kadmin/load.c
86
tm.tm_min = minute;
crypto/heimdal/kadmin/load.c
87
tm.tm_sec = second;
crypto/heimdal/kadmin/load.c
88
tm.tm_isdst = 0;
crypto/heimdal/kadmin/load.c
89
*t = timegm(&tm);
crypto/heimdal/kadmin/util.c
180
struct tm tm, tm2;
crypto/heimdal/kadmin/util.c
182
memset (&tm, 0, sizeof (tm));
crypto/heimdal/kadmin/util.c
207
p = strptime (str, "%Y-%m-%d", &tm);
crypto/heimdal/kadmin/util.c
218
tm.tm_hour = tm2.tm_hour;
crypto/heimdal/kadmin/util.c
219
tm.tm_min = tm2.tm_min;
crypto/heimdal/kadmin/util.c
220
tm.tm_sec = tm2.tm_sec;
crypto/heimdal/kadmin/util.c
223
tm.tm_hour = 23;
crypto/heimdal/kadmin/util.c
224
tm.tm_min = 59;
crypto/heimdal/kadmin/util.c
225
tm.tm_sec = 59;
crypto/heimdal/kadmin/util.c
228
*t = tm2time (tm, 0);
crypto/heimdal/lib/asn1/check-timegm.c
42
struct tm tm;
crypto/heimdal/lib/asn1/check-timegm.c
45
memset(&tm, 0, sizeof(tm));
crypto/heimdal/lib/asn1/check-timegm.c
46
tm.tm_year = 106;
crypto/heimdal/lib/asn1/check-timegm.c
47
tm.tm_mon = 9;
crypto/heimdal/lib/asn1/check-timegm.c
48
tm.tm_mday = 1;
crypto/heimdal/lib/asn1/check-timegm.c
49
tm.tm_hour = 10;
crypto/heimdal/lib/asn1/check-timegm.c
50
tm.tm_min = 3;
crypto/heimdal/lib/asn1/check-timegm.c
52
t = _der_timegm(&tm);
crypto/heimdal/lib/asn1/check-timegm.c
56
tm.tm_mday = 0;
crypto/heimdal/lib/asn1/check-timegm.c
57
t = _der_timegm(&tm);
crypto/heimdal/lib/asn1/check-timegm.c
61
_der_gmtime(1159696980, &tm);
crypto/heimdal/lib/asn1/check-timegm.c
62
if (tm.tm_year != 106 ||
crypto/heimdal/lib/asn1/check-timegm.c
63
tm.tm_mon != 9 ||
crypto/heimdal/lib/asn1/check-timegm.c
64
tm.tm_mday != 1 ||
crypto/heimdal/lib/asn1/check-timegm.c
65
tm.tm_hour != 10 ||
crypto/heimdal/lib/asn1/check-timegm.c
66
tm.tm_min != 3 ||
crypto/heimdal/lib/asn1/check-timegm.c
67
tm.tm_sec != 0)
crypto/heimdal/lib/asn1/der-private.h
55
struct tm *
crypto/heimdal/lib/asn1/der-private.h
58
struct tm */*tm*/);
crypto/heimdal/lib/asn1/der_get.c
444
struct tm tm;
crypto/heimdal/lib/asn1/der_get.c
446
memset(&tm, 0, sizeof(tm));
crypto/heimdal/lib/asn1/der_get.c
448
&tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour,
crypto/heimdal/lib/asn1/der_get.c
449
&tm.tm_min, &tm.tm_sec) != 6) {
crypto/heimdal/lib/asn1/der_get.c
451
&tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour,
crypto/heimdal/lib/asn1/der_get.c
452
&tm.tm_min, &tm.tm_sec) != 6)
crypto/heimdal/lib/asn1/der_get.c
454
if (tm.tm_year < 50)
crypto/heimdal/lib/asn1/der_get.c
455
tm.tm_year += 2000;
crypto/heimdal/lib/asn1/der_get.c
457
tm.tm_year += 1900;
crypto/heimdal/lib/asn1/der_get.c
459
tm.tm_year -= 1900;
crypto/heimdal/lib/asn1/der_get.c
460
tm.tm_mon -= 1;
crypto/heimdal/lib/asn1/der_get.c
461
*t = _der_timegm (&tm);
crypto/heimdal/lib/asn1/der_locl.h
58
time_t _der_timegm (struct tm *);
crypto/heimdal/lib/asn1/der_locl.h
59
struct tm * _der_gmtime(time_t t, struct tm *);
crypto/heimdal/lib/asn1/der_put.c
501
struct tm tm;
crypto/heimdal/lib/asn1/der_put.c
508
if (_der_gmtime(t, &tm) == NULL)
crypto/heimdal/lib/asn1/der_put.c
512
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
crypto/heimdal/lib/asn1/der_put.c
513
tm.tm_hour, tm.tm_min, tm.tm_sec);
crypto/heimdal/lib/asn1/der_put.c
516
tm.tm_year % 100, tm.tm_mon + 1, tm.tm_mday,
crypto/heimdal/lib/asn1/der_put.c
517
tm.tm_hour, tm.tm_min, tm.tm_sec);
crypto/heimdal/lib/asn1/timegm.c
101
memset(tm, 0, sizeof(*tm));
crypto/heimdal/lib/asn1/timegm.c
103
tm->tm_sec = secday % 60;
crypto/heimdal/lib/asn1/timegm.c
104
tm->tm_min = (secday % 3600) / 60;
crypto/heimdal/lib/asn1/timegm.c
105
tm->tm_hour = secday / 3600;
crypto/heimdal/lib/asn1/timegm.c
116
tm->tm_year = 70;
crypto/heimdal/lib/asn1/timegm.c
118
unsigned dayinyear = (is_leap(tm->tm_year) ? 366 : 365);
crypto/heimdal/lib/asn1/timegm.c
121
tm->tm_year += 1;
crypto/heimdal/lib/asn1/timegm.c
124
tm->tm_mon = 0;
crypto/heimdal/lib/asn1/timegm.c
127
unsigned daysinmonth = ndays[is_leap(tm->tm_year)][tm->tm_mon];
crypto/heimdal/lib/asn1/timegm.c
131
tm->tm_mon++;
crypto/heimdal/lib/asn1/timegm.c
133
tm->tm_mday = days + 1;
crypto/heimdal/lib/asn1/timegm.c
135
return tm;
crypto/heimdal/lib/asn1/timegm.c
56
_der_timegm (struct tm *tm)
crypto/heimdal/lib/asn1/timegm.c
64
if (tm->tm_year > ASN1_MAX_YEAR)
crypto/heimdal/lib/asn1/timegm.c
67
if (tm->tm_year < 0)
crypto/heimdal/lib/asn1/timegm.c
69
if (tm->tm_mon < 0 || tm->tm_mon > 11)
crypto/heimdal/lib/asn1/timegm.c
71
if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm->tm_mon])
crypto/heimdal/lib/asn1/timegm.c
73
if (tm->tm_hour < 0 || tm->tm_hour > 23)
crypto/heimdal/lib/asn1/timegm.c
75
if (tm->tm_min < 0 || tm->tm_min > 59)
crypto/heimdal/lib/asn1/timegm.c
77
if (tm->tm_sec < 0 || tm->tm_sec > 59)
crypto/heimdal/lib/asn1/timegm.c
80
for (i = 70; i < tm->tm_year; ++i)
crypto/heimdal/lib/asn1/timegm.c
83
for (i = 0; i < tm->tm_mon; ++i)
crypto/heimdal/lib/asn1/timegm.c
84
res += ndays[is_leap(tm->tm_year)][i];
crypto/heimdal/lib/asn1/timegm.c
85
res += tm->tm_mday - 1;
crypto/heimdal/lib/asn1/timegm.c
87
res += tm->tm_hour;
crypto/heimdal/lib/asn1/timegm.c
89
res += tm->tm_min;
crypto/heimdal/lib/asn1/timegm.c
91
res += tm->tm_sec;
crypto/heimdal/lib/asn1/timegm.c
95
struct tm *
crypto/heimdal/lib/asn1/timegm.c
96
_der_gmtime(time_t t, struct tm *tm)
crypto/heimdal/lib/hdb/hdb-ldap.c
281
struct tm *tm;
crypto/heimdal/lib/hdb/hdb-ldap.c
284
tm = gmtime(time);
crypto/heimdal/lib/hdb/hdb-ldap.c
285
strftime(buf, sizeof(buf), "%Y%m%d%H%M%SZ", tm);
crypto/heimdal/lib/hdb/hdb-ldap.c
355
struct tm tm;
crypto/heimdal/lib/hdb/hdb-ldap.c
364
tmp = strptime(gentime, "%Y%m%d%H%M%SZ", &tm);
crypto/heimdal/lib/hdb/hdb-ldap.c
372
*kt = timegm(&tm);
crypto/heimdal/lib/hx509/hxtool.c
891
struct tm tm;
crypto/heimdal/lib/hx509/hxtool.c
894
memset(&tm, 0, sizeof(tm));
crypto/heimdal/lib/hx509/hxtool.c
896
p = strptime (opt->time_string, "%Y-%m-%d", &tm);
crypto/heimdal/lib/hx509/hxtool.c
901
t = tm2time (tm, 0);
crypto/heimdal/lib/hx509/print.c
69
struct tm *tm;
crypto/heimdal/lib/hx509/print.c
73
tm = gmtime (&t);
crypto/heimdal/lib/hx509/print.c
77
strftime(s, 30, "%Y-%m-%d %H:%M:%S", tm);
crypto/heimdal/lib/krb5/time.c
112
struct tm *tm;
crypto/heimdal/lib/krb5/time.c
114
tm = gmtime (&t);
crypto/heimdal/lib/krb5/time.c
116
tm = localtime(&t);
crypto/heimdal/lib/krb5/time.c
117
if(tm == NULL ||
crypto/heimdal/lib/krb5/time.c
118
strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)
crypto/heimdal/lib/roken/localtime_r.c
42
ROKEN_LIB_FUNCTION struct tm * ROKEN_LIB_CALL
crypto/heimdal/lib/roken/localtime_r.c
43
localtime_r(const time_t *timer, struct tm *result)
crypto/heimdal/lib/roken/localtime_r.c
50
struct tm *tm;
crypto/heimdal/lib/roken/localtime_r.c
52
tm = localtime((time_t *)timer);
crypto/heimdal/lib/roken/localtime_r.c
53
if (tm == NULL)
crypto/heimdal/lib/roken/localtime_r.c
55
*result = *tm;
crypto/heimdal/lib/roken/strftime.c
124
week_number_sun (const struct tm *tm)
crypto/heimdal/lib/roken/strftime.c
126
return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7;
crypto/heimdal/lib/roken/strftime.c
135
week_number_mon (const struct tm *tm)
crypto/heimdal/lib/roken/strftime.c
137
int wday = (tm->tm_wday + 6) % 7;
crypto/heimdal/lib/roken/strftime.c
139
return (tm->tm_yday + 7 - (tm->tm_yday % 7 - wday + 7) % 7) / 7;
crypto/heimdal/lib/roken/strftime.c
149
week_number_mon4 (const struct tm *tm)
crypto/heimdal/lib/roken/strftime.c
151
int wday = (tm->tm_wday + 6) % 7;
crypto/heimdal/lib/roken/strftime.c
152
int w1day = (wday - tm->tm_yday % 7 + 7) % 7;
crypto/heimdal/lib/roken/strftime.c
155
ret = (tm->tm_yday + w1day) / 7;
crypto/heimdal/lib/roken/strftime.c
171
const struct tm *tm)
crypto/heimdal/lib/roken/strftime.c
184
"%s", abb_weekdays[tm->tm_wday]);
crypto/heimdal/lib/roken/strftime.c
188
"%s", full_weekdays[tm->tm_wday]);
crypto/heimdal/lib/roken/strftime.c
193
"%s", abb_month[tm->tm_mon]);
crypto/heimdal/lib/roken/strftime.c
197
"%s", full_month[tm->tm_mon]);
crypto/heimdal/lib/roken/strftime.c
202
tm->tm_year,
crypto/heimdal/lib/roken/strftime.c
203
tm->tm_mon + 1,
crypto/heimdal/lib/roken/strftime.c
204
tm->tm_mday,
crypto/heimdal/lib/roken/strftime.c
205
tm->tm_hour,
crypto/heimdal/lib/roken/strftime.c
206
tm->tm_min,
crypto/heimdal/lib/roken/strftime.c
207
tm->tm_sec);
crypto/heimdal/lib/roken/strftime.c
211
"%02d", (tm->tm_year + 1900) / 100);
crypto/heimdal/lib/roken/strftime.c
215
"%02d", tm->tm_mday);
crypto/heimdal/lib/roken/strftime.c
220
tm->tm_mon + 1,
crypto/heimdal/lib/roken/strftime.c
221
tm->tm_mday,
crypto/heimdal/lib/roken/strftime.c
222
(tm->tm_year + 1900) % 100);
crypto/heimdal/lib/roken/strftime.c
226
"%2d", tm->tm_mday);
crypto/heimdal/lib/roken/strftime.c
230
"%04d-%02d-%02d", tm->tm_year + 1900,
crypto/heimdal/lib/roken/strftime.c
231
tm->tm_mon + 1, tm->tm_mday);
crypto/heimdal/lib/roken/strftime.c
241
"%02d", tm->tm_hour);
crypto/heimdal/lib/roken/strftime.c
246
hour_24to12 (tm->tm_hour));
crypto/heimdal/lib/roken/strftime.c
250
"%03d", tm->tm_yday + 1);
crypto/heimdal/lib/roken/strftime.c
254
"%2d", tm->tm_hour);
crypto/heimdal/lib/roken/strftime.c
259
hour_24to12 (tm->tm_hour));
crypto/heimdal/lib/roken/strftime.c
263
"%02d", tm->tm_mon + 1);
crypto/heimdal/lib/roken/strftime.c
267
"%02d", tm->tm_min);
crypto/heimdal/lib/roken/strftime.c
274
hour_to_ampm (tm->tm_hour));
crypto/heimdal/lib/roken/strftime.c
279
hour_24to12 (tm->tm_hour),
crypto/heimdal/lib/roken/strftime.c
280
tm->tm_min,
crypto/heimdal/lib/roken/strftime.c
281
tm->tm_sec,
crypto/heimdal/lib/roken/strftime.c
282
hour_to_ampm (tm->tm_hour));
crypto/heimdal/lib/roken/strftime.c
287
tm->tm_hour,
crypto/heimdal/lib/roken/strftime.c
288
tm->tm_min);
crypto/heimdal/lib/roken/strftime.c
292
"%d", (int)mktime(rk_UNCONST(tm)));
crypto/heimdal/lib/roken/strftime.c
296
"%02d", tm->tm_sec);
crypto/heimdal/lib/roken/strftime.c
305
tm->tm_hour,
crypto/heimdal/lib/roken/strftime.c
306
tm->tm_min,
crypto/heimdal/lib/roken/strftime.c
307
tm->tm_sec);
crypto/heimdal/lib/roken/strftime.c
311
"%d", (tm->tm_wday == 0) ? 7 : tm->tm_wday);
crypto/heimdal/lib/roken/strftime.c
315
"%02d", week_number_sun (tm));
crypto/heimdal/lib/roken/strftime.c
319
"%02d", week_number_mon4 (tm));
crypto/heimdal/lib/roken/strftime.c
323
"%d", tm->tm_wday);
crypto/heimdal/lib/roken/strftime.c
327
"%02d", week_number_mon (tm));
crypto/heimdal/lib/roken/strftime.c
332
tm->tm_year,
crypto/heimdal/lib/roken/strftime.c
333
tm->tm_mon + 1,
crypto/heimdal/lib/roken/strftime.c
334
tm->tm_mday);
crypto/heimdal/lib/roken/strftime.c
338
"%02d", (tm->tm_year + 1900) % 100);
crypto/heimdal/lib/roken/strftime.c
342
"%d", tm->tm_year + 1900);
crypto/heimdal/lib/roken/strftime.c
348
(long)tm->tm_gmtoff
crypto/heimdal/lib/roken/strftime.c
351
tm->tm_isdst ?
crypto/heimdal/lib/roken/strftime.c
365
tm->tm_zone
crypto/heimdal/lib/roken/strftime.c
367
tzname[tm->tm_isdst]
crypto/heimdal/lib/roken/strpftime-test.c
236
struct tm *tm;
crypto/heimdal/lib/roken/strpftime-test.c
238
tm = gmtime (&tests[i].t);
crypto/heimdal/lib/roken/strpftime-test.c
243
struct tm tm2;
crypto/heimdal/lib/roken/strpftime-test.c
246
len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm);
crypto/heimdal/lib/roken/strpftime-test.c
282
struct tm tm;
crypto/heimdal/lib/roken/strpftime-test.c
283
memset(&tm, 0, sizeof(tm));
crypto/heimdal/lib/roken/strpftime-test.c
284
strptime ("200505", "%Y%m", &tm);
crypto/heimdal/lib/roken/strpftime-test.c
285
if (tm.tm_year != 105)
crypto/heimdal/lib/roken/strpftime-test.c
287
if (tm.tm_mon != 4)
crypto/heimdal/lib/roken/strpftime-test.h
50
const struct tm *tm);
crypto/heimdal/lib/roken/strpftime-test.h
53
strptime (const char *buf, const char *format, struct tm *timeptr);
crypto/heimdal/lib/roken/strptime.c
189
set_week_number_sun (struct tm *timeptr, int wnum)
crypto/heimdal/lib/roken/strptime.c
205
set_week_number_mon (struct tm *timeptr, int wnum)
crypto/heimdal/lib/roken/strptime.c
221
set_week_number_mon4 (struct tm *timeptr, int wnum)
crypto/heimdal/lib/roken/strptime.c
241
strptime (const char *buf, const char *format, struct tm *timeptr)
crypto/heimdal/lib/roken/timegm.c
51
rk_timegm (struct tm *tm)
crypto/heimdal/lib/roken/timegm.c
59
if (tm->tm_year < 0)
crypto/heimdal/lib/roken/timegm.c
61
if (tm->tm_mon < 0 || tm->tm_mon > 11)
crypto/heimdal/lib/roken/timegm.c
63
if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon])
crypto/heimdal/lib/roken/timegm.c
65
if (tm->tm_hour < 0 || tm->tm_hour > 23)
crypto/heimdal/lib/roken/timegm.c
67
if (tm->tm_min < 0 || tm->tm_min > 59)
crypto/heimdal/lib/roken/timegm.c
69
if (tm->tm_sec < 0 || tm->tm_sec > 59)
crypto/heimdal/lib/roken/timegm.c
72
for (i = 70; i < tm->tm_year; ++i)
crypto/heimdal/lib/roken/timegm.c
75
for (i = 0; i < tm->tm_mon; ++i)
crypto/heimdal/lib/roken/timegm.c
76
res += ndays[is_leap(tm->tm_year)][i];
crypto/heimdal/lib/roken/timegm.c
77
res += tm->tm_mday - 1;
crypto/heimdal/lib/roken/timegm.c
79
res += tm->tm_hour;
crypto/heimdal/lib/roken/timegm.c
81
res += tm->tm_min;
crypto/heimdal/lib/roken/timegm.c
83
res += tm->tm_sec;
crypto/heimdal/lib/roken/tm2time.c
47
tm2time (struct tm tm, int local)
crypto/heimdal/lib/roken/tm2time.c
51
tm.tm_isdst = local ? -1 : 0;
crypto/heimdal/lib/roken/tm2time.c
53
t = mktime (&tm);
crypto/krb5/src/include/k5-gmt_mktime.h
41
time_t krb5int_gmt_mktime (struct tm *);
crypto/krb5/src/kadmin/cli/getdate.y
571
struct tm *tm;
crypto/krb5/src/kadmin/cli/getdate.y
599
tm = localtime(&Julian);
crypto/krb5/src/kadmin/cli/getdate.y
600
if (tm == NULL)
crypto/krb5/src/kadmin/cli/getdate.y
602
else if (tm->tm_isdst)
crypto/krb5/src/kadmin/cli/getdate.y
614
struct tm *tm;
crypto/krb5/src/kadmin/cli/getdate.y
616
tm = localtime(&Start);
crypto/krb5/src/kadmin/cli/getdate.y
617
if (tm == NULL) {
crypto/krb5/src/kadmin/cli/getdate.y
621
StartDay = (tm->tm_hour + 1) % 24;
crypto/krb5/src/kadmin/cli/getdate.y
622
tm = localtime(&Future);
crypto/krb5/src/kadmin/cli/getdate.y
623
if (tm == NULL) {
crypto/krb5/src/kadmin/cli/getdate.y
627
FutureDay = (tm->tm_hour + 1) % 24;
crypto/krb5/src/kadmin/cli/getdate.y
636
struct tm *tm;
crypto/krb5/src/kadmin/cli/getdate.y
640
tm = localtime(&now);
crypto/krb5/src/kadmin/cli/getdate.y
641
if (tm == NULL) {
crypto/krb5/src/kadmin/cli/getdate.y
645
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
crypto/krb5/src/kadmin/cli/getdate.y
654
struct tm *tm;
crypto/krb5/src/kadmin/cli/getdate.y
662
tm = localtime(&Start);
crypto/krb5/src/kadmin/cli/getdate.y
663
if (tm == NULL)
crypto/krb5/src/kadmin/cli/getdate.y
665
Month = 12 * tm->tm_year + tm->tm_mon + RelMonth;
crypto/krb5/src/kadmin/cli/getdate.y
668
ret = Convert(Month, (time_t)tm->tm_mday, Year,
crypto/krb5/src/kadmin/cli/getdate.y
669
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
crypto/krb5/src/kadmin/cli/getdate.y
835
difftm(struct tm *a, struct tm *b)
crypto/krb5/src/kadmin/cli/getdate.y
867
struct tm *tm, gmt;
crypto/krb5/src/kadmin/cli/getdate.y
880
if (! (tm = gmtime (&ftz.time)))
crypto/krb5/src/kadmin/cli/getdate.y
882
gmt = *tm; /* Make a copy, in case localtime modifies *tm. */
crypto/krb5/src/kadmin/cli/getdate.y
883
tm = localtime(&ftz.time);
crypto/krb5/src/kadmin/cli/getdate.y
884
if (tm == NULL)
crypto/krb5/src/kadmin/cli/getdate.y
886
ftz.timezone = difftm (&gmt, tm) / 60;
crypto/krb5/src/kadmin/cli/getdate.y
889
tm = localtime(&now->time);
crypto/krb5/src/kadmin/cli/getdate.y
890
if (tm == NULL)
crypto/krb5/src/kadmin/cli/getdate.y
892
yyYear = tm->tm_year;
crypto/krb5/src/kadmin/cli/getdate.y
893
yyMonth = tm->tm_mon + 1;
crypto/krb5/src/kadmin/cli/getdate.y
894
yyDay = tm->tm_mday;
crypto/krb5/src/kadmin/cli/getdate.y
972
Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
crypto/krb5/src/kadmin/cli/kadmin.c
144
struct tm *tm;
crypto/krb5/src/kadmin/cli/kadmin.c
148
tm = localtime(&lcltim);
crypto/krb5/src/kadmin/cli/kadmin.c
149
if (tm == NULL ||
crypto/krb5/src/kadmin/cli/kadmin.c
150
strftime(out, sizeof(out), "%a %b %d %H:%M:%S %Z %Y", tm) == 0)
crypto/krb5/src/kadmin/dbutil/kdb5_mkey.c
31
struct tm *tm;
crypto/krb5/src/kadmin/dbutil/kdb5_mkey.c
35
tm = localtime(&lcltim);
crypto/krb5/src/kadmin/dbutil/kdb5_mkey.c
36
if (tm == NULL ||
crypto/krb5/src/kadmin/dbutil/kdb5_mkey.c
37
strftime(out, sizeof(out), "%a %b %d %H:%M:%S %Z %Y", tm) == 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
154
struct tm *tm = NULL;
crypto/krb5/src/kadmin/dbutil/tabdump.c
158
tm = gmtime(&t);
crypto/krb5/src/kadmin/dbutil/tabdump.c
159
if (tm == NULL) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
163
if (strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%SZ", tm) == 0) {
crypto/krb5/src/lib/kadm5/logger.c
641
struct tm *tm;
crypto/krb5/src/lib/kadm5/logger.c
658
tm = localtime(&now);
crypto/krb5/src/lib/kadm5/logger.c
659
if (tm == NULL)
crypto/krb5/src/lib/kadm5/logger.c
661
soff = strftime(outbuf, sizeof(outbuf), "%b %d %H:%M:%S", tm);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
115
struct tm *gtime, gtimebuf;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
245
struct tm ts;
crypto/krb5/src/lib/krb5/ccache/cc_mslsa.c
257
struct tm utime;
crypto/krb5/src/lib/krb5/krb/str_conv.c
121
struct tm *)
crypto/krb5/src/lib/krb5/krb/str_conv.c
130
static char *strptime (const char *, const char *, struct tm *);
crypto/krb5/src/lib/krb5/krb/str_conv.c
134
static inline struct tm *
crypto/krb5/src/lib/krb5/krb/str_conv.c
135
localtime_r(const time_t *t, struct tm *buf)
crypto/krb5/src/lib/krb5/krb/str_conv.c
137
struct tm *tm = localtime(t);
crypto/krb5/src/lib/krb5/krb/str_conv.c
138
if (tm == NULL)
crypto/krb5/src/lib/krb5/krb/str_conv.c
140
*buf = *tm;
crypto/krb5/src/lib/krb5/krb/str_conv.c
149
struct tm timebuf, timebuf2;
crypto/krb5/src/lib/krb5/krb/str_conv.c
203
struct tm tmbuf;
crypto/krb5/src/lib/krb5/krb/str_conv.c
218
struct tm *tmp;
crypto/krb5/src/lib/krb5/krb/str_conv.c
222
struct tm tmbuf;
crypto/krb5/src/lib/krb5/krb/strptime.c
116
if (!(bp = strptime(bp, _ctloc(d_t_fmt), tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
122
if (!(bp = strptime(bp, "%m/%d/%y", tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
128
if (!(bp = strptime(bp, "%H:%M", tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
134
if (!(bp = strptime(bp, _ctloc(t_fmt_ampm), tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
140
if (!(bp = strptime(bp, "%H:%M:%S", tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
146
if (!(bp = strptime(bp, _ctloc(t_fmt), tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
152
if (!(bp = strptime(bp, _ctloc(d_fmt), tm)))
crypto/krb5/src/lib/krb5/krb/strptime.c
178
tm->tm_wday = i;
crypto/krb5/src/lib/krb5/krb/strptime.c
202
tm->tm_mon = i;
crypto/krb5/src/lib/krb5/krb/strptime.c
212
tm->tm_year = (tm->tm_year % 100) + (i * 100);
crypto/krb5/src/lib/krb5/krb/strptime.c
214
tm->tm_year = i * 100;
crypto/krb5/src/lib/krb5/krb/strptime.c
222
if (!(conv_num(&bp, &tm->tm_mday, 1, 31)))
crypto/krb5/src/lib/krb5/krb/strptime.c
231
if (!(conv_num(&bp, &tm->tm_hour, 0, 23)))
crypto/krb5/src/lib/krb5/krb/strptime.c
240
if (!(conv_num(&bp, &tm->tm_hour, 1, 12)))
crypto/krb5/src/lib/krb5/krb/strptime.c
242
if (tm->tm_hour == 12)
crypto/krb5/src/lib/krb5/krb/strptime.c
243
tm->tm_hour = 0;
crypto/krb5/src/lib/krb5/krb/strptime.c
250
tm->tm_yday = i - 1;
crypto/krb5/src/lib/krb5/krb/strptime.c
255
if (!(conv_num(&bp, &tm->tm_min, 0, 59)))
crypto/krb5/src/lib/krb5/krb/strptime.c
263
tm->tm_mon = i - 1;
crypto/krb5/src/lib/krb5/krb/strptime.c
270
if (tm->tm_hour > 11)
crypto/krb5/src/lib/krb5/krb/strptime.c
278
if (tm->tm_hour > 11)
crypto/krb5/src/lib/krb5/krb/strptime.c
281
tm->tm_hour += 12;
crypto/krb5/src/lib/krb5/krb/strptime.c
291
if (!(conv_num(&bp, &tm->tm_sec, 0, 61)))
crypto/krb5/src/lib/krb5/krb/strptime.c
310
if (!(conv_num(&bp, &tm->tm_wday, 0, 6)))
crypto/krb5/src/lib/krb5/krb/strptime.c
319
tm->tm_year = i - TM_YEAR_BASE;
crypto/krb5/src/lib/krb5/krb/strptime.c
328
tm->tm_year = ((tm->tm_year / 100) * 100) + i;
crypto/krb5/src/lib/krb5/krb/strptime.c
333
tm->tm_year = i + 2000 - TM_YEAR_BASE;
crypto/krb5/src/lib/krb5/krb/strptime.c
335
tm->tm_year = i + 1900 - TM_YEAR_BASE;
crypto/krb5/src/lib/krb5/krb/strptime.c
62
strptime(buf, fmt, tm)
crypto/krb5/src/lib/krb5/krb/strptime.c
64
struct tm *tm;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
46
extern char *strptime(const char *, const char *, struct tm *);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
914
struct tm tme;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
1811
struct tm tme;
crypto/krb5/src/util/support/gmt_mktime.c
137
struct tm tm = {
crypto/krb5/src/util/support/gmt_mktime.c
144
tm.tm_year = yr;
crypto/krb5/src/util/support/gmt_mktime.c
145
t = gmt_mktime (&tm);
crypto/krb5/src/util/support/gmt_mktime.c
18
static time_t gmt_mktime(struct tm *t);
crypto/krb5/src/util/support/gmt_mktime.c
42
krb5int_gmt_mktime(struct tm *t)
crypto/krb5/src/util/support/gmt_mktime.c
75
gmt_mktime(struct tm *t)
crypto/krb5/src/windows/leashdll/timesync.c
37
struct tm *newtime;
crypto/openssh/krl.c
814
struct tm *tm;
crypto/openssh/krl.c
817
tm = localtime(&t);
crypto/openssh/krl.c
818
if (tm == NULL)
crypto/openssh/krl.c
822
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
crypto/openssh/misc.c
2476
struct tm tm;
crypto/openssh/misc.c
2517
memset(&tm, 0, sizeof(tm));
crypto/openssh/misc.c
2518
if ((cp = strptime(buf, fmt, &tm)) == NULL || *cp != '\0')
crypto/openssh/misc.c
2521
if ((tt = timegm(&tm)) < 0)
crypto/openssh/misc.c
2524
if ((tt = mktime(&tm)) < 0)
crypto/openssh/misc.c
2536
struct tm tm;
crypto/openssh/misc.c
2538
if (localtime_r(&tt, &tm) == NULL)
crypto/openssh/misc.c
2541
strftime(buf, len, "%Y-%m-%dT%H:%M:%S", &tm);
crypto/openssh/moduli.c
156
struct tm *gtm;
crypto/openssh/openbsd-compat/bsd-misc.c
441
struct tm *
crypto/openssh/openbsd-compat/bsd-misc.c
442
localtime_r(const time_t *timep, struct tm *result)
crypto/openssh/openbsd-compat/bsd-misc.c
444
struct tm *tm = localtime(timep);
crypto/openssh/openbsd-compat/bsd-misc.c
445
*result = *tm;
crypto/openssh/openbsd-compat/bsd-misc.h
190
struct tm *localtime_r(const time_t *, struct tm *);
crypto/openssh/openbsd-compat/bsd-timegm.c
50
time_t timegm(struct tm *tm)
crypto/openssh/openbsd-compat/bsd-timegm.c
58
if (tm->tm_mon > 12 ||
crypto/openssh/openbsd-compat/bsd-timegm.c
59
tm->tm_mon < 0 ||
crypto/openssh/openbsd-compat/bsd-timegm.c
60
tm->tm_mday > 31 ||
crypto/openssh/openbsd-compat/bsd-timegm.c
61
tm->tm_min > 60 ||
crypto/openssh/openbsd-compat/bsd-timegm.c
62
tm->tm_sec > 60 ||
crypto/openssh/openbsd-compat/bsd-timegm.c
63
tm->tm_hour > 24) {
crypto/openssh/openbsd-compat/bsd-timegm.c
68
for (i = 70; i < tm->tm_year; ++i)
crypto/openssh/openbsd-compat/bsd-timegm.c
71
for (i = 0; i < tm->tm_mon; ++i)
crypto/openssh/openbsd-compat/bsd-timegm.c
72
res += ndays[is_leap(tm->tm_year)][i];
crypto/openssh/openbsd-compat/bsd-timegm.c
73
res += tm->tm_mday - 1;
crypto/openssh/openbsd-compat/bsd-timegm.c
75
res += tm->tm_hour;
crypto/openssh/openbsd-compat/bsd-timegm.c
77
res += tm->tm_min;
crypto/openssh/openbsd-compat/bsd-timegm.c
79
res += tm->tm_sec;
crypto/openssh/openbsd-compat/openbsd-compat.h
143
char *strptime(const char *buf, const char *fmt, struct tm *tm);
crypto/openssh/openbsd-compat/openbsd-compat.h
349
struct tm *localtime_r(const time_t *, struct tm *);
crypto/openssh/openbsd-compat/openbsd-compat.h
354
time_t timegm(struct tm *);
crypto/openssh/openbsd-compat/strptime.c
126
if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
132
if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
138
if (!(bp = _strptime(bp, "%H:%M", tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
144
if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
150
if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
156
if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
162
if (!(bp = _strptime(bp, _ctloc(d_fmt), tm, 0)))
crypto/openssh/openbsd-compat/strptime.c
189
tm->tm_wday = i;
crypto/openssh/openbsd-compat/strptime.c
213
tm->tm_mon = i;
crypto/openssh/openbsd-compat/strptime.c
229
if (!(_conv_num(&bp, &tm->tm_mday, 1, 31)))
crypto/openssh/openbsd-compat/strptime.c
238
if (!(_conv_num(&bp, &tm->tm_hour, 0, 23)))
crypto/openssh/openbsd-compat/strptime.c
247
if (!(_conv_num(&bp, &tm->tm_hour, 1, 12)))
crypto/openssh/openbsd-compat/strptime.c
253
if (!(_conv_num(&bp, &tm->tm_yday, 1, 366)))
crypto/openssh/openbsd-compat/strptime.c
255
tm->tm_yday--;
crypto/openssh/openbsd-compat/strptime.c
260
if (!(_conv_num(&bp, &tm->tm_min, 0, 59)))
crypto/openssh/openbsd-compat/strptime.c
266
if (!(_conv_num(&bp, &tm->tm_mon, 1, 12)))
crypto/openssh/openbsd-compat/strptime.c
268
tm->tm_mon--;
crypto/openssh/openbsd-compat/strptime.c
277
if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */
crypto/openssh/openbsd-compat/strptime.c
279
else if (tm->tm_hour == 12)
crypto/openssh/openbsd-compat/strptime.c
280
tm->tm_hour = 0;
crypto/openssh/openbsd-compat/strptime.c
288
if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */
crypto/openssh/openbsd-compat/strptime.c
290
else if (tm->tm_hour < 12)
crypto/openssh/openbsd-compat/strptime.c
291
tm->tm_hour += 12;
crypto/openssh/openbsd-compat/strptime.c
302
if (!(_conv_num(&bp, &tm->tm_sec, 0, 61)))
crypto/openssh/openbsd-compat/strptime.c
321
if (!(_conv_num(&bp, &tm->tm_wday, 0, 6)))
crypto/openssh/openbsd-compat/strptime.c
331
tm->tm_year = i - TM_YEAR_BASE;
crypto/openssh/openbsd-compat/strptime.c
365
tm->tm_year = relyear + 2000 - TM_YEAR_BASE;
crypto/openssh/openbsd-compat/strptime.c
367
tm->tm_year = relyear + 1900 - TM_YEAR_BASE;
crypto/openssh/openbsd-compat/strptime.c
369
tm->tm_year = relyear + century - TM_YEAR_BASE;
crypto/openssh/openbsd-compat/strptime.c
57
static char *_strptime(const char *, const char *, struct tm *, int);
crypto/openssh/openbsd-compat/strptime.c
61
strptime(const char *buf, const char *fmt, struct tm *tm)
crypto/openssh/openbsd-compat/strptime.c
63
return(_strptime(buf, fmt, tm, 1));
crypto/openssh/openbsd-compat/strptime.c
67
_strptime(const char *buf, const char *fmt, struct tm *tm, int initialize)
crypto/openssh/regress/timestamp.c
35
struct tm *tm;
crypto/openssh/regress/timestamp.c
40
if ((tm = localtime(&tv.tv_sec)) == NULL)
crypto/openssh/regress/timestamp.c
42
if (strftime(buf, sizeof buf, "%Y%m%dT%H%M%S", tm) <= 0)
crypto/openssh/sftp-common.c
221
struct tm *ltime = localtime(&st->st_mtime);
crypto/openssl/apps/ca.c
1500
const ASN1_TIME *tm;
crypto/openssl/apps/ca.c
1946
tm = X509_get0_notAfter(ret);
crypto/openssl/apps/ca.c
1947
row[DB_exp_date] = app_malloc(tm->length + 1, "row expdate");
crypto/openssl/apps/ca.c
1948
memcpy(row[DB_exp_date], tm->data, tm->length);
crypto/openssl/apps/ca.c
1949
row[DB_exp_date][tm->length] = '\0';
crypto/openssl/apps/ca.c
2137
const ASN1_TIME *tm = NULL;
crypto/openssl/apps/ca.c
2175
tm = X509_get0_notAfter(x509);
crypto/openssl/apps/ca.c
2176
row[DB_exp_date] = app_malloc(tm->length + 1, "row exp_data");
crypto/openssl/apps/ca.c
2177
memcpy(row[DB_exp_date], tm->data, tm->length);
crypto/openssl/apps/ca.c
2178
row[DB_exp_date][tm->length] = '\0';
crypto/openssl/apps/lib/apps.c
3347
ASN1_TIME *tm = ASN1_TIME_new();
crypto/openssl/apps/lib/apps.c
3349
if (tm == NULL)
crypto/openssl/apps/lib/apps.c
3353
if (X509_gmtime_adj(tm, 0) == NULL)
crypto/openssl/apps/lib/apps.c
3356
if (!ASN1_TIME_set_string_X509(tm, lastupdate))
crypto/openssl/apps/lib/apps.c
3360
if (!X509_CRL_set1_lastUpdate(crl, tm))
crypto/openssl/apps/lib/apps.c
3365
ASN1_TIME_free(tm);
crypto/openssl/apps/lib/apps.c
3373
ASN1_TIME *tm = ASN1_TIME_new();
crypto/openssl/apps/lib/apps.c
3375
if (tm == NULL)
crypto/openssl/apps/lib/apps.c
3379
if (X509_time_adj_ex(tm, days, hours * 60 * 60 + secs, NULL) == NULL)
crypto/openssl/apps/lib/apps.c
3382
if (!ASN1_TIME_set_string_X509(tm, nextupdate))
crypto/openssl/apps/lib/apps.c
3386
if (!X509_CRL_set1_nextUpdate(crl, tm))
crypto/openssl/apps/lib/apps.c
3391
ASN1_TIME_free(tm);
crypto/openssl/apps/lib/vms_term_sock.c
562
struct tm *LocTime;
crypto/openssl/apps/speed.c
123
static void print_message(const char *s, int length, int tm);
crypto/openssl/apps/speed.c
126
static void kskey_print_message(const char *str, const char *str2, int tm);
crypto/openssl/apps/speed.c
4849
static void print_message(const char *s, int length, int tm)
crypto/openssl/apps/speed.c
4854
s, tm, length);
crypto/openssl/apps/speed.c
4857
alarm(tm);
crypto/openssl/apps/speed.c
4861
int tm)
crypto/openssl/apps/speed.c
4866
bits, str, str2, tm);
crypto/openssl/apps/speed.c
4869
alarm(tm);
crypto/openssl/apps/speed.c
4872
static void kskey_print_message(const char *str, const char *str2, int tm)
crypto/openssl/apps/speed.c
4877
str, str2, tm);
crypto/openssl/apps/speed.c
4880
alarm(tm);
crypto/openssl/crypto/asn1/a_gentm.c
24
static int asn1_generalizedtime_to_tm(struct tm *tm,
crypto/openssl/crypto/asn1/a_gentm.c
30
return ossl_asn1_time_to_tm(tm, d);
crypto/openssl/crypto/asn1/a_gentm.c
66
struct tm *ts;
crypto/openssl/crypto/asn1/a_gentm.c
67
struct tm data;
crypto/openssl/crypto/asn1/a_gentm.c
81
int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm)
crypto/openssl/crypto/asn1/a_gentm.c
83
if (tm->type != V_ASN1_GENERALIZEDTIME)
crypto/openssl/crypto/asn1/a_gentm.c
85
return ASN1_TIME_print(bp, tm);
crypto/openssl/crypto/asn1/a_time.c
241
if (tm != NULL) {
crypto/openssl/crypto/asn1/a_time.c
257
if (tm != NULL)
crypto/openssl/crypto/asn1/a_time.c
258
*tm = tmp;
crypto/openssl/crypto/asn1/a_time.c
265
ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type)
crypto/openssl/crypto/asn1/a_time.c
331
struct tm *ts;
crypto/openssl/crypto/asn1/a_time.c
332
struct tm data;
crypto/openssl/crypto/asn1/a_time.c
360
struct tm tm;
crypto/openssl/crypto/asn1/a_time.c
362
if (!ASN1_TIME_to_tm(t, &tm))
crypto/openssl/crypto/asn1/a_time.c
368
ret = ossl_asn1_time_from_tm(ret, &tm, V_ASN1_GENERALIZEDTIME);
crypto/openssl/crypto/asn1/a_time.c
387
struct tm tm;
crypto/openssl/crypto/asn1/a_time.c
417
if (!ossl_asn1_time_to_tm(&tm, &t))
crypto/openssl/crypto/asn1/a_time.c
419
if (is_utc(tm.tm_year)) {
crypto/openssl/crypto/asn1/a_time.c
443
int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm)
crypto/openssl/crypto/asn1/a_time.c
449
memset(tm, 0, sizeof(*tm));
crypto/openssl/crypto/asn1/a_time.c
450
if (OPENSSL_gmtime(&now_t, tm) != NULL)
crypto/openssl/crypto/asn1/a_time.c
455
return ossl_asn1_time_to_tm(tm, s);
crypto/openssl/crypto/asn1/a_time.c
461
struct tm tm_from, tm_to;
crypto/openssl/crypto/asn1/a_time.c
476
int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
crypto/openssl/crypto/asn1/a_time.c
478
return ASN1_TIME_print_ex(bp, tm, ASN1_DTFLGS_RFC822);
crypto/openssl/crypto/asn1/a_time.c
482
int ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags)
crypto/openssl/crypto/asn1/a_time.c
484
return ossl_asn1_time_print_ex(bp, tm, flags) > 0;
crypto/openssl/crypto/asn1/a_time.c
489
int ossl_asn1_time_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags)
crypto/openssl/crypto/asn1/a_time.c
493
struct tm stm;
crypto/openssl/crypto/asn1/a_time.c
497
if (!ossl_asn1_time_to_tm(&stm, tm))
crypto/openssl/crypto/asn1/a_time.c
50
static void determine_days(struct tm *tm)
crypto/openssl/crypto/asn1/a_time.c
500
l = tm->length;
crypto/openssl/crypto/asn1/a_time.c
501
v = (char *)tm->data;
crypto/openssl/crypto/asn1/a_time.c
503
if (tm->type == V_ASN1_GENERALIZEDTIME) {
crypto/openssl/crypto/asn1/a_time.c
511
if (tm->length > 15 && v[14] == period) {
crypto/openssl/crypto/asn1/a_time.c
55
int y = tm->tm_year + 1900;
crypto/openssl/crypto/asn1/a_time.c
551
struct tm stm, ttm;
crypto/openssl/crypto/asn1/a_time.c
56
int m = tm->tm_mon;
crypto/openssl/crypto/asn1/a_time.c
57
int d = tm->tm_mday;
crypto/openssl/crypto/asn1/a_time.c
572
struct tm tm;
crypto/openssl/crypto/asn1/a_time.c
574
if (t == NULL || !ASN1_TIME_to_tm(t, &tm))
crypto/openssl/crypto/asn1/a_time.c
577
return ossl_asn1_time_from_tm(t, &tm, V_ASN1_UNDEF) != NULL;
crypto/openssl/crypto/asn1/a_time.c
60
tm->tm_yday = ydays[m] + d - 1;
crypto/openssl/crypto/asn1/a_time.c
63
tm->tm_yday += leap_year(y);
crypto/openssl/crypto/asn1/a_time.c
73
tm->tm_wday = (d + (13 * m) / 5 + y + y / 4 + c / 4 + 5 * c + 6) % 7;
crypto/openssl/crypto/asn1/a_time.c
76
int ossl_asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d)
crypto/openssl/crypto/asn1/a_time.c
83
struct tm tmp;
crypto/openssl/crypto/asn1/a_utctm.c
100
return ASN1_TIME_print(bp, tm);
crypto/openssl/crypto/asn1/a_utctm.c
20
int ossl_asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d)
crypto/openssl/crypto/asn1/a_utctm.c
25
return ossl_asn1_time_to_tm(tm, d);
crypto/openssl/crypto/asn1/a_utctm.c
60
struct tm *ts;
crypto/openssl/crypto/asn1/a_utctm.c
61
struct tm data;
crypto/openssl/crypto/asn1/a_utctm.c
77
struct tm stm, ttm;
crypto/openssl/crypto/asn1/a_utctm.c
96
int ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm)
crypto/openssl/crypto/asn1/a_utctm.c
98
if (tm->type != V_ASN1_UTCTIME)
crypto/openssl/crypto/asn1/asn1_local.h
17
int ossl_asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d);
crypto/openssl/crypto/asn1/asn1_local.h
18
int ossl_asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d);
crypto/openssl/crypto/asn1/asn1_local.h
93
ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type);
crypto/openssl/crypto/cms/cms_kari.c
115
ASN1_GENERALIZEDTIME **tm,
crypto/openssl/crypto/cms/cms_kari.c
128
if (tm)
crypto/openssl/crypto/cms/cms_kari.c
129
*tm = NULL;
crypto/openssl/crypto/cms/cms_kari.c
135
if (tm)
crypto/openssl/crypto/cms/cms_kari.c
136
*tm = rid->d.rKeyId->date;
crypto/openssl/crypto/o_time.c
102
const struct tm *from, const struct tm *to)
crypto/openssl/crypto/o_time.c
131
static int julian_adj(const struct tm *tm, int off_day, long offset_sec,
crypto/openssl/crypto/o_time.c
14
struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
crypto/openssl/crypto/o_time.c
143
offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec;
crypto/openssl/crypto/o_time.c
157
time_year = tm->tm_year + 1900;
crypto/openssl/crypto/o_time.c
158
time_month = tm->tm_mon + 1;
crypto/openssl/crypto/o_time.c
159
time_day = tm->tm_mday;
crypto/openssl/crypto/o_time.c
16
struct tm *ts = NULL;
crypto/openssl/crypto/o_time.c
31
struct tm data, *ts2 = &data;
crypto/openssl/crypto/o_time.c
37
memcpy(result, ts2, sizeof(struct tm));
crypto/openssl/crypto/o_time.c
53
memcpy(result, ts, sizeof(struct tm));
crypto/openssl/crypto/o_time.c
69
static int julian_adj(const struct tm *tm, int off_day, long offset_sec,
crypto/openssl/crypto/o_time.c
72
int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec)
crypto/openssl/crypto/o_time.c
78
if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec))
crypto/openssl/crypto/o_time.c
90
tm->tm_year = time_year - 1900;
crypto/openssl/crypto/o_time.c
91
tm->tm_mon = time_month - 1;
crypto/openssl/crypto/o_time.c
92
tm->tm_mday = time_day;
crypto/openssl/crypto/o_time.c
94
tm->tm_hour = time_sec / 3600;
crypto/openssl/crypto/o_time.c
95
tm->tm_min = (time_sec / 60) % 60;
crypto/openssl/crypto/o_time.c
96
tm->tm_sec = time_sec % 60;
crypto/openssl/crypto/ts/ts_rsp_sign.c
835
struct tm *tm = NULL, tm_result;
crypto/openssl/crypto/ts/ts_rsp_sign.c
843
if ((tm = OPENSSL_gmtime(&time_sec, &tm_result)) == NULL)
crypto/openssl/crypto/ts/ts_rsp_sign.c
855
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
crypto/openssl/crypto/ts/ts_rsp_sign.c
856
tm->tm_hour, tm->tm_min, tm->tm_sec);
crypto/openssl/crypto/x509/x509_set.c
102
&x->cert_info.validity.notAfter, tm);
crypto/openssl/crypto/x509/x509_set.c
73
int ossl_x509_set1_time(int *modified, ASN1_TIME **ptm, const ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509_set.c
77
if (*ptm == tm)
crypto/openssl/crypto/x509/x509_set.c
79
new = ASN1_STRING_dup(tm);
crypto/openssl/crypto/x509/x509_set.c
80
if (tm != NULL && new == NULL)
crypto/openssl/crypto/x509/x509_set.c
89
int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509_set.c
91
if (x == NULL || tm == NULL)
crypto/openssl/crypto/x509/x509_set.c
94
&x->cert_info.validity.notBefore, tm);
crypto/openssl/crypto/x509/x509_set.c
97
int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509_set.c
99
if (x == NULL || tm == NULL)
crypto/openssl/crypto/x509/x509cset.c
147
int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509cset.c
149
if (x == NULL || tm == NULL)
crypto/openssl/crypto/x509/x509cset.c
151
return ossl_x509_set1_time(NULL, &x->revocationDate, tm);
crypto/openssl/crypto/x509/x509cset.c
43
int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509cset.c
45
if (x == NULL || tm == NULL)
crypto/openssl/crypto/x509/x509cset.c
47
return ossl_x509_set1_time(&x->crl.enc.modified, &x->crl.lastUpdate, tm);
crypto/openssl/crypto/x509/x509cset.c
50
int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/openssl/crypto/x509/x509cset.c
54
return ossl_x509_set1_time(&x->crl.enc.modified, &x->crl.nextUpdate, tm);
crypto/openssl/include/crypto/asn1.h
143
int ossl_asn1_time_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags);
crypto/openssl/include/crypto/x509.h
313
int ossl_x509_set1_time(int *modified, ASN1_TIME **ptm, const ASN1_TIME *tm);
crypto/openssl/include/internal/quic_engine.h
81
OSSL_TIME ossl_quic_engine_make_real_time(QUIC_ENGINE *qeng, OSSL_TIME tm);
crypto/openssl/include/openssl/asn1.h
846
int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
crypto/openssl/include/openssl/asn1.h
970
int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm);
crypto/openssl/include/openssl/asn1.h
971
int ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags);
crypto/openssl/include/openssl/cms.h
491
ASN1_GENERALIZEDTIME **tm,
crypto/openssl/include/openssl/crypto.h
458
struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
crypto/openssl/include/openssl/crypto.h
459
int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);
crypto/openssl/include/openssl/crypto.h
461
const struct tm *from, const struct tm *to);
crypto/openssl/include/openssl/ssl.h
1638
void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
crypto/openssl/include/openssl/ssl.h
1640
void SSL_CTX_flush_sessions_ex(SSL_CTX *ctx, time_t tm);
crypto/openssl/include/openssl/x509.h
860
int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
crypto/openssl/include/openssl/x509.h
863
int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
crypto/openssl/include/openssl/x509.h
934
int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/openssl/include/openssl/x509.h
935
int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/openssl/include/openssl/x509.h
962
int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);
crypto/openssl/ssl/bio_ssl.c
124
unsigned long tm;
crypto/openssl/ssl/bio_ssl.c
126
tm = (unsigned long)time(NULL);
crypto/openssl/ssl/bio_ssl.c
127
if (tm > sb->last_time + sb->renegotiate_timeout) {
crypto/openssl/ssl/bio_ssl.c
128
sb->last_time = tm;
crypto/openssl/ssl/bio_ssl.c
193
unsigned long tm;
crypto/openssl/ssl/bio_ssl.c
195
tm = (unsigned long)time(NULL);
crypto/openssl/ssl/bio_ssl.c
196
if (tm > bs->last_time + bs->renegotiate_timeout) {
crypto/openssl/ssl/bio_ssl.c
197
bs->last_time = tm;
crypto/openssl/ssl/quic/quic_engine.c
85
OSSL_TIME ossl_quic_engine_make_real_time(QUIC_ENGINE *qeng, OSSL_TIME tm)
crypto/openssl/ssl/quic/quic_engine.c
90
&& !ossl_time_is_zero(tm)
crypto/openssl/ssl/quic/quic_engine.c
91
&& !ossl_time_is_infinite(tm)) {
crypto/openssl/ssl/quic/quic_engine.c
96
tm = ossl_time_add(ossl_time_subtract(tm, offset), ossl_time_now());
crypto/openssl/ssl/quic/quic_engine.c
99
return tm;
crypto/openssl/ssl/statem/extensions_srvr.c
1016
uint64_t tm, now;
crypto/openssl/ssl/statem/extensions_srvr.c
1121
|| !PACKET_get_net_8(&cookie, &tm)
crypto/openssl/ssl/statem/extensions_srvr.c
1131
if (tm > now || (now - tm) > 600) {
crypto/openssl/ssl/t1_trce.c
718
unsigned int tm;
crypto/openssl/ssl/t1_trce.c
723
tm = ((unsigned int)p[0] << 24)
crypto/openssl/ssl/t1_trce.c
731
BIO_printf(bio, "gmt_unix_time=0x%08X\n", tm);
crypto/openssl/test/asn1_time_test.c
943
struct tm *ptm = localtime(&t);
crypto/openssl/test/cmp_hdr_test.c
180
struct tm hdrtm, tmptm;
crypto/openssl/test/cmp_vfy_test.c
606
struct tm ts = { 0 };
crypto/openssl/test/gmdifftest.c
24
struct tm tm1, tm2, o1;
crypto/openssl/test/testutil/helper.c
29
struct tm *timestamp_tm = NULL;
crypto/openssl/test/x509_time_test.c
611
struct tm t;
include/time.h
117
char *asctime(const struct tm *);
include/time.h
124
struct tm *gmtime(const time_t *);
include/time.h
125
struct tm *localtime(const time_t *);
include/time.h
126
time_t mktime(struct tm *);
include/time.h
128
const struct tm * __restrict);
include/time.h
156
char *asctime_r(const struct tm *, char *);
include/time.h
160
struct tm *gmtime_r(const time_t *, struct tm *);
include/time.h
161
struct tm *localtime_r(const time_t *, struct tm *);
include/time.h
166
struct tm * __restrict);
include/time.h
172
time_t timelocal(struct tm * const);
include/time.h
176
struct tm *offtime(const time_t *, long);
include/time.h
177
struct tm *offtime_r(const time_t *__restrict, long, struct tm *__restrict);
include/time.h
195
time_t timegm(struct tm * const);
include/wchar.h
109
struct tm;
include/wchar.h
156
const struct tm * __restrict);
include/xlocale/_time.h
45
const struct tm * __restrict, locale_t) __strftimelike(3, 0);
include/xlocale/_time.h
54
struct tm * __restrict, locale_t);
include/xlocale/_wchar.h
95
const struct tm * __restrict, locale_t);
lib/libc/gen/syslog.c
137
struct tm tm;
lib/libc/gen/syslog.c
176
localtime_r(&now.tv_sec, &tm) != NULL) {
lib/libc/gen/syslog.c
177
if (tm.tm_gmtoff < 0) {
lib/libc/gen/syslog.c
179
tz_offset = -tm.tm_gmtoff;
lib/libc/gen/syslog.c
182
tz_offset = tm.tm_gmtoff;
lib/libc/gen/syslog.c
189
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
lib/libc/gen/syslog.c
190
tm.tm_hour, tm.tm_min, tm.tm_sec, now.tv_usec,
lib/libc/locale/wcsftime.c
118
const wchar_t * __restrict format, const struct tm * __restrict timeptr)
lib/libc/locale/wcsftime.c
56
const wchar_t * __restrict format, const struct tm * __restrict timeptr,
lib/libc/resolv/res_debug.c
1153
struct tm *time;
lib/libc/resolv/res_debug.c
1155
struct tm res;
lib/libc/stdtime/strftime.c
111
const struct tm * __restrict t)
lib/libc/stdtime/strftime.c
117
_fmt(const char *format, const struct tm * const t, char *pt,
lib/libc/stdtime/strftime.c
301
struct tm tm;
lib/libc/stdtime/strftime.c
306
tm = *t;
lib/libc/stdtime/strftime.c
307
mkt = timeoff(&tm, t->tm_gmtoff);
lib/libc/stdtime/strftime.c
37
static char * _fmt(const char *, const struct tm *, char *, const char *,
lib/libc/stdtime/strftime.c
78
const struct tm * __restrict t, locale_t loc)
lib/libc/stdtime/strptime.c
124
buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
149
buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
156
buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale);
lib/libc/stdtime/strptime.c
175
buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale);
lib/libc/stdtime/strptime.c
182
buf = _strptime(buf, "%H:%M", tm, GMTp, locale);
lib/libc/stdtime/strptime.c
188
buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
194
buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale);
lib/libc/stdtime/strptime.c
200
buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
206
buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
226
tm->tm_yday = i - 1;
lib/libc/stdtime/strptime.c
251
tm->tm_min = i;
lib/libc/stdtime/strptime.c
255
tm->tm_sec = i;
lib/libc/stdtime/strptime.c
295
tm->tm_hour = i;
lib/libc/stdtime/strptime.c
304
if (tm->tm_hour > 12)
lib/libc/stdtime/strptime.c
309
if (tm->tm_hour == 12)
lib/libc/stdtime/strptime.c
310
tm->tm_hour = 0;
lib/libc/stdtime/strptime.c
317
if (tm->tm_hour != 12)
lib/libc/stdtime/strptime.c
318
tm->tm_hour += 12;
lib/libc/stdtime/strptime.c
341
tm->tm_wday = i;
lib/libc/stdtime/strptime.c
386
tm->tm_wday = i % 7;
lib/libc/stdtime/strptime.c
423
tm->tm_mday = i;
lib/libc/stdtime/strptime.c
462
tm->tm_mon = i;
lib/libc/stdtime/strptime.c
482
tm->tm_mon = i - 1;
lib/libc/stdtime/strptime.c
503
if (gmtime_r(&t, tm) == NULL)
lib/libc/stdtime/strptime.c
53
static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
lib/libc/stdtime/strptime.c
553
tm->tm_isdst = 0;
lib/libc/stdtime/strptime.c
555
tm->tm_isdst = 1;
lib/libc/stdtime/strptime.c
592
tm->tm_hour -= sign * (i / 100);
lib/libc/stdtime/strptime.c
593
tm->tm_min -= sign * (i % 100);
lib/libc/stdtime/strptime.c
617
tm->tm_year = year;
lib/libc/stdtime/strptime.c
623
tm->tm_yday = start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
624
TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
lib/libc/stdtime/strptime.c
629
fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE);
lib/libc/stdtime/strptime.c
637
tmpwday = (flags & FLAG_WDAY) ? tm->tm_wday :
lib/libc/stdtime/strptime.c
648
tm->tm_yday = tmpyday;
lib/libc/stdtime/strptime.c
656
while (tm->tm_yday >=
lib/libc/stdtime/strptime.c
657
start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
662
tm->tm_yday -=
lib/libc/stdtime/strptime.c
663
start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
665
tm->tm_year++;
lib/libc/stdtime/strptime.c
667
tm->tm_mon = i - 1;
lib/libc/stdtime/strptime.c
671
tm->tm_mday = tm->tm_yday -
lib/libc/stdtime/strptime.c
672
start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
lib/libc/stdtime/strptime.c
673
[tm->tm_mon] + 1;
lib/libc/stdtime/strptime.c
677
wday_offset = first_wday_of(tm->tm_year + TM_YEAR_BASE);
lib/libc/stdtime/strptime.c
678
tm->tm_wday = (wday_offset + tm->tm_yday) % 7;
lib/libc/stdtime/strptime.c
688
struct tm * __restrict tm, locale_t loc)
lib/libc/stdtime/strptime.c
695
ret = _strptime(buf, fmt, tm, &gmt, loc);
lib/libc/stdtime/strptime.c
697
time_t t = timegm(tm);
lib/libc/stdtime/strptime.c
699
localtime_r(&t, tm);
lib/libc/stdtime/strptime.c
707
struct tm * __restrict tm)
lib/libc/stdtime/strptime.c
709
return strptime_l(buf, fmt, tm, __get_locale());
lib/libc/stdtime/strptime.c
78
_strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,
lib/libc/tests/stdtime/detect_tz_changes_test.c
208
struct tm *tm;
lib/libc/tests/stdtime/detect_tz_changes_test.c
255
ATF_REQUIRE((tm = localtime(&then)) != NULL);
lib/libc/tests/stdtime/detect_tz_changes_test.c
256
if (tm->tm_gmtoff == curoff)
lib/libc/tests/stdtime/detect_tz_changes_test.c
258
olen = strftime(obuf, sizeof(obuf), "%z (%Z)", tm);
lib/libc/tests/stdtime/detect_tz_changes_test.c
262
curoff = tm->tm_gmtoff;
lib/libc/tests/stdtime/detect_tz_changes_test.c
95
struct tm *tm;
lib/libc/tests/stdtime/detect_tz_changes_test.c
98
ATF_REQUIRE((tm = localtime(&then)) != NULL);
lib/libc/tests/stdtime/detect_tz_changes_test.c
99
len = strftime(buf, sizeof(buf), "%z (%Z)", tm);
lib/libc/tests/stdtime/strptime_test.c
33
struct tm tm;
lib/libc/tests/stdtime/strptime_test.c
36
if (strptime(cases[i].str, "%Y-%m-%d", &tm) == NULL) {
lib/libc/tests/stdtime/strptime_test.c
39
} else if (tm.tm_wday != cases[i].wday) {
lib/libc/tests/stdtime/strptime_test.c
41
cases[i].wday, cases[i].str, tm.tm_wday);
lib/libdevdctl/event.cc
262
struct tm tm_timestamp;
lib/libfetch/ftp.c
404
struct tm tm;
lib/libfetch/ftp.c
456
&tm.tm_year, &tm.tm_mon, &tm.tm_mday,
lib/libfetch/ftp.c
457
&tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
lib/libfetch/ftp.c
461
tm.tm_mon--;
lib/libfetch/ftp.c
462
tm.tm_year -= 1900;
lib/libfetch/ftp.c
463
tm.tm_isdst = -1;
lib/libfetch/ftp.c
464
t = timegm(&tm);
lib/libfetch/ftp.c
470
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
lib/libfetch/ftp.c
471
tm.tm_hour, tm.tm_min, tm.tm_sec);
lib/libfetch/http.c
1598
struct tm *timestruct;
lib/libfetch/http.c
880
struct tm tm;
lib/libfetch/http.c
884
r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
lib/libfetch/http.c
890
r = strptime(p, "%a, %d %b %Y %H:%M:%S UTC", &tm);
lib/libfetch/http.c
896
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
lib/libfetch/http.c
897
tm.tm_hour, tm.tm_min, tm.tm_sec);
lib/libfetch/http.c
898
*mtime = timegm(&tm);
lib/libunbound/config.h
1441
struct tm *gmtime_r(const time_t *timep, struct tm *result);
lib/libunbound/config.h
1522
struct tm;
lib/libunbound/config.h
1523
char *strptime(const char *s, const char *format, struct tm *tm);
lib/libutil/login_cap.h
146
struct tm;
lib/libutil/login_cap.h
150
int in_ltm(const login_time_t *, struct tm *, time_t *);
lib/libutil/login_cap.h
151
int in_ltms(const login_time_t *, struct tm *, time_t *);
lib/libutil/login_ok.c
221
struct tm *tptr;
lib/libutil/login_times.c
107
in_ltm(const login_time_t *ltm, struct tm *tt, time_t *ends)
lib/libutil/login_times.c
142
in_ltms(const login_time_t *ltm, struct tm *tm, time_t *t)
lib/libutil/login_times.c
147
if (in_ltm(ltm + i, tm, t))
libexec/bootpd/tzone.c
35
struct tm *tm;
libexec/bootpd/tzone.c
39
if ((tm = localtime(&now)) == NULL) {
libexec/bootpd/tzone.c
43
secondswest = -tm->tm_gmtoff;
libexec/rbootd/utils.c
76
struct tm *tmp;
libexec/rpc.rstatd/rstat_proc.c
161
struct timeval tm, btm;
libexec/rpc.rstatd/rstat_proc.c
238
(void)gettimeofday(&tm, NULL);
libexec/rpc.rstatd/rstat_proc.c
239
stats_all.s1.v_intr -= hz*(tm.tv_sec - btm.tv_sec) +
libexec/rpc.rstatd/rstat_proc.c
240
hz*(tm.tv_usec - btm.tv_usec)/1000000;
libexec/rpc.rstatd/rstat_proc.c
281
(void)gettimeofday(&tm, NULL);
libexec/rpc.rstatd/rstat_proc.c
282
stats_all.s3.curtime.tv_sec = tm.tv_sec;
libexec/rpc.rstatd/rstat_proc.c
283
stats_all.s3.curtime.tv_usec = tm.tv_usec;
libexec/talkd/announce.c
90
struct tm *localclock;
libexec/tftpd/tftpd.c
634
struct tm lt;
sbin/adjkerntz/adjkerntz.c
72
struct tm local;
sbin/camcontrol/timestamp.c
249
struct tm time_struct;
sbin/camcontrol/timestamp.c
274
bzero(&time_struct, sizeof(struct tm));
sbin/camcontrol/timestamp.c
464
const struct tm *restrict cur_time;
sbin/dhclient/dhclient.c
1997
struct tm *t;
sbin/dhclient/parse.c
446
struct tm tm;
sbin/dhclient/parse.c
457
tm.tm_wday = atoi(val);
sbin/dhclient/parse.c
467
tm.tm_year = atoi(val);
sbin/dhclient/parse.c
468
if (tm.tm_year > 1900)
sbin/dhclient/parse.c
469
tm.tm_year -= 1900;
sbin/dhclient/parse.c
488
tm.tm_mon = atoi(val) - 1;
sbin/dhclient/parse.c
507
tm.tm_mday = atoi(val);
sbin/dhclient/parse.c
517
tm.tm_hour = atoi(val);
sbin/dhclient/parse.c
536
tm.tm_min = atoi(val);
sbin/dhclient/parse.c
555
tm.tm_sec = atoi(val);
sbin/dhclient/parse.c
556
tm.tm_isdst = 0;
sbin/dhclient/parse.c
559
tm.tm_yday = 0;
sbin/dhclient/parse.c
569
return (timegm(&tm));
sbin/dump/optr.c
374
struct tm *tlast;
sbin/dump/unctime.c
43
struct tm then;
sbin/fsdb/fsdb.c
1169
struct tm t;
sbin/ipf/ipmon/ipmon.c
1024
struct tm *tm;
sbin/ipf/ipmon/ipmon.c
1059
tm = get_tm(ipl->ipl_sec);
sbin/ipf/ipmon/ipmon.c
1063
(void) strftime(t, len, "%d/%m/%Y ", tm);
sbin/ipf/ipmon/ipmon.c
1068
(void) strftime(t, len, "%T", tm);
sbin/ipf/ipmon/ipmon.c
128
static struct tm *get_tm(time_t);
sbin/ipf/ipmon/ipmon.c
608
static struct tm *
sbin/ipf/ipmon/ipmon.c
611
struct tm *tm;
sbin/ipf/ipmon/ipmon.c
615
tm = localtime(&t);
sbin/ipf/ipmon/ipmon.c
616
return (tm);
sbin/ipf/ipmon/ipmon.c
625
struct tm *tm;
sbin/ipf/ipmon/ipmon.c
651
tm = get_tm(ipl->ipl_sec);
sbin/ipf/ipmon/ipmon.c
655
(void) strftime(t, len, "%d/%m/%Y ", tm);
sbin/ipf/ipmon/ipmon.c
660
(void) strftime(t, len, "%T", tm);
sbin/ipf/ipmon/ipmon.c
813
struct tm *tm;
sbin/ipf/ipmon/ipmon.c
835
tm = get_tm(ipl->ipl_sec);
sbin/ipf/ipmon/ipmon.c
838
(void) strftime(t, len, "%d/%m/%Y ", tm);
sbin/ipf/ipmon/ipmon.c
843
(void) strftime(t, len, "%T", tm);
sbin/ipfw/ipfw2.c
6175
struct tm tm;
sbin/ipfw/ipfw2.c
6230
localtime_r(&tp.tv_sec, &tm);
sbin/ipfw/ipfw2.c
6231
strftime(buf, sizeof(buf), "%T", &tm);
sbin/newfs_msdos/mkfs_msdos.c
242
struct tm *tm;
sbin/newfs_msdos/mkfs_msdos.c
627
tm = gmtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
631
tm = localtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
716
x = (((u_int)(1 + tm->tm_mon) << 8 |
sbin/newfs_msdos/mkfs_msdos.c
717
(u_int)tm->tm_mday) +
sbin/newfs_msdos/mkfs_msdos.c
718
((u_int)tm->tm_sec << 8 |
sbin/newfs_msdos/mkfs_msdos.c
720
((u_int)(1900 + tm->tm_year) +
sbin/newfs_msdos/mkfs_msdos.c
721
((u_int)tm->tm_hour << 8 |
sbin/newfs_msdos/mkfs_msdos.c
722
(u_int)tm->tm_min));
sbin/newfs_msdos/mkfs_msdos.c
758
x = (u_int)tm->tm_hour << 11 |
sbin/newfs_msdos/mkfs_msdos.c
759
(u_int)tm->tm_min << 5 |
sbin/newfs_msdos/mkfs_msdos.c
760
(u_int)tm->tm_sec >> 1;
sbin/newfs_msdos/mkfs_msdos.c
762
x = (u_int)(tm->tm_year - 80) << 9 |
sbin/newfs_msdos/mkfs_msdos.c
763
(u_int)(tm->tm_mon + 1) << 5 |
sbin/newfs_msdos/mkfs_msdos.c
764
(u_int)tm->tm_mday;
sbin/recoverdisk/recoverdisk.c
89
struct tm tm1;
sbin/route/route_netlink.c
448
struct tm tm;
sbin/route/route_netlink.c
452
localtime_r(&tp.tv_sec, &tm);
sbin/route/route_netlink.c
454
strftime(buf, sizeof(buf), "%T", &tm);
sbin/routed/parms.c
429
struct tm tm;
sbin/routed/parms.c
440
memset(&tm, 0, sizeof(tm));
sbin/routed/parms.c
441
ptr = strptime(buf, "%y/%m/%d@%H:%M\n", &tm);
sbin/routed/parms.c
447
if ((*tp = mktime(&tm)) == -1) {
sbin/savecore/savecore.c
167
struct tm tm;
sbin/savecore/savecore.c
201
localtime_r(&t, &tm);
sbin/savecore/savecore.c
202
if (strftime(time_str, sizeof(time_str), "%F %T %z", &tm) == 0)
sbin/setkey/setkey.c
647
register struct tm *gmt, *loc;
sbin/setkey/setkey.c
648
struct tm sgmt;
sbin/shutdown/shutdown.c
451
struct tm *lt;
sys/amd64/amd64/efirt_machdep.c
381
struct efi_tm tm;
sys/amd64/amd64/efirt_machdep.c
388
error = efi_get_time(&tm);
sys/amd64/amd64/efirt_machdep.c
391
"Sec %d\n", tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour,
sys/amd64/amd64/efirt_machdep.c
392
tm.tm_min, tm.tm_sec);
sys/amd64/linux/linux_proto.h
714
char tm_l_[PADL_(l_time_t *)]; l_time_t * tm; char tm_r_[PADR_(l_time_t *)];
sys/amd64/linux/linux_systrace_args.c
1559
uarg[a++] = (intptr_t)p->tm; /* l_time_t * */
sys/amd64/linux/linux_vdso_gtod.c
131
__vdso_time_fallback(long *tm)
sys/amd64/linux/linux_vdso_gtod.c
139
: "a"(LINUX_SYS_linux_time), "D"(tm)
sys/amd64/linux32/linux32_proto.h
77
char tm_l_[PADL_(l_time_t *)]; l_time_t * tm; char tm_r_[PADR_(l_time_t *)];
sys/amd64/linux32/linux32_systrace_args.c
112
uarg[a++] = (intptr_t)p->tm; /* l_time_t * */
sys/amd64/linux32/linux32_vdso_gtod.c
145
__vdso_time_fallback(long *tm)
sys/amd64/linux32/linux32_vdso_gtod.c
153
: "a"(LINUX32_SYS_linux_time), "b"(tm)
sys/bsm/audit_record.h
206
token_t *au_to_file(const char *file, struct timeval tm);
sys/bsm/audit_record.h
209
struct timeval tm);
sys/bsm/audit_record.h
211
struct timeval tm, struct auditinfo_addr *aia);
sys/bsm/audit_record.h
213
struct timeval tm);
sys/compat/linux/linux_misc.c
391
l_time_t tm;
sys/compat/linux/linux_misc.c
395
tm = tv.tv_sec;
sys/compat/linux/linux_misc.c
396
if (args->tm && (error = copyout(&tm, args->tm, sizeof(tm))))
sys/compat/linux/linux_misc.c
398
td->td_retval[0] = tm;
sys/dev/cxgbe/firmware/t4fw_interface.h
9442
__be64 tm;
sys/dev/efidev/efidev.c
79
struct efi_tm *tm = (struct efi_tm *)addr;
sys/dev/efidev/efidev.c
81
error = efi_get_time(tm);
sys/dev/efidev/efidev.c
86
struct efi_tm *tm = (struct efi_tm *)addr;
sys/dev/efidev/efidev.c
88
error = efi_set_time(tm);
sys/dev/efidev/efirt.c
593
efi_get_time_locked(struct efi_tm *tm, struct efi_tmcap *tmcap)
sys/dev/efidev/efirt.c
604
ec.ec_arg1 = (uintptr_t)tm;
sys/dev/efidev/efirt.c
609
kmsan_mark(tm, sizeof(*tm), KMSAN_STATE_INITED);
sys/dev/efidev/efirt.c
614
get_time(struct efi_tm *tm)
sys/dev/efidev/efirt.c
628
error = efi_get_time_locked(tm, &dummy);
sys/dev/efidev/efirt.c
634
get_waketime(uint8_t *enabled, uint8_t *pending, struct efi_tm *tm)
sys/dev/efidev/efirt.c
651
ec.ec_arg3 = (uintptr_t)tm;
sys/dev/efidev/efirt.c
671
set_waketime(uint8_t enable, struct efi_tm *tm)
sys/dev/efidev/efirt.c
684
ec.ec_arg2 = (uintptr_t)tm;
sys/dev/efidev/efirt.c
742
efi_set_time_locked(struct efi_tm *tm)
sys/dev/efidev/efirt.c
752
ec.ec_arg1 = (uintptr_t)tm;
sys/dev/efidev/efirt.c
758
set_time(struct efi_tm *tm)
sys/dev/efidev/efirt.c
765
error = efi_set_time_locked(tm);
sys/dev/efidev/efirtc.c
132
struct efi_tm tm;
sys/dev/efidev/efirtc.c
135
error = efi_get_time(&tm);
sys/dev/efidev/efirtc.c
139
ct.sec = tm.tm_sec;
sys/dev/efidev/efirtc.c
140
ct.min = tm.tm_min;
sys/dev/efidev/efirtc.c
141
ct.hour = tm.tm_hour;
sys/dev/efidev/efirtc.c
142
ct.day = tm.tm_mday;
sys/dev/efidev/efirtc.c
143
ct.mon = tm.tm_mon;
sys/dev/efidev/efirtc.c
144
ct.year = tm.tm_year;
sys/dev/efidev/efirtc.c
145
ct.nsec = tm.tm_nsec;
sys/dev/efidev/efirtc.c
155
struct efi_tm tm;
sys/dev/efidev/efirtc.c
169
bzero(&tm, sizeof(tm));
sys/dev/efidev/efirtc.c
170
tm.tm_sec = ct.sec;
sys/dev/efidev/efirtc.c
171
tm.tm_min = ct.min;
sys/dev/efidev/efirtc.c
172
tm.tm_hour = ct.hour;
sys/dev/efidev/efirtc.c
173
tm.tm_mday = ct.day;
sys/dev/efidev/efirtc.c
174
tm.tm_mon = ct.mon;
sys/dev/efidev/efirtc.c
175
tm.tm_year = ct.year;
sys/dev/efidev/efirtc.c
176
tm.tm_nsec = ct.nsec;
sys/dev/efidev/efirtc.c
178
return (efi_set_time(&tm));
sys/dev/efidev/efirtc.c
64
struct efi_tm tm;
sys/dev/efidev/efirtc.c
72
if ((error = efi_get_time(&tm)) != 0) {
sys/dev/mfi/mfi.c
2475
int tm = mfi_polled_cmd_timeout * 1000;
sys/dev/mfi/mfi.c
2510
tm -= 1;
sys/dev/mfi/mfi.c
2511
if (tm <= 0)
sys/dev/mfi/mfi_tbolt.c
1086
int tm = mfi_polled_cmd_timeout * 1000;
sys/dev/mfi/mfi_tbolt.c
1143
tm -= 1;
sys/dev/mfi/mfi_tbolt.c
1144
if (tm <= 0)
sys/dev/mpi3mr/mpi3mr_cam.h
187
void mpi3mr_prepare_for_tm(struct mpi3mr_softc *sc, struct mpi3mr_cmd *tm,
sys/dev/mpr/mpr_sas.c
1209
struct mpr_command *tm = data;
sys/dev/mpr/mpr_sas.c
1210
struct mpr_softc *sc = tm->cm_sc;
sys/dev/mpr/mpr_sas.c
1214
mprsas_log_command(tm, MPR_INFO|MPR_RECOVERY, "task mgmt %p timed "
sys/dev/mpr/mpr_sas.c
1215
"out\n", tm);
sys/dev/mpr/mpr_sas.c
1217
KASSERT(tm->cm_state == MPR_CM_STATE_INQUEUE,
sys/dev/mpr/mpr_sas.c
1218
("command not inqueue, state = %u\n", tm->cm_state));
sys/dev/mpr/mpr_sas.c
1220
tm->cm_state = MPR_CM_STATE_BUSY;
sys/dev/mpr/mpr_sas.c
1225
mprsas_logical_unit_reset_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
1232
callout_stop(&tm->cm_callout);
sys/dev/mpr/mpr_sas.c
1234
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
1235
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
1242
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
1245
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/mpr/mpr_sas.c
1246
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1252
tm);
sys/dev/mpr/mpr_sas.c
1257
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1258
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1280
if (cm->cm_lun == tm->cm_lun)
sys/dev/mpr/mpr_sas.c
1290
tm->cm_lun);
sys/dev/mpr/mpr_sas.c
1301
mprsas_send_abort(sc, tm, cm);
sys/dev/mpr/mpr_sas.c
1303
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1304
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
131
static int mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/mpr/mpr_sas.c
1316
mprsas_send_reset(sc, tm,
sys/dev/mpr/mpr_sas.c
1324
mprsas_target_reset_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
1330
callout_stop(&tm->cm_callout);
sys/dev/mpr/mpr_sas.c
1332
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
1333
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
1334
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
1341
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
1343
"reset! This should not happen!\n", __func__, tm->cm_flags);
sys/dev/mpr/mpr_sas.c
1344
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1351
tm, le16toh(req->TaskMID));
sys/dev/mpr/mpr_sas.c
1356
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1357
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1381
mprsas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/mpr/mpr_sas.c
1384
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1385
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1403
mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm, uint8_t type)
sys/dev/mpr/mpr_sas.c
1409
target = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
1416
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
1437
MPR_SET_LUN(req->LUN, tm->cm_lun);
sys/dev/mpr/mpr_sas.c
1438
tm->cm_targ->logical_unit_resets++;
sys/dev/mpr/mpr_sas.c
1441
target->tid, tm->cm_lun);
sys/dev/mpr/mpr_sas.c
1442
tm->cm_complete = mprsas_logical_unit_reset_complete;
sys/dev/mpr/mpr_sas.c
1443
mprsas_prepare_for_tm(sc, tm, target, tm->cm_lun);
sys/dev/mpr/mpr_sas.c
1445
tm->cm_targ->target_resets++;
sys/dev/mpr/mpr_sas.c
1448
tm->cm_complete = mprsas_target_reset_complete;
sys/dev/mpr/mpr_sas.c
1449
mprsas_prepare_for_tm(sc, tm, target, CAM_LUN_WILDCARD);
sys/dev/mpr/mpr_sas.c
1463
tm->cm_data = NULL;
sys/dev/mpr/mpr_sas.c
1464
tm->cm_complete_data = (void *)tm;
sys/dev/mpr/mpr_sas.c
1466
callout_reset(&tm->cm_callout, timeout * hz,
sys/dev/mpr/mpr_sas.c
1467
mprsas_tm_timeout, tm);
sys/dev/mpr/mpr_sas.c
1469
err = mpr_map_command(sc, tm);
sys/dev/mpr/mpr_sas.c
1478
mprsas_abort_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
1485
callout_stop(&tm->cm_callout);
sys/dev/mpr/mpr_sas.c
1487
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
1488
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
1489
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
1496
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
1499
tm->cm_flags, tm, le16toh(req->TaskMID));
sys/dev/mpr/mpr_sas.c
1500
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1507
tm, le16toh(req->TaskMID));
sys/dev/mpr/mpr_sas.c
1512
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1513
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1529
cm = TAILQ_FIRST(&tm->cm_targ->timedout_commands);
sys/dev/mpr/mpr_sas.c
1537
targ->tm = NULL;
sys/dev/mpr/mpr_sas.c
1538
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
1543
mprsas_send_abort(sc, tm, cm);
sys/dev/mpr/mpr_sas.c
1553
mprsas_send_reset(sc, tm,
sys/dev/mpr/mpr_sas.c
1561
mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/mpr/mpr_sas.c
1579
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
1588
tm->cm_data = NULL;
sys/dev/mpr/mpr_sas.c
1589
tm->cm_complete = mprsas_abort_complete;
sys/dev/mpr/mpr_sas.c
1590
tm->cm_complete_data = (void *)tm;
sys/dev/mpr/mpr_sas.c
1591
tm->cm_targ = cm->cm_targ;
sys/dev/mpr/mpr_sas.c
1592
tm->cm_lun = cm->cm_lun;
sys/dev/mpr/mpr_sas.c
1599
callout_reset(&tm->cm_callout, timeout * hz,
sys/dev/mpr/mpr_sas.c
1600
mprsas_tm_timeout, tm);
sys/dev/mpr/mpr_sas.c
1604
mprsas_prepare_for_tm(sc, tm, targ, tm->cm_lun);
sys/dev/mpr/mpr_sas.c
1606
err = mpr_map_command(sc, tm);
sys/dev/mpr/mpr_sas.c
1671
if (targ->tm != NULL) {
sys/dev/mpr/mpr_sas.c
1677
cm, targ->tm);
sys/dev/mpr/mpr_sas.c
1678
} else if ((targ->tm = mprsas_alloc_tm(sc)) != NULL) {
sys/dev/mpr/mpr_sas.c
1683
cm, targ->tm);
sys/dev/mpr/mpr_sas.c
1686
mprsas_send_abort(sc, targ->tm, cm);
sys/dev/mpr/mpr_sas.c
227
struct mpr_command *tm;
sys/dev/mpr/mpr_sas.c
230
tm = mpr_alloc_high_priority_command(sc);
sys/dev/mpr/mpr_sas.c
231
if (tm == NULL)
sys/dev/mpr/mpr_sas.c
234
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
236
return tm;
sys/dev/mpr/mpr_sas.c
240
mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
244
if (tm == NULL)
sys/dev/mpr/mpr_sas.c
2482
} else if (cm->cm_targ->tm != NULL) {
sys/dev/mpr/mpr_sas.c
252
if (tm->cm_ccb) {
sys/dev/mpr/mpr_sas.c
255
tm->cm_targ->tid);
sys/dev/mpr/mpr_sas.c
256
tm->cm_targ->flags &= ~MPRSAS_TARGET_INRESET;
sys/dev/mpr/mpr_sas.c
257
xpt_release_devq(tm->cm_ccb->ccb_h.path, 1, TRUE);
sys/dev/mpr/mpr_sas.c
258
xpt_free_path(tm->cm_ccb->ccb_h.path);
sys/dev/mpr/mpr_sas.c
259
xpt_free_ccb(tm->cm_ccb);
sys/dev/mpr/mpr_sas.c
262
mpr_free_high_priority_command(sc, tm);
sys/dev/mpr/mpr_sas.c
3223
struct mpr_command *tm;
sys/dev/mpr/mpr_sas.c
3232
tm = mprsas_alloc_tm(sc);
sys/dev/mpr/mpr_sas.c
3233
if (tm == NULL) {
sys/dev/mpr/mpr_sas.c
3242
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
3255
tm->cm_data = NULL;
sys/dev/mpr/mpr_sas.c
3256
tm->cm_complete = mprsas_resetdev_complete;
sys/dev/mpr/mpr_sas.c
3257
tm->cm_complete_data = ccb;
sys/dev/mpr/mpr_sas.c
3261
tm->cm_targ = targ;
sys/dev/mpr/mpr_sas.c
3263
mprsas_prepare_for_tm(sc, tm, targ, CAM_LUN_WILDCARD);
sys/dev/mpr/mpr_sas.c
3264
mpr_map_command(sc, tm);
sys/dev/mpr/mpr_sas.c
3268
mprsas_resetdev_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
3276
resp = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
3277
ccb = tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
3284
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
3287
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
3291
tm->cm_flags, req->DevHandle);
sys/dev/mpr/mpr_sas.c
3301
mprsas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/mpr/mpr_sas.c
3309
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
3446
mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/mpr/mpr_sas.c
3459
tm->cm_ccb = ccb;
sys/dev/mpr/mpr_sas.c
3460
tm->cm_targ = target;
sys/dev/mpr/mpr_sas.c
348
mprsas_remove_volume(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
356
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
357
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
358
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
364
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
376
mpr_free_reply(sc, tm->cm_reply_data);
sys/dev/mpr/mpr_sas.c
377
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/mpr/mpr_sas.c
390
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
408
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
513
struct mpr_command *tm;
sys/dev/mpr/mpr_sas.c
531
tm = mprsas_alloc_tm(sc);
sys/dev/mpr/mpr_sas.c
532
if (tm == NULL) {
sys/dev/mpr/mpr_sas.c
540
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
547
tm->cm_targ = targ;
sys/dev/mpr/mpr_sas.c
548
tm->cm_data = NULL;
sys/dev/mpr/mpr_sas.c
549
tm->cm_complete = mprsas_remove_device;
sys/dev/mpr/mpr_sas.c
550
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mpr/mpr_sas.c
554
mprsas_prepare_for_tm(sc, tm, targ, CAM_LUN_WILDCARD);
sys/dev/mpr/mpr_sas.c
556
mpr_map_command(sc, tm);
sys/dev/mpr/mpr_sas.c
560
mprsas_remove_device(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
569
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
570
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
571
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
578
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
581
tm->cm_flags, handle);
sys/dev/mpr/mpr_sas.c
588
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
600
mpr_free_reply(sc, tm->cm_reply_data);
sys/dev/mpr/mpr_sas.c
601
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/mpr/mpr_sas.c
604
req = (MPI2_SAS_IOUNIT_CONTROL_REQUEST *)tm->cm_req;
sys/dev/mpr/mpr_sas.c
609
tm->cm_data = NULL;
sys/dev/mpr/mpr_sas.c
610
tm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE;
sys/dev/mpr/mpr_sas.c
611
tm->cm_complete = mprsas_remove_complete;
sys/dev/mpr/mpr_sas.c
612
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mpr/mpr_sas.c
623
mpr_map_command(sc, tm);
sys/dev/mpr/mpr_sas.c
626
targ->pending_remove_tm = tm;
sys/dev/mpr/mpr_sas.c
639
mprsas_remove_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/mpr/mpr_sas.c
648
reply = (MPI2_SAS_IOUNIT_CONTROL_REPLY *)tm->cm_reply;
sys/dev/mpr/mpr_sas.c
649
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
651
targ = tm->cm_targ;
sys/dev/mpr/mpr_sas.c
665
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mpr/mpr_sas.c
668
tm->cm_flags, handle);
sys/dev/mpr/mpr_sas.c
669
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
677
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.c
715
mprsas_free_tm(sc, tm);
sys/dev/mpr/mpr_sas.h
170
void mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/mpr/mpr_sas.h
63
struct mpr_command *tm;
sys/dev/mpr/mpr_sas_lsi.c
1011
if ((targ->tm = mprsas_alloc_tm(sc)) != NULL) {
sys/dev/mpr/mpr_sas_lsi.c
1015
targ->tm->cm_targ = targ;
sys/dev/mpr/mpr_sas_lsi.c
1016
mprsas_send_reset(sc, targ->tm,
sys/dev/mpr/mprvar.h
915
void mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm);
sys/dev/mpr/mprvar.h
917
int mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/mps/mps_sas.c
1151
struct mps_command *tm = data;
sys/dev/mps/mps_sas.c
1152
struct mps_softc *sc = tm->cm_sc;
sys/dev/mps/mps_sas.c
1156
mpssas_log_command(tm, MPS_INFO|MPS_RECOVERY,
sys/dev/mps/mps_sas.c
1157
"task mgmt %p timed out\n", tm);
sys/dev/mps/mps_sas.c
1159
KASSERT(tm->cm_state == MPS_CM_STATE_INQUEUE,
sys/dev/mps/mps_sas.c
1160
("command not inqueue, state = %u\n", tm->cm_state));
sys/dev/mps/mps_sas.c
1162
tm->cm_state = MPS_CM_STATE_BUSY;
sys/dev/mps/mps_sas.c
1167
mpssas_logical_unit_reset_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
1174
callout_stop(&tm->cm_callout);
sys/dev/mps/mps_sas.c
1176
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
1177
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
1185
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
1188
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/mps/mps_sas.c
1189
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1195
tm);
sys/dev/mps/mps_sas.c
120
static int mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm,
sys/dev/mps/mps_sas.c
1200
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1201
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1223
if (cm->cm_lun == tm->cm_lun)
sys/dev/mps/mps_sas.c
1232
mpssas_announce_reset(sc, AC_SENT_BDR, targ->tid, tm->cm_lun);
sys/dev/mps/mps_sas.c
1244
mpssas_send_abort(sc, tm, cm);
sys/dev/mps/mps_sas.c
1246
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1247
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1259
mpssas_send_reset(sc, tm,
sys/dev/mps/mps_sas.c
1265
mpssas_target_reset_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
1271
callout_stop(&tm->cm_callout);
sys/dev/mps/mps_sas.c
1273
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
1274
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
1275
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
1282
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
1284
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/mps/mps_sas.c
1285
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1292
tm, le16toh(req->TaskMID));
sys/dev/mps/mps_sas.c
1297
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1298
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1320
mpssas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/mps/mps_sas.c
1323
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1324
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1342
mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm, uint8_t type)
sys/dev/mps/mps_sas.c
1348
target = tm->cm_targ;
sys/dev/mps/mps_sas.c
1355
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
1361
MPS_SET_LUN(req->LUN, tm->cm_lun);
sys/dev/mps/mps_sas.c
1362
tm->cm_targ->logical_unit_resets++;
sys/dev/mps/mps_sas.c
1365
target->tid, tm->cm_lun);
sys/dev/mps/mps_sas.c
1366
tm->cm_complete = mpssas_logical_unit_reset_complete;
sys/dev/mps/mps_sas.c
1367
mpssas_prepare_for_tm(sc, tm, target, tm->cm_lun);
sys/dev/mps/mps_sas.c
1374
tm->cm_targ->target_resets++;
sys/dev/mps/mps_sas.c
1377
tm->cm_complete = mpssas_target_reset_complete;
sys/dev/mps/mps_sas.c
1378
mpssas_prepare_for_tm(sc, tm, target, CAM_LUN_WILDCARD);
sys/dev/mps/mps_sas.c
1384
tm->cm_data = NULL;
sys/dev/mps/mps_sas.c
1385
tm->cm_complete_data = (void *)tm;
sys/dev/mps/mps_sas.c
1387
callout_reset(&tm->cm_callout, MPS_RESET_TIMEOUT * hz,
sys/dev/mps/mps_sas.c
1388
mpssas_tm_timeout, tm);
sys/dev/mps/mps_sas.c
1390
err = mps_map_command(sc, tm);
sys/dev/mps/mps_sas.c
1400
mpssas_abort_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
1407
callout_stop(&tm->cm_callout);
sys/dev/mps/mps_sas.c
1409
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
1410
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
1411
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
1418
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
1421
tm->cm_flags, tm, le16toh(req->TaskMID));
sys/dev/mps/mps_sas.c
1422
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1429
tm, le16toh(req->TaskMID));
sys/dev/mps/mps_sas.c
1434
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1435
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1451
cm = TAILQ_FIRST(&tm->cm_targ->timedout_commands);
sys/dev/mps/mps_sas.c
1460
targ->tm = NULL;
sys/dev/mps/mps_sas.c
1461
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
1467
mpssas_send_abort(sc, tm, cm);
sys/dev/mps/mps_sas.c
1476
mpssas_send_reset(sc, tm,
sys/dev/mps/mps_sas.c
1484
mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm, struct mps_command *cm)
sys/dev/mps/mps_sas.c
1501
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
1510
tm->cm_data = NULL;
sys/dev/mps/mps_sas.c
1511
tm->cm_complete = mpssas_abort_complete;
sys/dev/mps/mps_sas.c
1512
tm->cm_complete_data = (void *)tm;
sys/dev/mps/mps_sas.c
1513
tm->cm_targ = cm->cm_targ;
sys/dev/mps/mps_sas.c
1514
tm->cm_lun = cm->cm_lun;
sys/dev/mps/mps_sas.c
1516
callout_reset(&tm->cm_callout, MPS_ABORT_TIMEOUT * hz,
sys/dev/mps/mps_sas.c
1517
mpssas_tm_timeout, tm);
sys/dev/mps/mps_sas.c
1521
mpssas_prepare_for_tm(sc, tm, targ, tm->cm_lun);
sys/dev/mps/mps_sas.c
1523
err = mps_map_command(sc, tm);
sys/dev/mps/mps_sas.c
1583
if (targ->tm != NULL) {
sys/dev/mps/mps_sas.c
1589
cm, targ->tm);
sys/dev/mps/mps_sas.c
1590
} else if ((targ->tm = mpssas_alloc_tm(sc)) != NULL) {
sys/dev/mps/mps_sas.c
1595
cm, targ->tm);
sys/dev/mps/mps_sas.c
1598
mpssas_send_abort(sc, targ->tm, cm);
sys/dev/mps/mps_sas.c
2025
} else if (cm->cm_targ->tm != NULL) {
sys/dev/mps/mps_sas.c
221
struct mps_command *tm;
sys/dev/mps/mps_sas.c
223
tm = mps_alloc_high_priority_command(sc);
sys/dev/mps/mps_sas.c
224
if (tm == NULL)
sys/dev/mps/mps_sas.c
227
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
229
return tm;
sys/dev/mps/mps_sas.c
233
mpssas_free_tm(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
235
if (tm == NULL)
sys/dev/mps/mps_sas.c
243
if (tm->cm_ccb) {
sys/dev/mps/mps_sas.c
246
tm->cm_targ->tid);
sys/dev/mps/mps_sas.c
247
tm->cm_targ->flags &= ~MPSSAS_TARGET_INRESET;
sys/dev/mps/mps_sas.c
248
xpt_release_devq(tm->cm_ccb->ccb_h.path, 1, TRUE);
sys/dev/mps/mps_sas.c
249
xpt_free_path(tm->cm_ccb->ccb_h.path);
sys/dev/mps/mps_sas.c
250
xpt_free_ccb(tm->cm_ccb);
sys/dev/mps/mps_sas.c
253
mps_free_high_priority_command(sc, tm);
sys/dev/mps/mps_sas.c
3042
struct mps_command *tm;
sys/dev/mps/mps_sas.c
3052
tm = mpssas_alloc_tm(sc);
sys/dev/mps/mps_sas.c
3053
if (tm == NULL) {
sys/dev/mps/mps_sas.c
3062
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
3069
tm->cm_data = NULL;
sys/dev/mps/mps_sas.c
3070
tm->cm_complete = mpssas_resetdev_complete;
sys/dev/mps/mps_sas.c
3071
tm->cm_complete_data = ccb;
sys/dev/mps/mps_sas.c
3072
tm->cm_targ = targ;
sys/dev/mps/mps_sas.c
3074
mpssas_prepare_for_tm(sc, tm, targ, CAM_LUN_WILDCARD);
sys/dev/mps/mps_sas.c
3075
mps_map_command(sc, tm);
sys/dev/mps/mps_sas.c
3079
mpssas_resetdev_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
3087
resp = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
3088
ccb = tm->cm_complete_data;
sys/dev/mps/mps_sas.c
3095
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
3098
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
3102
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/mps/mps_sas.c
3114
mpssas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/mps/mps_sas.c
3122
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
3259
mpssas_prepare_for_tm(struct mps_softc *sc, struct mps_command *tm,
sys/dev/mps/mps_sas.c
3272
tm->cm_ccb = ccb;
sys/dev/mps/mps_sas.c
3273
tm->cm_targ = target;
sys/dev/mps/mps_sas.c
340
mpssas_remove_volume(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
348
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
349
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
350
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
357
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
370
mps_free_reply(sc, tm->cm_reply_data);
sys/dev/mps/mps_sas.c
371
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/mps/mps_sas.c
384
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
395
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
407
struct mps_command *tm;
sys/dev/mps/mps_sas.c
436
tm = mpssas_alloc_tm(sc);
sys/dev/mps/mps_sas.c
437
if (tm == NULL) {
sys/dev/mps/mps_sas.c
445
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
452
tm->cm_targ = targ;
sys/dev/mps/mps_sas.c
453
tm->cm_data = NULL;
sys/dev/mps/mps_sas.c
454
tm->cm_complete = mpssas_remove_volume;
sys/dev/mps/mps_sas.c
455
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mps/mps_sas.c
459
mpssas_prepare_for_tm(sc, tm, targ, CAM_LUN_WILDCARD);
sys/dev/mps/mps_sas.c
461
mps_map_command(sc, tm);
sys/dev/mps/mps_sas.c
525
mpssas_remove_device(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
534
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
535
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
536
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
543
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
546
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/mps/mps_sas.c
555
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
568
mps_free_reply(sc, tm->cm_reply_data);
sys/dev/mps/mps_sas.c
569
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/mps/mps_sas.c
572
req = (MPI2_SAS_IOUNIT_CONTROL_REQUEST *)tm->cm_req;
sys/dev/mps/mps_sas.c
577
tm->cm_data = NULL;
sys/dev/mps/mps_sas.c
578
tm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE;
sys/dev/mps/mps_sas.c
579
tm->cm_complete = mpssas_remove_complete;
sys/dev/mps/mps_sas.c
580
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mps/mps_sas.c
591
mps_map_command(sc, tm);
sys/dev/mps/mps_sas.c
594
targ->pending_remove_tm = tm;
sys/dev/mps/mps_sas.c
602
mpssas_remove_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/mps/mps_sas.c
611
reply = (MPI2_SAS_IOUNIT_CONTROL_REPLY *)tm->cm_reply;
sys/dev/mps/mps_sas.c
612
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
613
targ = tm->cm_targ;
sys/dev/mps/mps_sas.c
627
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/mps/mps_sas.c
630
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/mps/mps_sas.c
632
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
640
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.c
672
mpssas_free_tm(sc, tm);
sys/dev/mps/mps_sas.h
164
void mpssas_prepare_for_tm(struct mps_softc *sc, struct mps_command *tm,
sys/dev/mps/mps_sas.h
62
struct mps_command *tm;
sys/dev/mps/mps_sas_lsi.c
786
if ((targ->tm = mpssas_alloc_tm(sc)) != NULL) {
sys/dev/mps/mps_sas_lsi.c
790
targ->tm->cm_targ = targ;
sys/dev/mps/mps_sas_lsi.c
791
mpssas_send_reset(sc, targ->tm,
sys/dev/mps/mpsvar.h
825
void mpssas_free_tm(struct mps_softc *sc, struct mps_command *tm);
sys/dev/mps/mpsvar.h
827
int mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm,
sys/dev/vt/vt_core.c
1125
vtterm_bell(struct terminal *tm)
sys/dev/vt/vt_core.c
1127
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1154
vtterm_beep(struct terminal *tm, u_int param)
sys/dev/vt/vt_core.c
1158
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1162
vtterm_bell(tm);
sys/dev/vt/vt_core.c
1180
vtterm_cursor(struct terminal *tm, const term_pos_t *p)
sys/dev/vt/vt_core.c
1182
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1188
vtterm_putchar(struct terminal *tm, const term_pos_t *p, term_char_t c)
sys/dev/vt/vt_core.c
1190
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1196
vtterm_fill(struct terminal *tm, const term_rect_t *r, term_char_t c)
sys/dev/vt/vt_core.c
1198
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1204
vtterm_copy(struct terminal *tm, const term_rect_t *r,
sys/dev/vt/vt_core.c
1207
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1213
vtterm_param(struct terminal *tm, int cmd, unsigned int arg)
sys/dev/vt/vt_core.c
1215
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1630
vtterm_pre_input(struct terminal *tm)
sys/dev/vt/vt_core.c
1632
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1641
vtterm_post_input(struct terminal *tm)
sys/dev/vt/vt_core.c
1643
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1653
vtterm_done(struct terminal *tm)
sys/dev/vt/vt_core.c
1655
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1850
vtterm_cnprobe(struct terminal *tm, struct consdev *cp)
sys/dev/vt/vt_core.c
1853
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
1912
vw->vw_buf.vb_terminal = tm;
sys/dev/vt/vt_core.c
1915
a = teken_get_curattr(&tm->tm_emulator);
sys/dev/vt/vt_core.c
1916
terminal_set_winsize_blank(tm, &wsz, 1, a);
sys/dev/vt/vt_core.c
1928
vtterm_cngetc(struct terminal *tm)
sys/dev/vt/vt_core.c
1930
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2068
vtterm_cngrab(struct terminal *tm)
sys/dev/vt/vt_core.c
2073
vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2087
vtterm_cnungrab(struct terminal *tm)
sys/dev/vt/vt_core.c
2092
vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2115
vtterm_opened(struct terminal *tm, int opened)
sys/dev/vt/vt_core.c
2117
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2135
struct terminal *tm = vw->vw_terminal;
sys/dev/vt/vt_core.c
2165
terminal_mute(tm, 1);
sys/dev/vt/vt_core.c
2167
terminal_set_winsize_blank(tm, &wsz, 0, NULL);
sys/dev/vt/vt_core.c
2168
terminal_set_cursor(tm, &vw->vw_buf.vb_cursor);
sys/dev/vt/vt_core.c
2169
terminal_mute(tm, 0);
sys/dev/vt/vt_core.c
2550
vtterm_mmap(struct terminal *tm, vm_ooffset_t offset, vm_paddr_t * paddr,
sys/dev/vt/vt_core.c
2553
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2564
vtterm_ioctl(struct terminal *tm, u_long cmd, caddr_t data,
sys/dev/vt/vt_core.c
2567
struct vt_window *vw = tm->tm_softc;
sys/dev/vt/vt_core.c
2939
vtterm_beep(tm, *(u_int *)data);
sys/dev/vt/vt_core.c
3141
struct terminal *tm;
sys/dev/vt/vt_core.c
3157
tm = vw->vw_terminal = terminal_alloc(&vt_termclass, vw);
sys/dev/vt/vt_core.c
3158
vw->vw_buf.vb_terminal = tm; /* must be set before vtbuf_init() */
sys/dev/vt/vt_core.c
3161
terminal_set_winsize(tm, &wsz);
sys/dev/vt/vt_cpulogos.c
121
struct terminal *tm = vd->vd_curwindow->vw_terminal;
sys/dev/vt/vt_cpulogos.c
132
a = teken_get_curattr(&tm->tm_emulator);
sys/dev/vt/vt_cpulogos.c
153
struct terminal *tm;
sys/dev/vt/vt_cpulogos.c
179
tm = vw->vw_terminal;
sys/dev/vt/vt_cpulogos.c
188
terminal_mute(tm, 1);
sys/dev/vt/vt_cpulogos.c
190
terminal_set_winsize_blank(tm, &wsz, 0, NULL);
sys/dev/vt/vt_cpulogos.c
191
terminal_set_cursor(tm, &vw->vw_buf.vb_cursor);
sys/dev/vt/vt_cpulogos.c
192
terminal_mute(tm, 0);
sys/dev/vt/vt_cpulogos.c
210
struct terminal *tm;
sys/dev/vt/vt_cpulogos.c
226
tm = vw->vw_terminal;
sys/dev/vt/vt_cpulogos.c
227
if (tm == NULL)
sys/dev/vt/vt_cpulogos.c
248
terminal_mute(tm, 1);
sys/dev/vt/vt_cpulogos.c
250
terminal_set_winsize_blank(tm, &wsz, 0, NULL);
sys/dev/vt/vt_cpulogos.c
251
terminal_set_cursor(tm, &vw->vw_buf.vb_cursor);
sys/dev/vt/vt_cpulogos.c
252
terminal_mute(tm, 0);
sys/dev/xen/efi/pvefi.c
101
set_time(struct efi_tm *tm)
sys/dev/xen/efi/pvefi.c
106
.u.efi_runtime_call.u.set_time.year = tm->tm_year,
sys/dev/xen/efi/pvefi.c
107
.u.efi_runtime_call.u.set_time.month = tm->tm_mon,
sys/dev/xen/efi/pvefi.c
108
.u.efi_runtime_call.u.set_time.day = tm->tm_mday,
sys/dev/xen/efi/pvefi.c
109
.u.efi_runtime_call.u.set_time.hour = tm->tm_hour,
sys/dev/xen/efi/pvefi.c
110
.u.efi_runtime_call.u.set_time.min = tm->tm_min,
sys/dev/xen/efi/pvefi.c
111
.u.efi_runtime_call.u.set_time.sec = tm->tm_sec,
sys/dev/xen/efi/pvefi.c
112
.u.efi_runtime_call.u.set_time.ns = tm->tm_nsec,
sys/dev/xen/efi/pvefi.c
113
.u.efi_runtime_call.u.set_time.tz = tm->tm_tz,
sys/dev/xen/efi/pvefi.c
114
.u.efi_runtime_call.u.set_time.daylight = tm->tm_dst,
sys/dev/xen/efi/pvefi.c
53
get_time(struct efi_tm *tm)
sys/dev/xen/efi/pvefi.c
66
tm->tm_year = call->u.get_time.time.year;
sys/dev/xen/efi/pvefi.c
67
tm->tm_mon = call->u.get_time.time.month;
sys/dev/xen/efi/pvefi.c
68
tm->tm_mday = call->u.get_time.time.day;
sys/dev/xen/efi/pvefi.c
69
tm->tm_hour = call->u.get_time.time.hour;
sys/dev/xen/efi/pvefi.c
70
tm->tm_min = call->u.get_time.time.min;
sys/dev/xen/efi/pvefi.c
71
tm->tm_sec = call->u.get_time.time.sec;
sys/dev/xen/efi/pvefi.c
72
tm->tm_nsec = call->u.get_time.time.ns;
sys/dev/xen/efi/pvefi.c
73
tm->tm_tz = call->u.get_time.time.tz;
sys/dev/xen/efi/pvefi.c
74
tm->tm_dst = call->u.get_time.time.daylight;
sys/fs/smbfs/smbfs_smb.c
537
int64_t tm;
sys/fs/smbfs/smbfs_smb.c
559
smb_time_local2NT(atime, tzoff, &tm);
sys/fs/smbfs/smbfs_smb.c
561
tm = 0;
sys/fs/smbfs/smbfs_smb.c
562
mb_put_int64le(mbp, tm);
sys/fs/smbfs/smbfs_smb.c
564
smb_time_local2NT(mtime, tzoff, &tm);
sys/fs/smbfs/smbfs_smb.c
566
tm = 0;
sys/fs/smbfs/smbfs_smb.c
567
mb_put_int64le(mbp, tm);
sys/fs/smbfs/smbfs_smb.c
568
mb_put_int64le(mbp, tm); /* change time */
sys/fs/smbfs/smbfs_smb.c
632
int64_t tm;
sys/fs/smbfs/smbfs_smb.c
649
smb_time_local2NT(atime, svtz, &tm);
sys/fs/smbfs/smbfs_smb.c
651
tm = 0;
sys/fs/smbfs/smbfs_smb.c
652
mb_put_int64le(mbp, tm);
sys/fs/smbfs/smbfs_smb.c
654
smb_time_local2NT(mtime, svtz, &tm);
sys/fs/smbfs/smbfs_smb.c
656
tm = 0;
sys/fs/smbfs/smbfs_smb.c
657
mb_put_int64le(mbp, tm);
sys/fs/smbfs/smbfs_smb.c
658
mb_put_int64le(mbp, tm); /* change time */
sys/fs/smbfs/smbfs_smb.c
759
u_long tm;
sys/fs/smbfs/smbfs_smb.c
769
smb_time_local2server(&ctime, SSTOVC(ssp)->vc_sopt.sv_tz, &tm);
sys/fs/smbfs/smbfs_smb.c
770
mb_put_uint32le(mbp, tm);
sys/fs/tmpfs/tmpfs.h
442
#define TMPFS_LOCK(tm) mtx_lock(&(tm)->tm_allnode_lock)
sys/fs/tmpfs/tmpfs.h
443
#define TMPFS_UNLOCK(tm) mtx_unlock(&(tm)->tm_allnode_lock)
sys/fs/tmpfs/tmpfs.h
444
#define TMPFS_MP_ASSERT_LOCKED(tm) mtx_assert(&(tm)->tm_allnode_lock, MA_OWNED)
sys/fs/tmpfs/tmpfs.h
508
void tmpfs_set_accessed(struct tmpfs_mount *tm, struct tmpfs_node *node);
sys/fs/tmpfs/tmpfs.h
509
void tmpfs_set_status(struct tmpfs_mount *tm, struct tmpfs_node *node,
sys/fs/tmpfs/tmpfs_subr.c
1067
vn_irflag_set_locked(vp, (tm->tm_pgread ? VIRF_PGREAD : 0) |
sys/fs/tmpfs/tmpfs_subr.c
1131
tmpfs_free_node(tm, node);
sys/fs/tmpfs/tmpfs_subr.c
1564
tmpfs_dir_getdotdent(struct tmpfs_mount *tm, struct tmpfs_node *node,
sys/fs/tmpfs/tmpfs_subr.c
1586
tmpfs_set_accessed(tm, node);
sys/fs/tmpfs/tmpfs_subr.c
1599
tmpfs_dir_getdotdotdent(struct tmpfs_mount *tm, struct tmpfs_node *node,
sys/fs/tmpfs/tmpfs_subr.c
1631
tmpfs_set_accessed(tm, node);
sys/fs/tmpfs/tmpfs_subr.c
1644
tmpfs_dir_getdents(struct tmpfs_mount *tm, struct tmpfs_node *node,
sys/fs/tmpfs/tmpfs_subr.c
1666
error = tmpfs_dir_getdotdent(tm, node, uio);
sys/fs/tmpfs/tmpfs_subr.c
1676
error = tmpfs_dir_getdotdotdent(tm, node, uio, off);
sys/fs/tmpfs/tmpfs_subr.c
1788
tmpfs_set_accessed(tm, node);
sys/fs/tmpfs/tmpfs_subr.c
226
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_subr.c
2324
tmpfs_set_status(struct tmpfs_mount *tm, struct tmpfs_node *node, int status)
sys/fs/tmpfs/tmpfs_subr.c
2327
if ((node->tn_status & status) == status || tm->tm_ronly)
sys/fs/tmpfs/tmpfs_subr.c
2335
tmpfs_set_accessed(struct tmpfs_mount *tm, struct tmpfs_node *node)
sys/fs/tmpfs/tmpfs_subr.c
2337
if (node->tn_accessed || tm->tm_ronly)
sys/fs/tmpfs/tmpfs_subr.c
235
tm = node->tn_reg.tn_tmp;
sys/fs/tmpfs/tmpfs_subr.c
237
KASSERT(tm->tm_pages_used >= c,
sys/fs/tmpfs/tmpfs_subr.c
238
("tmpfs tm %p pages %jd free %jd", tm,
sys/fs/tmpfs/tmpfs_subr.c
239
(uintmax_t)tm->tm_pages_used, (uintmax_t)c));
sys/fs/tmpfs/tmpfs_subr.c
240
atomic_add_long(&tm->tm_pages_used, -c);
sys/fs/tmpfs/tmpfs_subr.c
251
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_subr.c
258
tm = node->tn_reg.tn_tmp;
sys/fs/tmpfs/tmpfs_subr.c
261
atomic_add_long(&tm->tm_pages_used, 1);
sys/fs/tmpfs/tmpfs_subr.c
270
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_subr.c
277
tm = node->tn_reg.tn_tmp;
sys/fs/tmpfs/tmpfs_subr.c
280
KASSERT(tm->tm_pages_used >= 1,
sys/fs/tmpfs/tmpfs_subr.c
281
("tmpfs tm %p pages %jd free 1", tm,
sys/fs/tmpfs/tmpfs_subr.c
282
(uintmax_t)tm->tm_pages_used));
sys/fs/tmpfs/tmpfs_subr.c
283
atomic_add_long(&tm->tm_pages_used, -1);
sys/fs/tmpfs/tmpfs_subr.c
294
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_subr.c
296
tm = VM_TO_TMPFS_MP(obj);
sys/fs/tmpfs/tmpfs_subr.c
297
if (tm == NULL || vm_pager_has_page(obj, pindex, NULL, NULL) ||
sys/fs/tmpfs/tmpfs_subr.c
298
tm->tm_pages_max == 0)
sys/fs/tmpfs/tmpfs_subr.c
300
if (tm->tm_pages_max == ULONG_MAX)
sys/fs/tmpfs/tmpfs_subr.c
302
return (tm->tm_pages_max > atomic_load_long(&tm->tm_pages_used));
sys/fs/tmpfs/tmpfs_subr.c
955
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_subr.c
960
tm = VFS_TO_TMPFS(mp);
sys/fs/tmpfs/tmpfs_vnops.c
114
tm = VFS_TO_TMPFS(dvp->v_mount);
sys/fs/tmpfs/tmpfs_vnops.c
119
tmpfs_free_node(tm, pnode);
sys/fs/tmpfs/tmpfs_vnops.c
1448
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_vnops.c
1467
tm = VFS_TO_TMPFS(vp->v_mount);
sys/fs/tmpfs/tmpfs_vnops.c
1481
error = tmpfs_dir_getdents(tm, node, uio, 0, NULL, NULL);
sys/fs/tmpfs/tmpfs_vnops.c
1483
error = tmpfs_dir_getdents(tm, node, uio, maxcookies, *cookies,
sys/fs/tmpfs/tmpfs_vnops.c
1814
struct tmpfs_mount *tm;
sys/fs/tmpfs/tmpfs_vnops.c
1824
tm = VFS_TO_TMPFS(vp->v_mount);
sys/fs/tmpfs/tmpfs_vnops.c
1833
tmpfs_free_node(tm, tnp);
sys/fs/tmpfs/tmpfs_vnops.c
1837
TMPFS_LOCK(tm);
sys/fs/tmpfs/tmpfs_vnops.c
1839
LIST_FOREACH_SAFE(tnp, &tm->tm_nodes_used, tn_entries, tnp1) {
sys/fs/tmpfs/tmpfs_vnops.c
1857
TMPFS_UNLOCK(tm);
sys/fs/tmpfs/tmpfs_vnops.c
1861
tmpfs_free_node(tm, tnp);
sys/fs/tmpfs/tmpfs_vnops.c
1865
tmpfs_free_node(tm, tnp);
sys/fs/tmpfs/tmpfs_vnops.c
1868
TMPFS_LOCK(tm);
sys/fs/tmpfs/tmpfs_vnops.c
1871
if (tmpfs_free_node_locked(tm, tnp, false)) {
sys/fs/tmpfs/tmpfs_vnops.c
1885
TMPFS_UNLOCK(tm);
sys/fs/tmpfs/tmpfs_vnops.c
96
struct tmpfs_mount *tm;
sys/i386/linux/linux_proto.h
77
char tm_l_[PADL_(l_time_t *)]; l_time_t * tm; char tm_r_[PADR_(l_time_t *)];
sys/i386/linux/linux_systrace_args.c
112
uarg[a++] = (intptr_t)p->tm; /* l_time_t * */
sys/i386/linux/linux_vdso_gtod.c
145
__vdso_time_fallback(long *tm)
sys/i386/linux/linux_vdso_gtod.c
153
: "a"(LINUX_SYS_linux_time), "b"(tm)
sys/kern/subr_fattime.c
260
struct tm tm;
sys/kern/subr_fattime.c
280
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
281
strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm);
sys/kern/subr_fattime.c
299
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
300
strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm);
sys/kern/subr_terminal.c
164
terminal_init(struct terminal *tm)
sys/kern/subr_terminal.c
168
if (tm->tm_flags & TF_CONS)
sys/kern/subr_terminal.c
169
mtx_init(&tm->tm_mtx, "trmlck", NULL, MTX_SPIN);
sys/kern/subr_terminal.c
171
teken_init(&tm->tm_emulator, &terminal_drawmethods, tm);
sys/kern/subr_terminal.c
194
teken_set_defattr(&tm->tm_emulator, &default_message);
sys/kern/subr_terminal.c
200
struct terminal *tm;
sys/kern/subr_terminal.c
202
tm = malloc(sizeof(struct terminal), M_TERMINAL, M_WAITOK|M_ZERO);
sys/kern/subr_terminal.c
203
terminal_init(tm);
sys/kern/subr_terminal.c
205
tm->tm_class = tc;
sys/kern/subr_terminal.c
206
tm->tm_softc = softc;
sys/kern/subr_terminal.c
208
return (tm);
sys/kern/subr_terminal.c
212
terminal_sync_ttysize(struct terminal *tm)
sys/kern/subr_terminal.c
216
tp = tm->tm_tty;
sys/kern/subr_terminal.c
221
tty_set_winsize(tp, &tm->tm_winsize);
sys/kern/subr_terminal.c
226
terminal_maketty(struct terminal *tm, const char *fmt, ...)
sys/kern/subr_terminal.c
236
tp = tty_alloc(&terminal_tty_class, tm);
sys/kern/subr_terminal.c
238
tm->tm_tty = tp;
sys/kern/subr_terminal.c
239
terminal_sync_ttysize(tm);
sys/kern/subr_terminal.c
243
terminal_set_cursor(struct terminal *tm, const term_pos_t *pos)
sys/kern/subr_terminal.c
246
teken_set_cursor(&tm->tm_emulator, pos);
sys/kern/subr_terminal.c
250
terminal_set_winsize_blank(struct terminal *tm, const struct winsize *size,
sys/kern/subr_terminal.c
255
tm->tm_winsize = *size;
sys/kern/subr_terminal.c
261
TERMINAL_LOCK(tm);
sys/kern/subr_terminal.c
263
teken_set_winsize_noreset(&tm->tm_emulator, &r.tr_end);
sys/kern/subr_terminal.c
265
teken_set_winsize(&tm->tm_emulator, &r.tr_end);
sys/kern/subr_terminal.c
266
TERMINAL_UNLOCK(tm);
sys/kern/subr_terminal.c
268
if ((blank != 0) && !(tm->tm_flags & TF_MUTE))
sys/kern/subr_terminal.c
269
tm->tm_class->tc_fill(tm, &r,
sys/kern/subr_terminal.c
272
terminal_sync_ttysize(tm);
sys/kern/subr_terminal.c
276
terminal_set_winsize(struct terminal *tm, const struct winsize *size)
sys/kern/subr_terminal.c
279
terminal_set_winsize_blank(tm, size, 1,
sys/kern/subr_terminal.c
290
terminal_mute(struct terminal *tm, int yes)
sys/kern/subr_terminal.c
293
TERMINAL_LOCK(tm);
sys/kern/subr_terminal.c
295
tm->tm_flags |= TF_MUTE;
sys/kern/subr_terminal.c
297
tm->tm_flags &= ~TF_MUTE;
sys/kern/subr_terminal.c
298
TERMINAL_UNLOCK(tm);
sys/kern/subr_terminal.c
302
terminal_input_char(struct terminal *tm, term_char_t c)
sys/kern/subr_terminal.c
306
tp = tm->tm_tty;
sys/kern/subr_terminal.c
355
terminal_input_raw(struct terminal *tm, char c)
sys/kern/subr_terminal.c
359
tp = tm->tm_tty;
sys/kern/subr_terminal.c
370
terminal_input_special(struct terminal *tm, unsigned int k)
sys/kern/subr_terminal.c
375
tp = tm->tm_tty;
sys/kern/subr_terminal.c
379
str = teken_get_sequence(&tm->tm_emulator, k);
sys/kern/subr_terminal.c
396
struct terminal *tm = tty_softc(tp);
sys/kern/subr_terminal.c
398
tm->tm_class->tc_opened(tm, 1);
sys/kern/subr_terminal.c
405
struct terminal *tm = tty_softc(tp);
sys/kern/subr_terminal.c
407
tm->tm_class->tc_opened(tm, 0);
sys/kern/subr_terminal.c
413
struct terminal *tm = tty_softc(tp);
sys/kern/subr_terminal.c
419
TERMINAL_LOCK_TTY(tm);
sys/kern/subr_terminal.c
420
if (!(tm->tm_flags & TF_MUTE)) {
sys/kern/subr_terminal.c
421
tm->tm_flags &= ~TF_BELL;
sys/kern/subr_terminal.c
422
teken_input(&tm->tm_emulator, obuf, olen);
sys/kern/subr_terminal.c
423
flags |= tm->tm_flags;
sys/kern/subr_terminal.c
425
TERMINAL_UNLOCK_TTY(tm);
sys/kern/subr_terminal.c
428
TERMINAL_LOCK_TTY(tm);
sys/kern/subr_terminal.c
429
if (!(tm->tm_flags & TF_MUTE))
sys/kern/subr_terminal.c
430
tm->tm_class->tc_done(tm);
sys/kern/subr_terminal.c
431
TERMINAL_UNLOCK_TTY(tm);
sys/kern/subr_terminal.c
433
tm->tm_class->tc_bell(tm);
sys/kern/subr_terminal.c
439
struct terminal *tm = tty_softc(tp);
sys/kern/subr_terminal.c
452
p = teken_get_cursor(&tm->tm_emulator);
sys/kern/subr_terminal.c
456
p = teken_get_winsize(&tm->tm_emulator);
sys/kern/subr_terminal.c
460
teken_get_defattr_cons25(&tm->tm_emulator, &fg, &bg);
sys/kern/subr_terminal.c
476
error = tm->tm_class->tc_ioctl(tm, cmd, data, td);
sys/kern/subr_terminal.c
486
teken_set_cursor(&tm->tm_emulator, &p);
sys/kern/subr_terminal.c
495
struct terminal *tm = tty_softc(tp);
sys/kern/subr_terminal.c
497
return (tm->tm_class->tc_mmap(tm, offset, paddr, nprot, memattr));
sys/kern/subr_terminal.c
523
termcn_cnregister(struct terminal *tm)
sys/kern/subr_terminal.c
527
cp = tm->consdev;
sys/kern/subr_terminal.c
532
cp->cn_arg = tm;
sys/kern/subr_terminal.c
536
tm->tm_flags = TF_CONS;
sys/kern/subr_terminal.c
537
tm->consdev = cp;
sys/kern/subr_terminal.c
539
terminal_init(tm);
sys/kern/subr_terminal.c
54
#define TERMINAL_LOCK(tm) do { \
sys/kern/subr_terminal.c
549
struct terminal *tm = cp->cn_arg;
sys/kern/subr_terminal.c
55
if ((tm)->tm_flags & TF_CONS) \
sys/kern/subr_terminal.c
551
tm->tm_class->tc_cngrab(tm);
sys/kern/subr_terminal.c
557
struct terminal *tm = cp->cn_arg;
sys/kern/subr_terminal.c
559
tm->tm_class->tc_cnungrab(tm);
sys/kern/subr_terminal.c
56
mtx_lock_spin(&(tm)->tm_mtx); \
sys/kern/subr_terminal.c
565
struct terminal *tm = cp->cn_arg;
sys/kern/subr_terminal.c
567
if (tm == NULL) {
sys/kern/subr_terminal.c
57
else if ((tm)->tm_tty != NULL) \
sys/kern/subr_terminal.c
572
tm->consdev = cp;
sys/kern/subr_terminal.c
573
terminal_init(tm);
sys/kern/subr_terminal.c
575
tm->tm_class->tc_cnprobe(tm, cp);
sys/kern/subr_terminal.c
58
tty_lock((tm)->tm_tty); \
sys/kern/subr_terminal.c
593
struct terminal *tm = cp->cn_arg;
sys/kern/subr_terminal.c
595
return (tm->tm_class->tc_cngetc(tm));
sys/kern/subr_terminal.c
60
#define TERMINAL_UNLOCK(tm) do { \
sys/kern/subr_terminal.c
601
struct terminal *tm = cp->cn_arg;
sys/kern/subr_terminal.c
605
TERMINAL_LOCK_CONS(tm);
sys/kern/subr_terminal.c
606
if (!(tm->tm_flags & TF_MUTE)) {
sys/kern/subr_terminal.c
607
backup = *teken_get_curattr(&tm->tm_emulator);
sys/kern/subr_terminal.c
608
teken_set_curattr(&tm->tm_emulator, &kernel_message);
sys/kern/subr_terminal.c
609
teken_input(&tm->tm_emulator, &cv, 1);
sys/kern/subr_terminal.c
61
if ((tm)->tm_flags & TF_CONS) \
sys/kern/subr_terminal.c
610
teken_set_curattr(&tm->tm_emulator, &backup);
sys/kern/subr_terminal.c
611
tm->tm_class->tc_done(tm);
sys/kern/subr_terminal.c
613
TERMINAL_UNLOCK_CONS(tm);
sys/kern/subr_terminal.c
62
mtx_unlock_spin(&(tm)->tm_mtx); \
sys/kern/subr_terminal.c
623
struct terminal *tm = softc;
sys/kern/subr_terminal.c
625
tm->tm_flags |= TF_BELL;
sys/kern/subr_terminal.c
63
else if ((tm)->tm_tty != NULL) \
sys/kern/subr_terminal.c
631
struct terminal *tm = softc;
sys/kern/subr_terminal.c
633
tm->tm_class->tc_cursor(tm, p);
sys/kern/subr_terminal.c
64
tty_unlock((tm)->tm_tty); \
sys/kern/subr_terminal.c
640
struct terminal *tm = softc;
sys/kern/subr_terminal.c
642
tm->tm_class->tc_putchar(tm, p, TCHAR_CREATE(c, a));
sys/kern/subr_terminal.c
649
struct terminal *tm = softc;
sys/kern/subr_terminal.c
651
tm->tm_class->tc_fill(tm, r, TCHAR_CREATE(c, a));
sys/kern/subr_terminal.c
657
struct terminal *tm = softc;
sys/kern/subr_terminal.c
659
tm->tm_class->tc_copy(tm, r, p);
sys/kern/subr_terminal.c
66
#define TERMINAL_LOCK_TTY(tm) do { \
sys/kern/subr_terminal.c
665
struct terminal *tm = softc;
sys/kern/subr_terminal.c
667
tm->tm_class->tc_pre_input(tm);
sys/kern/subr_terminal.c
67
if ((tm)->tm_flags & TF_CONS) \
sys/kern/subr_terminal.c
673
struct terminal *tm = softc;
sys/kern/subr_terminal.c
675
tm->tm_class->tc_post_input(tm);
sys/kern/subr_terminal.c
68
mtx_lock_spin(&(tm)->tm_mtx); \
sys/kern/subr_terminal.c
681
struct terminal *tm = softc;
sys/kern/subr_terminal.c
683
tm->tm_class->tc_param(tm, cmd, arg);
sys/kern/subr_terminal.c
690
struct terminal *tm = softc;
sys/kern/subr_terminal.c
70
#define TERMINAL_UNLOCK_TTY(tm) do { \
sys/kern/subr_terminal.c
702
tp = tm->tm_tty;
sys/kern/subr_terminal.c
71
if ((tm)->tm_flags & TF_CONS) \
sys/kern/subr_terminal.c
72
mtx_unlock_spin(&(tm)->tm_mtx); \
sys/kern/subr_terminal.c
74
#define TERMINAL_LOCK_CONS(tm) mtx_lock_spin(&(tm)->tm_mtx)
sys/kern/subr_terminal.c
75
#define TERMINAL_UNLOCK_CONS(tm) mtx_unlock_spin(&(tm)->tm_mtx)
sys/kgssapi/krb5/krb5_mech.c
1124
struct mbuf *mlast, *tm;
sys/kgssapi/krb5/krb5_mech.c
1165
MGET(tm, M_WAITOK, MT_DATA);
sys/kgssapi/krb5/krb5_mech.c
1166
tm->m_len = cklen;
sys/kgssapi/krb5/krb5_mech.c
1167
mlast->m_next = tm;
sys/kgssapi/krb5/krb5_mech.c
1173
if (bcmp(tm->m_data, p + 8, cklen)) {
sys/kgssapi/krb5/krb5_mech.c
1174
m_free(tm);
sys/kgssapi/krb5/krb5_mech.c
1187
bcopy(p, tm->m_data, 8);
sys/kgssapi/krb5/krb5_mech.c
1188
tm->m_len = 8;
sys/kgssapi/krb5/krb5_mech.c
1189
krb5_decrypt(kc->kc_tokenkey, tm, 0, 8, p + 8, 8);
sys/kgssapi/krb5/krb5_mech.c
1191
tp = tm->m_data;
sys/kgssapi/krb5/krb5_mech.c
1204
m_free(tm);
sys/kgssapi/krb5/krb5_mech.c
1207
m_free(tm);
sys/kgssapi/krb5/krb5_mech.c
1333
struct mbuf *m, *mlast, *tm, *cm, *pm;
sys/kgssapi/krb5/krb5_mech.c
1357
p = krb5_make_token("\x02\x01", tlen, datalen + tlen, &tm);
sys/kgssapi/krb5/krb5_mech.c
1395
tm->m_next = m;
sys/kgssapi/krb5/krb5_mech.c
1405
tlen = tm->m_len;
sys/kgssapi/krb5/krb5_mech.c
1406
tm->m_len = p - (uint8_t *) tm->m_data;
sys/kgssapi/krb5/krb5_mech.c
1410
krb5_checksum(kc->kc_checksumkey, 13, tm, tm->m_len - 8,
sys/kgssapi/krb5/krb5_mech.c
1412
tm->m_len = tlen;
sys/kgssapi/krb5/krb5_mech.c
1447
krb5_encrypt(kc->kc_tokenkey, tm, p - (uint8_t *) tm->m_data,
sys/kgssapi/krb5/krb5_mech.c
1472
*mp = tm;
sys/kgssapi/krb5/krb5_mech.c
1484
struct mbuf *m, *mlast, *tm;
sys/kgssapi/krb5/krb5_mech.c
1526
tm = NULL;
sys/kgssapi/krb5/krb5_mech.c
1529
MGET(tm, M_WAITOK, MT_DATA);
sys/kgssapi/krb5/krb5_mech.c
1530
tm->m_len = EC + 16 + cklen;
sys/kgssapi/krb5/krb5_mech.c
1531
mlast->m_next = tm;
sys/kgssapi/krb5/krb5_mech.c
1542
MGET(tm, M_WAITOK, MT_DATA);
sys/kgssapi/krb5/krb5_mech.c
1543
tm->m_len = cklen + 16;
sys/kgssapi/krb5/krb5_mech.c
1544
mlast->m_next = tm;
sys/kgssapi/krb5/krb5_mech.c
1607
bcopy(p, tm->m_data, 16);
sys/kgssapi/krb5/krb5_mech.c
1609
tm->m_data += 16;
sys/kgssapi/krb5/krb5_mech.c
1610
tm->m_len -= 16;
sys/kgssapi/krb5/krb5_mech.c
941
struct mbuf *mlast, *mic, *tm;
sys/kgssapi/krb5/krb5_mech.c
970
MGET(tm, M_WAITOK, MT_DATA);
sys/kgssapi/krb5/krb5_mech.c
971
tm->m_len = cklen;
sys/kgssapi/krb5/krb5_mech.c
972
mlast->m_next = tm;
sys/kgssapi/krb5/krb5_mech.c
976
bcopy(tm->m_data, p + 8, cklen);
sys/kgssapi/krb5/krb5_mech.c
979
m_free(tm);
sys/netinet/tcp_stacks/rack.c
11486
struct mbuf *tm;
sys/netinet/tcp_stacks/rack.c
11489
tm = sbsndmbuf(sb, (rsm->r_start - snd_una), &soff);
sys/netinet/tcp_stacks/rack.c
11500
if ((rsm->soff != soff) || (rsm->m != tm)) {
sys/netinet/tcp_stacks/rack.c
11509
rsm->m = tm;
sys/netinet/tcp_stacks/rack.c
11511
if (tm) {
sys/netsmb/smb_trantcp.c
327
struct mbuf *m, *tm, *im;
sys/netsmb/smb_trantcp.c
375
tm = NULL;
sys/netsmb/smb_trantcp.c
389
&auio, &tm, (struct mbuf **)NULL, &rcvflg);
sys/netsmb/smb_trantcp.c
403
m = tm;
sys/netsmb/smb_trantcp.c
411
im->m_next = tm;
sys/security/audit/audit_bsm.c
121
struct timeval tm;
sys/security/audit/audit_bsm.c
144
tm.tv_usec = ctime->tv_nsec / 1000;
sys/security/audit/audit_bsm.c
145
tm.tv_sec = ctime->tv_sec;
sys/security/audit/audit_bsm.c
147
hdr = au_to_header32_ex_tm(tot_rec_size, event, 0, tm, &ak);
sys/security/audit/audit_bsm.c
149
hdr = au_to_header32_tm(tot_rec_size, event, 0, tm);
sys/security/audit/bsm_token.c
1436
struct timeval tm)
sys/security/audit/bsm_token.c
1451
timems = tm.tv_usec/1000;
sys/security/audit/bsm_token.c
1453
ADD_U_INT32(dptr, tm.tv_sec);
sys/security/audit/bsm_token.c
1472
struct timeval tm, struct auditinfo_addr *aia)
sys/security/audit/bsm_token.c
1498
timems = tm.tv_usec/1000;
sys/security/audit/bsm_token.c
1500
ADD_U_INT32(dptr, tm.tv_sec);
sys/security/audit/bsm_token.c
1508
struct timeval tm)
sys/security/audit/bsm_token.c
1523
timems = tm.tv_usec/1000;
sys/security/audit/bsm_token.c
1525
ADD_U_INT64(dptr, tm.tv_sec);
sys/security/audit/bsm_token.c
1536
struct timeval tm;
sys/security/audit/bsm_token.c
1539
if (gettimeofday(&tm, NULL) == -1)
sys/security/audit/bsm_token.c
1544
return (au_to_header32_tm(rec_size, e_type, e_mod, tm));
sys/security/audit/bsm_token.c
1546
return (au_to_header32_ex_tm(rec_size, e_type, e_mod, tm, &aia));
sys/security/audit/bsm_token.c
1553
struct timeval tm;
sys/security/audit/bsm_token.c
1555
if (gettimeofday(&tm, NULL) == -1)
sys/security/audit/bsm_token.c
1557
return (au_to_header32_tm(rec_size, e_type, e_mod, tm));
sys/security/audit/bsm_token.c
1564
struct timeval tm;
sys/security/audit/bsm_token.c
1566
if (gettimeofday(&tm, NULL) == -1)
sys/security/audit/bsm_token.c
1568
return (au_to_header64_tm(rec_size, e_type, e_mod, tm));
sys/security/audit/bsm_token.c
578
au_to_file(const char *file, struct timeval tm)
sys/security/audit/bsm_token.c
591
timems = tm.tv_usec/1000;
sys/security/audit/bsm_token.c
594
ADD_U_INT32(dptr, tm.tv_sec);
sys/sys/efi.h
287
struct efi_tm *tm);
sys/sys/efi.h
288
int (*set_waketime)(uint8_t enable, struct efi_tm *tm);
sys/sys/efi.h
322
efi_get_time(struct efi_tm *tm)
sys/sys/efi.h
326
return (active_efi_ops->get_time(tm));
sys/sys/efi.h
346
efi_set_time(struct efi_tm *tm)
sys/sys/efi.h
350
return (active_efi_ops->set_time(tm));
sys/sys/efi.h
354
efi_get_waketime(uint8_t *enabled, uint8_t *pending, struct efi_tm *tm)
sys/sys/efi.h
358
return (active_efi_ops->get_waketime(enabled, pending, tm));
sys/sys/efi.h
362
efi_set_waketime(uint8_t enable, struct efi_tm *tm)
sys/sys/efi.h
366
return (active_efi_ops->set_waketime(enable, tm));
sys/sys/terminal.h
144
typedef void tc_cursor_t(struct terminal *tm, const term_pos_t *p);
sys/sys/terminal.h
145
typedef void tc_putchar_t(struct terminal *tm, const term_pos_t *p,
sys/sys/terminal.h
147
typedef void tc_fill_t(struct terminal *tm, const term_rect_t *r,
sys/sys/terminal.h
149
typedef void tc_copy_t(struct terminal *tm, const term_rect_t *r,
sys/sys/terminal.h
151
typedef void tc_pre_input_t(struct terminal *tm);
sys/sys/terminal.h
152
typedef void tc_post_input_t(struct terminal *tm);
sys/sys/terminal.h
153
typedef void tc_param_t(struct terminal *tm, int cmd, unsigned int arg);
sys/sys/terminal.h
154
typedef void tc_done_t(struct terminal *tm);
sys/sys/terminal.h
156
typedef void tc_cnprobe_t(struct terminal *tm, struct consdev *cd);
sys/sys/terminal.h
157
typedef int tc_cngetc_t(struct terminal *tm);
sys/sys/terminal.h
159
typedef void tc_cngrab_t(struct terminal *tm);
sys/sys/terminal.h
160
typedef void tc_cnungrab_t(struct terminal *tm);
sys/sys/terminal.h
162
typedef void tc_opened_t(struct terminal *tm, int opened);
sys/sys/terminal.h
163
typedef int tc_ioctl_t(struct terminal *tm, u_long cmd, caddr_t data,
sys/sys/terminal.h
165
typedef int tc_mmap_t(struct terminal *tm, vm_ooffset_t offset,
sys/sys/terminal.h
167
typedef void tc_bell_t(struct terminal *tm);
sys/sys/terminal.h
212
void terminal_maketty(struct terminal *tm, const char *fmt, ...);
sys/sys/terminal.h
213
void terminal_set_cursor(struct terminal *tm, const term_pos_t *pos);
sys/sys/terminal.h
214
void terminal_set_winsize_blank(struct terminal *tm,
sys/sys/terminal.h
216
void terminal_set_winsize(struct terminal *tm, const struct winsize *size);
sys/sys/terminal.h
217
void terminal_mute(struct terminal *tm, int yes);
sys/sys/terminal.h
218
void terminal_input_char(struct terminal *tm, term_char_t c);
sys/sys/terminal.h
219
void terminal_input_raw(struct terminal *tm, char c);
sys/sys/terminal.h
220
void terminal_input_special(struct terminal *tm, unsigned int k);
sys/sys/terminal.h
222
void termcn_cnregister(struct terminal *tm);
sys/vm/vm_object.c
1314
vm_page_t m, tm;
sys/vm/vm_object.c
1371
} while ((tm = vm_page_lookup(tobject, tpindex)) ==
sys/vm/vm_object.c
1375
tm = m;
sys/vm/vm_object.c
1383
if (!vm_page_all_valid(tm) || vm_page_wired(tm))
sys/vm/vm_object.c
1385
KASSERT((tm->flags & PG_FICTITIOUS) == 0,
sys/vm/vm_object.c
1386
("vm_object_madvise: page %p is fictitious", tm));
sys/vm/vm_object.c
1387
KASSERT((tm->oflags & VPO_UNMANAGED) == 0,
sys/vm/vm_object.c
1388
("vm_object_madvise: page %p is not managed", tm));
sys/vm/vm_object.c
1389
if (vm_page_tryxbusy(tm) == 0) {
sys/vm/vm_object.c
1398
vm_page_aflag_set(tm, PGA_REFERENCED);
sys/vm/vm_object.c
1400
if (!vm_page_busy_sleep(tm, "madvpo", 0))
sys/vm/vm_object.c
1405
vm_page_advise(tm, advice);
sys/vm/vm_object.c
1406
vm_page_xunbusy(tm);
sys/vm/vm_object.c
1407
vm_object_madvise_freespace(tobject, advice, tm->pindex, 1);
sys/vm/vm_object.c
2375
vm_page_t m, tm;
sys/vm/vm_object.c
2416
} while ((tm = vm_page_lookup(tobject, tpindex)) ==
sys/vm/vm_object.c
2419
tm = m;
sys/vm/vm_object.c
2422
if (vm_page_trysbusy(tm) == 0) {
sys/vm/vm_object.c
2426
if (tm->object != tobject)
sys/vm/vm_object.c
2430
tobject = tm->object;
sys/vm/vm_object.c
2431
if (!vm_page_busy_sleep(tm, "unwbo",
sys/vm/vm_object.c
2437
vm_page_unwire(tm, queue);
sys/vm/vm_object.c
2438
vm_page_sunbusy(tm);
tests/sys/net/routing/rtsock_print.h
265
struct tm tm_res;
tests/sys/net/routing/rtsock_print.h
314
struct tm tm_res;
tests/sys/net/routing/rtsock_print.h
350
struct tm tm_res;
tools/test/stress2/testcases/run/run.c
79
struct tm *tm;
tools/test/stress2/testcases/run/run.c
90
tm = localtime(&t);
tools/test/stress2/testcases/run/run.c
91
(void) strftime(ct, sizeof(ct), "%T", tm);
tools/tools/net80211/stumbler/stumbler.c
210
struct tm* t;
tools/tools/net80211/wesside/wesside/wesside.c
237
struct tm *t;
usr.bin/ar/read.c
53
struct tm *tp;
usr.bin/at/at.c
464
struct tm runtime;
usr.bin/at/at.c
646
struct tm *t;
usr.bin/at/at.c
883
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
884
fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/at.c
902
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
903
fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/parsetime.c
286
plus_or_minus(struct tm *tm, int delay)
usr.bin/at/parsetime.c
294
tm->tm_year += delay;
usr.bin/at/parsetime.c
297
tm->tm_mon += delay;
usr.bin/at/parsetime.c
302
tm->tm_mday += delay;
usr.bin/at/parsetime.c
305
tm->tm_hour += delay;
usr.bin/at/parsetime.c
308
tm->tm_min += delay;
usr.bin/at/parsetime.c
318
tm->tm_isdst = -1;
usr.bin/at/parsetime.c
319
if (mktime(tm) < 0)
usr.bin/at/parsetime.c
331
plus(struct tm *tm)
usr.bin/at/parsetime.c
338
plus_or_minus(tm, delay);
usr.bin/at/parsetime.c
346
minus(struct tm *tm)
usr.bin/at/parsetime.c
353
plus_or_minus(tm, delay);
usr.bin/at/parsetime.c
362
tod(struct tm *tm)
usr.bin/at/parsetime.c
410
tm->tm_hour > hour) {
usr.bin/at/parsetime.c
411
tm->tm_mday++;
usr.bin/at/parsetime.c
412
tm->tm_wday++;
usr.bin/at/parsetime.c
415
tm->tm_hour = hour;
usr.bin/at/parsetime.c
416
tm->tm_min = minute;
usr.bin/at/parsetime.c
417
if (tm->tm_hour == 24) {
usr.bin/at/parsetime.c
418
tm->tm_hour = 0;
usr.bin/at/parsetime.c
419
tm->tm_mday++;
usr.bin/at/parsetime.c
428
assign_date(struct tm *tm, long mday, long mon, long year)
usr.bin/at/parsetime.c
440
struct tm *lt;
usr.bin/at/parsetime.c
456
(tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday)))
usr.bin/at/parsetime.c
457
year = tm->tm_year + 1;
usr.bin/at/parsetime.c
459
tm->tm_mday = mday;
usr.bin/at/parsetime.c
460
tm->tm_mon = mon;
usr.bin/at/parsetime.c
463
tm->tm_year = year;
usr.bin/at/parsetime.c
477
month(struct tm *tm)
usr.bin/at/parsetime.c
485
plus(tm);
usr.bin/at/parsetime.c
488
minus(tm);
usr.bin/at/parsetime.c
493
tm->tm_mday ++;
usr.bin/at/parsetime.c
494
tm->tm_wday ++;
usr.bin/at/parsetime.c
510
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
520
mday = tm->tm_mday;
usr.bin/at/parsetime.c
524
if (wday < tm->tm_wday)
usr.bin/at/parsetime.c
525
mday += 7 - (tm->tm_wday - wday);
usr.bin/at/parsetime.c
527
mday += (wday - tm->tm_wday);
usr.bin/at/parsetime.c
529
tm->tm_wday = wday;
usr.bin/at/parsetime.c
531
assign_date(tm, mday, tm->tm_mon, tm->tm_year);
usr.bin/at/parsetime.c
580
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
595
struct tm nowtime, runtime;
usr.bin/calendar/calendar.c
151
struct tm tm;
usr.bin/calendar/calendar.c
156
localtime_r(&t, &tm);
usr.bin/calendar/calendar.c
157
utcoffset = tm.tm_gmtoff;
usr.bin/calendar/calendar.c
71
struct tm tp1, tp2;
usr.bin/calendar/calendar.h
158
extern const struct tm tm0;
usr.bin/calendar/calendar.h
160
void settimes(time_t,int before, int after, int friday, struct tm *tp1, struct tm *tp2);
usr.bin/calendar/calendar.h
182
void generatedates(struct tm *tp1, struct tm *tp2);
usr.bin/calendar/dates.c
103
struct tm td;
usr.bin/calendar/dates.c
170
generatedates(struct tm *tp1, struct tm *tp2)
usr.bin/calendar/day.c
104
(int)mktime(&tm), (int)t, asctime(&tm));
usr.bin/calendar/day.c
106
return (mktime(&tm));
usr.bin/calendar/day.c
43
const struct tm tm0;
usr.bin/calendar/day.c
49
settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2)
usr.bin/calendar/day.c
51
struct tm tp;
usr.bin/calendar/day.c
79
struct tm tm, tp;
usr.bin/calendar/day.c
84
tm = tm0;
usr.bin/calendar/day.c
85
tm.tm_mday = tp.tm_mday;
usr.bin/calendar/day.c
86
tm.tm_mon = tp.tm_mon;
usr.bin/calendar/day.c
87
tm.tm_year = tp.tm_year;
usr.bin/calendar/day.c
93
tm.tm_year = y;
usr.bin/calendar/day.c
96
tm.tm_mon = m - 1;
usr.bin/calendar/day.c
99
tm.tm_mday = d;
usr.bin/calendar/events.c
201
struct tm tm;
usr.bin/calendar/events.c
213
memset(&tm, 0, sizeof(struct tm));
usr.bin/calendar/events.c
214
tm.tm_mday = e->day;
usr.bin/calendar/events.c
215
tm.tm_mon = e->month - 1;
usr.bin/calendar/events.c
216
tm.tm_year = e->year - 1900;
usr.bin/calendar/events.c
217
(void)strftime(dbuf, sizeof(dbuf), d_first ? "%e %b" : "%b %e", &tm);
usr.bin/calendar/locale.c
107
memset(&tm, 0, sizeof(struct tm));
usr.bin/calendar/locale.c
109
tm.tm_mon = i;
usr.bin/calendar/locale.c
110
strftime(buf, sizeof(buf), "%b", &tm);
usr.bin/calendar/locale.c
122
strftime(buf, sizeof(buf), "%B", &tm);
usr.bin/calendar/locale.c
77
struct tm tm;
usr.bin/calendar/locale.c
79
memset(&tm, 0, sizeof(struct tm));
usr.bin/calendar/locale.c
81
tm.tm_wday = i;
usr.bin/calendar/locale.c
82
strftime(buf, sizeof(buf), "%a", &tm);
usr.bin/calendar/locale.c
94
strftime(buf, sizeof(buf), "%A", &tm);
usr.bin/calendar/pom.c
93
struct tm GMT, tmd_today, tmd_tomorrow;
usr.bin/chat/chat.c
1235
struct tm* tm_now = localtime (&time_now);
usr.bin/chpass/util.c
63
struct tm *tp;
usr.bin/chpass/util.c
79
static struct tm *lt;
usr.bin/diff/diffreg.c
1699
struct tm tm1, tm2, *tm_ptr1, *tm_ptr2;
usr.bin/diff/diffreg_new.c
124
struct tm tm, *tm_ptr;
usr.bin/diff/diffreg_new.c
127
tm_ptr = localtime_r(&stb->st_mtime, &tm);
usr.bin/find/getdate.y
623
struct tm *tm;
usr.bin/find/getdate.y
627
tm = localtime(&now);
usr.bin/find/getdate.y
628
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
usr.bin/find/getdate.y
637
struct tm *tm;
usr.bin/find/getdate.y
643
tm = localtime(&Start);
usr.bin/find/getdate.y
644
Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth;
usr.bin/find/getdate.y
648
Convert(Month, (time_t)tm->tm_mday, Year,
usr.bin/find/getdate.y
649
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
usr.bin/find/getdate.y
816
difftm (struct tm *a, struct tm *b)
usr.bin/find/getdate.y
838
struct tm *tm, *gmt_ptr, gmt;
usr.bin/find/getdate.y
844
bzero (&gmt, sizeof(struct tm));
usr.bin/find/getdate.y
859
if (! (tm = localtime (&nowtime)))
usr.bin/find/getdate.y
863
tzoff = difftm (&gmt, tm) / 60;
usr.bin/find/getdate.y
872
if(tm->tm_isdst)
usr.bin/find/getdate.y
875
tm = localtime(&nowtime);
usr.bin/find/getdate.y
876
yyYear = tm->tm_year + 1900;
usr.bin/find/getdate.y
877
yyMonth = tm->tm_mon + 1;
usr.bin/find/getdate.y
878
yyDay = tm->tm_mday;
usr.bin/find/getdate.y
906
Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
usr.bin/find/ls.c
100
if ((tm = localtime(&ftime)) != NULL)
usr.bin/find/ls.c
101
strftime(longstring, sizeof(longstring), format, tm);
usr.bin/find/ls.c
84
struct tm *tm;
usr.bin/find/printf.c
138
struct tm tm;
usr.bin/find/printf.c
151
gmtime_r(&t, &tm);
usr.bin/find/printf.c
153
if (strftime(buffer, sizeof(buffer), fmt, &tm) == 0)
usr.bin/finger/lprint.c
94
struct tm *delta;
usr.bin/finger/lprint.c
97
struct tm *tp;
usr.bin/finger/sprint.c
158
struct tm *delta;
usr.bin/finger/sprint.c
59
struct tm *lc;
usr.bin/grdc/grdc.c
157
tm = localtime(&now.tv_sec);
usr.bin/grdc/grdc.c
159
if (tm->tm_hour < 12) {
usr.bin/grdc/grdc.c
160
if (tm->tm_hour == 0)
usr.bin/grdc/grdc.c
161
tm->tm_hour = 12;
usr.bin/grdc/grdc.c
164
if (tm->tm_hour > 12)
usr.bin/grdc/grdc.c
165
tm->tm_hour -= 12;
usr.bin/grdc/grdc.c
169
hour = tm->tm_hour;
usr.bin/grdc/grdc.c
170
minute = tm->tm_min;
usr.bin/grdc/grdc.c
171
second = tm->tm_sec;
usr.bin/grdc/grdc.c
31
static struct tm *tm;
usr.bin/ipcs/ipcs.c
90
struct tm *tm;
usr.bin/ipcs/ipcs.c
95
tm = localtime(&t);
usr.bin/ipcs/ipcs.c
97
tm->tm_hour, tm->tm_min, tm->tm_sec);
usr.bin/kdump/kdump.c
1985
struct tm *tm;
usr.bin/kdump/kdump.c
2034
tm = localtime(&statp->st_atim.tv_sec);
usr.bin/kdump/kdump.c
2035
strftime(timestr, sizeof(timestr), TIME_FORMAT, tm);
usr.bin/kdump/kdump.c
2046
tm = localtime(&statp->st_mtim.tv_sec);
usr.bin/kdump/kdump.c
2047
strftime(timestr, sizeof(timestr), TIME_FORMAT, tm);
usr.bin/kdump/kdump.c
2058
tm = localtime(&statp->st_ctim.tv_sec);
usr.bin/kdump/kdump.c
2059
strftime(timestr, sizeof(timestr), TIME_FORMAT, tm);
usr.bin/kdump/kdump.c
2070
tm = localtime(&statp->st_birthtim.tv_sec);
usr.bin/kdump/kdump.c
2071
strftime(timestr, sizeof(timestr), TIME_FORMAT, tm);
usr.bin/last/last.c
226
struct tm *tm;
usr.bin/last/last.c
252
tm = localtime(&t);
usr.bin/last/last.c
253
(void) strftime(ct, sizeof(ct), "%+", tm);
usr.bin/last/last.c
345
struct tm *tm;
usr.bin/last/last.c
356
tm = localtime(&t);
usr.bin/last/last.c
359
(yflag ? "%a %b %e %Y %R" : "%a %b %e %R"), tm);
usr.bin/last/last.c
390
tm = localtime(&tt->logout);
usr.bin/last/last.c
391
(void) strftime(ct, sizeof(ct), "%R", tm);
usr.bin/last/last.c
400
tm = gmtime(&delta);
usr.bin/last/last.c
401
(void) strftime(ct, sizeof(ct), width >= 8 ? "%T" : "%R", tm);
usr.bin/last/last.c
530
struct tm *t;
usr.bin/leave/leave.c
58
struct tm *t;
usr.bin/localedef/time.c
123
add_list(tm.mon, str, 12);
usr.bin/localedef/time.c
126
add_list(tm.month, str, 12);
usr.bin/localedef/time.c
129
add_list(tm.wday, str, 7);
usr.bin/localedef/time.c
132
add_list(tm.weekday, str, 7);
usr.bin/localedef/time.c
135
if (tm.am == NULL) {
usr.bin/localedef/time.c
136
tm.am = str;
usr.bin/localedef/time.c
137
} else if (tm.pm == NULL) {
usr.bin/localedef/time.c
138
tm.pm = str;
usr.bin/localedef/time.c
160
if (tm.mon[11] != NULL)
usr.bin/localedef/time.c
164
if (tm.month[11] != NULL)
usr.bin/localedef/time.c
168
if (tm.wday[6] != NULL)
usr.bin/localedef/time.c
172
if (tm.weekday[6] != NULL)
usr.bin/localedef/time.c
176
if (tm.pm != NULL)
usr.bin/localedef/time.c
197
free((char *)tm.mon[i]);
usr.bin/localedef/time.c
198
tm.mon[i] = NULL;
usr.bin/localedef/time.c
203
free((char *)tm.month[i]);
usr.bin/localedef/time.c
204
tm.month[i] = NULL;
usr.bin/localedef/time.c
209
free((char *)tm.wday[i]);
usr.bin/localedef/time.c
210
tm.wday[i] = NULL;
usr.bin/localedef/time.c
215
free((char *)tm.weekday[i]);
usr.bin/localedef/time.c
216
tm.weekday[i] = NULL;
usr.bin/localedef/time.c
220
free((char *)tm.am);
usr.bin/localedef/time.c
221
tm.am = NULL;
usr.bin/localedef/time.c
222
free((char *)tm.pm);
usr.bin/localedef/time.c
223
tm.pm = NULL;
usr.bin/localedef/time.c
239
if (putl_category(tm.mon[i], f) == EOF) {
usr.bin/localedef/time.c
244
if (putl_category(tm.month[i], f) == EOF) {
usr.bin/localedef/time.c
249
if (putl_category(tm.wday[i], f) == EOF) {
usr.bin/localedef/time.c
254
if (putl_category(tm.weekday[i], f) == EOF) {
usr.bin/localedef/time.c
265
if ((putl_category(tm.X_fmt, f) == EOF) ||
usr.bin/localedef/time.c
266
(putl_category(tm.x_fmt, f) == EOF) ||
usr.bin/localedef/time.c
267
(putl_category(tm.c_fmt, f) == EOF) ||
usr.bin/localedef/time.c
268
(putl_category(tm.am, f) == EOF) ||
usr.bin/localedef/time.c
269
(putl_category(tm.pm, f) == EOF) ||
usr.bin/localedef/time.c
270
(putl_category(tm.date_fmt ? tm.date_fmt : tm.c_fmt, f) == EOF) ||
usr.bin/localedef/time.c
271
(putl_category(tm.ampm_fmt, f) == EOF)) {
usr.bin/localedef/time.c
45
struct lc_time_T tm;
usr.bin/localedef/time.c
50
(void) memset(&tm, 0, sizeof (tm));
usr.bin/localedef/time.c
66
tm.c_fmt = str;
usr.bin/localedef/time.c
69
tm.x_fmt = str;
usr.bin/localedef/time.c
72
tm.X_fmt = str;
usr.bin/localedef/time.c
75
tm.ampm_fmt = str;
usr.bin/localedef/time.c
82
tm.date_fmt = str;
usr.bin/lock/lock.c
87
struct tm *timp;
usr.bin/logins/logins.c
296
struct tm *tm;
usr.bin/logins/logins.c
316
tm = gmtime(&pwd->pw_change);
usr.bin/logins/logins.c
317
strftime(cbuf, sizeof(cbuf), pwd->pw_change ? "%F" : "0", tm);
usr.bin/logins/logins.c
318
tm = gmtime(&pwd->pw_expire);
usr.bin/logins/logins.c
319
strftime(ebuf, sizeof(ebuf), pwd->pw_expire ? "%F" : "0", tm);
usr.bin/ncal/ncal.c
1090
struct tm tm;
usr.bin/ncal/ncal.c
1111
if (strptime(s, "%B", &tm) != NULL || strptime(s, "%b", &tm) != NULL) {
usr.bin/ncal/ncal.c
1112
*m = tm.tm_mon + 1;
usr.bin/ncal/ncal.c
382
struct tm *tm;
usr.bin/ncal/ncal.c
385
tm = localtime(&t);
usr.bin/ncal/ncal.c
386
y = tm->tm_year + 1900;
usr.bin/ncal/ncal.c
387
m = tm->tm_mon + 1;
usr.bin/ncal/ncal.c
486
struct tm *tm1;
usr.bin/ncal/ncal.c
550
struct tm tm;
usr.bin/ncal/ncal.c
568
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
569
tm.tm_year = dt.y - 1900;
usr.bin/ncal/ncal.c
570
tm.tm_mon = dt.m - 1;
usr.bin/ncal/ncal.c
571
tm.tm_mday = dt.d;
usr.bin/ncal/ncal.c
572
strftime(buf, sizeof(buf), d_first ? "%e %B %Y" : "%B %e %Y", &tm);
usr.bin/ncal/ncal.c
776
struct tm tm; /* for strftime printing local names of
usr.bin/ncal/ncal.c
789
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
790
tm.tm_mon = m;
usr.bin/ncal/ncal.c
792
L"%OB", &tm);
usr.bin/ncal/ncal.c
866
struct tm tm; /* for strftime printing local names of
usr.bin/ncal/ncal.c
888
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
889
tm.tm_mon = m;
usr.bin/ncal/ncal.c
891
L"%OB", &tm);
usr.bin/ncal/ncal.c
966
struct tm tm;
usr.bin/ncal/ncal.c
969
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
972
tm.tm_wday = (i+1) % 7;
usr.bin/ncal/ncal.c
973
wcsftime(buf, sizeof(buf)/sizeof(buf[0]), L"%a", &tm);
usr.bin/pom/pom.c
76
struct tm GMT, tmd;
usr.bin/pr/pr.c
1287
struct tm *timeptr = NULL;
usr.bin/rup/rup.c
95
struct tm *tmp_time;
usr.bin/rup/rup.c
96
struct tm host_time;
usr.bin/rup/rup.c
97
struct tm host_uptime;
usr.bin/rwall/rwall.c
116
struct tm *lt;
usr.bin/stat/stat.c
651
struct tm *tm;
usr.bin/stat/stat.c
782
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
783
if (tm == NULL) {
usr.bin/stat/stat.c
785
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
788
(void)strftime(path, sizeof(path), timefmt, tm);
usr.bin/systat/keyboard.c
53
struct timeval last, intvl, now, tm;
usr.bin/systat/keyboard.c
66
tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec;
usr.bin/systat/keyboard.c
67
tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec;
usr.bin/systat/keyboard.c
68
while (tm.tv_usec < 0) {
usr.bin/systat/keyboard.c
69
tm.tv_usec += 1000000;
usr.bin/systat/keyboard.c
70
tm.tv_sec--;
usr.bin/systat/keyboard.c
72
while (tm.tv_usec >= 1000000) {
usr.bin/systat/keyboard.c
73
tm.tv_usec -= 1000000;
usr.bin/systat/keyboard.c
74
tm.tv_sec++;
usr.bin/systat/keyboard.c
76
if (tm.tv_sec < 0) {
usr.bin/systat/keyboard.c
86
n = select(STDIN_FILENO + 1, &rfds, NULL, NULL, &tm);
usr.bin/systat/vmstat.c
278
struct tm *tp;
usr.bin/touch/touch.c
212
struct tm *t;
usr.bin/touch/touch.c
278
struct tm *t;
usr.bin/touch/touch.c
308
struct tm t = { .tm_sec = 0 };
usr.bin/w/pr_time.c
52
struct tm tp, tm;
usr.bin/w/pr_time.c
58
tm = *localtime(now);
usr.bin/w/pr_time.c
66
else if (tm.tm_mday != tp.tm_mday ||
usr.bin/w/pr_time.c
67
tm.tm_mon != tp.tm_mon ||
usr.bin/w/pr_time.c
68
tm.tm_year != tp.tm_year) {
usr.bin/wall/wall.c
179
struct tm *lt;
usr.bin/who/who.c
168
struct tm *tm;
usr.bin/who/who.c
193
tm = localtime(&t);
usr.bin/who/who.c
194
strftime(buf, sizeof(buf), d_first ? "%e %b %R" : "%b %e %R", tm);
usr.sbin/ac/ac.c
407
struct tm *ltm;
usr.sbin/apm/apm.c
267
struct tm tm;
usr.sbin/apm/apm.c
271
tm.tm_sec = bcd2int(xh(args.ecx));
usr.sbin/apm/apm.c
272
tm.tm_min = bcd2int(xl(args.edx));
usr.sbin/apm/apm.c
273
tm.tm_hour = bcd2int(xh(args.edx));
usr.sbin/apm/apm.c
274
tm.tm_mday = bcd2int(xl(args.esi));
usr.sbin/apm/apm.c
275
tm.tm_mon = bcd2int(xh(args.esi)) - 1;
usr.sbin/apm/apm.c
276
tm.tm_year = bcd2int(args.edi) - 1900;
usr.sbin/apm/apm.c
278
t = mktime(&tm);
usr.sbin/apm/apm.c
280
t = timegm(&tm);
usr.sbin/apm/apm.c
282
tm = *localtime(&t);
usr.sbin/apm/apm.c
283
strftime(buf, sizeof(buf), "%c", &tm);
usr.sbin/apm/apm.c
354
struct tm *tm;
usr.sbin/apm/apm.c
359
tm = localtime(&tmr);
usr.sbin/apm/apm.c
361
tm = gmtime(&tmr);
usr.sbin/apm/apm.c
366
args.ecx = (int2bcd(tm->tm_sec) << 8) | 0x02;
usr.sbin/apm/apm.c
367
args.edx = (int2bcd(tm->tm_hour) << 8) | int2bcd(tm->tm_min);
usr.sbin/apm/apm.c
368
args.esi = (int2bcd(tm->tm_mon + 1) << 8) | int2bcd(tm->tm_mday);
usr.sbin/apm/apm.c
369
args.edi = int2bcd(tm->tm_year + 1900);
usr.sbin/bhyve/amd64/rtc.c
60
struct tm tm;
usr.sbin/bhyve/amd64/rtc.c
65
localtime_r(&t, &tm);
usr.sbin/bhyve/amd64/rtc.c
66
t = timegm(&tm);
usr.sbin/bhyve/rtc_pl031.c
89
struct tm tm;
usr.sbin/bhyve/rtc_pl031.c
94
localtime_r(&t, &tm);
usr.sbin/bhyve/rtc_pl031.c
95
t = timegm(&tm);
usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
1548
struct tm tm;
usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
1873
gmtime_r(&rtc_secs, &tm);
usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
1875
rtc_secs, wday_str(tm.tm_wday), mon_str(tm.tm_mon),
usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
1876
tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
1877
1900 + tm.tm_year);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
123
struct tm tloc_tm;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
286
struct tm tm_to_set;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
188
make_date_time(u_char *str, const struct tm *tm, u_int decisecs)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
191
str[0] = (u_char)((tm->tm_year + 1900) >> 8);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
192
str[1] = (u_char)(tm->tm_year + 1900);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
193
str[2] = tm->tm_mon + 1;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
194
str[3] = tm->tm_mday;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
195
str[4] = tm->tm_hour;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
196
str[5] = tm->tm_min;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
197
str[6] = tm->tm_sec;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
199
if (tm->tm_gmtoff < 0)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
204
str[9] = (u_char)(labs(tm->tm_gmtoff) / 3600);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
205
str[10] = (u_char)((labs(tm->tm_gmtoff) % 3600) / 60);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
317
int make_date_time(u_char *, const struct tm *, u_int);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
65
struct tm;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c
259
struct tm k_ts;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c
293
struct tm k_ts;
usr.sbin/cdcontrol/cdcontrol.c
528
unsigned char tm, ts, tf;
usr.sbin/cdcontrol/cdcontrol.c
603
tm = toc_buffer[tr1].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
608
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
609
if ((m1 > tm)
usr.sbin/cdcontrol/cdcontrol.c
610
|| ((m1 == tm)
usr.sbin/cdcontrol/cdcontrol.c
630
m1 += tm;
usr.sbin/cdcontrol/cdcontrol.c
656
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
657
m2 = tm;
usr.sbin/cdcontrol/cdcontrol.c
669
tm = toc_buffer[tr2].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
674
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
687
m2 += tm;
usr.sbin/cdcontrol/cdcontrol.c
691
tm = toc_buffer[n].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
696
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
698
&& ((m2 > tm)
usr.sbin/cdcontrol/cdcontrol.c
699
|| ((m2 == tm)
usr.sbin/cdcontrol/cdcontrol.c
725
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
726
m2 = tm;
usr.sbin/cron/cron/cron.c
167
tm = localtime(&TargetTime);
usr.sbin/cron/cron/cron.c
168
if (tm->tm_sec > 0) {
usr.sbin/cron/cron/cron.c
209
static struct tm lasttm;
usr.sbin/cron/cron/cron.c
215
struct tm otztm;
usr.sbin/cron/cron/cron.c
217
struct tm *tm = localtime(&TargetTime);
usr.sbin/cron/cron/cron.c
224
second = (secres == 0) ? 0 : tm->tm_sec -FIRST_SECOND;
usr.sbin/cron/cron/cron.c
225
minute = tm->tm_min -FIRST_MINUTE;
usr.sbin/cron/cron/cron.c
226
hour = tm->tm_hour -FIRST_HOUR;
usr.sbin/cron/cron/cron.c
227
dom = tm->tm_mday -FIRST_DOM;
usr.sbin/cron/cron/cron.c
228
month = tm->tm_mon +1 /* 0..11 -> 1..12 */ -FIRST_MONTH;
usr.sbin/cron/cron/cron.c
229
dow = tm->tm_wday -FIRST_DOW;
usr.sbin/cron/cron/cron.c
236
&& tm->tm_gmtoff != lasttm.tm_gmtoff ) {
usr.sbin/cron/cron/cron.c
238
diff = tm->tm_gmtoff - lasttm.tm_gmtoff;
usr.sbin/cron/cron/cron.c
280
time_t difftime = TargetTime + tm->tm_gmtoff - diff;
usr.sbin/cron/cron/cron.c
351
lasttm = *tm;
usr.sbin/cron/cron/cron.c
365
struct tm *tm;
usr.sbin/cron/cron/cron.c
371
tm = localtime(&TargetTime);
usr.sbin/cron/cron/cron.c
372
TargetTime += (60 - tm->tm_sec);
usr.sbin/cron/cron/cron.c
99
struct tm *tm;
usr.sbin/cron/cron/externs.h
76
#define TZONE(tm) tzname[(tm).tm_isdst]
usr.sbin/cron/lib/misc.c
380
struct tm *t = localtime(&now);
usr.sbin/cron/lib/misc.c
557
struct tm *tm = localtime(&t);
usr.sbin/cron/lib/misc.c
560
if (tm->tm_year >= 100)
usr.sbin/cron/lib/misc.c
561
tm->tm_year += 1900;
usr.sbin/cron/lib/misc.c
564
DowNames[tm->tm_wday],
usr.sbin/cron/lib/misc.c
565
tm->tm_mday,
usr.sbin/cron/lib/misc.c
566
MonthNames[tm->tm_mon],
usr.sbin/cron/lib/misc.c
567
tm->tm_year,
usr.sbin/cron/lib/misc.c
568
tm->tm_hour,
usr.sbin/cron/lib/misc.c
569
tm->tm_min,
usr.sbin/cron/lib/misc.c
570
tm->tm_sec,
usr.sbin/cron/lib/misc.c
571
TZONE(*tm));
usr.sbin/fifolog/fifolog_reader/fifolog_reader.c
53
static struct tm utc;
usr.sbin/fifolog/lib/getdate.y
569
struct tm *ltm;
usr.sbin/fifolog/lib/getdate.y
626
struct tm *tm;
usr.sbin/fifolog/lib/getdate.y
630
tm = localtime(&now);
usr.sbin/fifolog/lib/getdate.y
631
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
usr.sbin/fifolog/lib/getdate.y
640
struct tm *tm;
usr.sbin/fifolog/lib/getdate.y
646
tm = localtime(&Start);
usr.sbin/fifolog/lib/getdate.y
647
Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth;
usr.sbin/fifolog/lib/getdate.y
651
Convert(Month, (time_t)tm->tm_mday, Year,
usr.sbin/fifolog/lib/getdate.y
652
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
usr.sbin/fifolog/lib/getdate.y
820
struct tm *tm;
usr.sbin/fifolog/lib/getdate.y
829
if (! (tm = localtime (&nowtime)))
usr.sbin/fifolog/lib/getdate.y
832
yyYear = tm->tm_year + 1900;
usr.sbin/fifolog/lib/getdate.y
833
yyMonth = tm->tm_mon + 1;
usr.sbin/fifolog/lib/getdate.y
834
yyDay = tm->tm_mday;
usr.sbin/fifolog/lib/getdate.y
835
yyTimezone = tm->tm_gmtoff;
usr.sbin/fifolog/lib/getdate.y
862
Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
usr.sbin/makefs/cd9660/cd9660_conversion.c
150
struct tm t, gm;
usr.sbin/makefs/cd9660/cd9660_conversion.c
170
struct tm t;
usr.sbin/makefs/cd9660/cd9660_conversion.c
190
struct tm t;
usr.sbin/makefs/msdos/msdosfs_vnops.c
111
struct tm lt = {0};
usr.sbin/mfiutil/mfi_bbu.c
67
struct tm tm;
usr.sbin/mfiutil/mfi_bbu.c
70
memset(&tm, 0, sizeof(tm));
usr.sbin/mfiutil/mfi_bbu.c
71
tm.tm_year = 100;
usr.sbin/mfiutil/mfi_bbu.c
72
basetime = timegm(&tm);
usr.sbin/mfiutil/mfi_evt.c
246
struct tm tm;
usr.sbin/mfiutil/mfi_evt.c
256
bzero(&tm, sizeof(tm));
usr.sbin/mfiutil/mfi_evt.c
257
tm.tm_mday = 1;
usr.sbin/mfiutil/mfi_evt.c
258
tm.tm_year = (2000 - 1900);
usr.sbin/mfiutil/mfi_evt.c
259
base = mktime(&tm);
usr.sbin/ndp/ndp.c
184
struct tm *tm;
usr.sbin/ndp/ndp.c
187
tm = localtime(&t);
usr.sbin/ndp/ndp.c
189
assert(tm->tm_gmtoff > INT32_MIN && tm->tm_gmtoff < INT32_MAX);
usr.sbin/ndp/ndp.c
191
return (tm->tm_gmtoff);
usr.sbin/newsyslog/newsyslog.c
1589
struct tm *tm)
usr.sbin/newsyslog/newsyslog.c
1627
memset(tm, 0, sizeof(*tm));
usr.sbin/newsyslog/newsyslog.c
1629
timefnamefmt, tm)) == NULL) {
usr.sbin/newsyslog/newsyslog.c
1665
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
1695
if (validate_old_timelog(dir_fd, dp, base, &tm) == 0)
usr.sbin/newsyslog/newsyslog.c
1702
if ((oldlogs[logcnt].t = timegm(&tm)) == -1)
usr.sbin/newsyslog/newsyslog.c
1863
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
1922
localtime_r(&now, &tm) == NULL)
usr.sbin/newsyslog/newsyslog.c
1923
bzero(&tm, sizeof(tm));
usr.sbin/newsyslog/newsyslog.c
1925
strftime(datetimestr, sizeof(datetimestr), timefnamefmt, &tm);
usr.sbin/newsyslog/newsyslog.c
2505
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
2537
if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0)
usr.sbin/newsyslog/ptimes.c
131
struct tm tm;
usr.sbin/newsyslog/ptimes.c
142
tm = ptime->tm;
usr.sbin/newsyslog/ptimes.c
146
tm.tm_year = ((l / 1000000) - 19) * 100;
usr.sbin/newsyslog/ptimes.c
151
tm.tm_year -= tm.tm_year % 100;
usr.sbin/newsyslog/ptimes.c
152
tm.tm_year += l / 10000;
usr.sbin/newsyslog/ptimes.c
157
tm.tm_mon = (l / 100) - 1;
usr.sbin/newsyslog/ptimes.c
162
tm.tm_mday = l;
usr.sbin/newsyslog/ptimes.c
171
if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12
usr.sbin/newsyslog/ptimes.c
172
|| tm.tm_mday < 1 || tm.tm_mday > 31)
usr.sbin/newsyslog/ptimes.c
183
tm.tm_sec = l % 100;
usr.sbin/newsyslog/ptimes.c
187
tm.tm_min = l % 100;
usr.sbin/newsyslog/ptimes.c
192
tm.tm_hour = l;
usr.sbin/newsyslog/ptimes.c
201
if (tm.tm_sec < 0 || tm.tm_sec > 60 || tm.tm_min < 0
usr.sbin/newsyslog/ptimes.c
202
|| tm.tm_min > 59 || tm.tm_hour < 0 || tm.tm_hour > 23)
usr.sbin/newsyslog/ptimes.c
206
ptime->tm = tm;
usr.sbin/newsyslog/ptimes.c
231
struct tm tm;
usr.sbin/newsyslog/ptimes.c
234
tm = ptime->tm;
usr.sbin/newsyslog/ptimes.c
235
daysmon = days_pmonth(tm.tm_mon, tm.tm_year);
usr.sbin/newsyslog/ptimes.c
252
tm.tm_hour = l;
usr.sbin/newsyslog/ptimes.c
265
if (l != tm.tm_wday) {
usr.sbin/newsyslog/ptimes.c
268
if (l < tm.tm_wday) {
usr.sbin/newsyslog/ptimes.c
269
save = 6 - tm.tm_wday;
usr.sbin/newsyslog/ptimes.c
272
save = l - tm.tm_wday;
usr.sbin/newsyslog/ptimes.c
275
tm.tm_mday += save;
usr.sbin/newsyslog/ptimes.c
277
if (tm.tm_mday > daysmon) {
usr.sbin/newsyslog/ptimes.c
278
tm.tm_mon++;
usr.sbin/newsyslog/ptimes.c
279
tm.tm_mday = tm.tm_mday - daysmon;
usr.sbin/newsyslog/ptimes.c
280
if (tm.tm_mon >= 12) {
usr.sbin/newsyslog/ptimes.c
281
tm.tm_mon = 0;
usr.sbin/newsyslog/ptimes.c
282
tm.tm_year++;
usr.sbin/newsyslog/ptimes.c
297
tm.tm_mday = daysmon;
usr.sbin/newsyslog/ptimes.c
307
tm.tm_mday = l;
usr.sbin/newsyslog/ptimes.c
324
ptime->tm = tm;
usr.sbin/newsyslog/ptimes.c
367
(adjtime.did_adj4dst == dstsrc->tm.tm_isdst))
usr.sbin/newsyslog/ptimes.c
371
if (dstsrc->tm.tm_isdst != adjtime.tm.tm_isdst) {
usr.sbin/newsyslog/ptimes.c
372
if (adjtime.tm.tm_isdst == 1)
usr.sbin/newsyslog/ptimes.c
374
else if (adjtime.tm.tm_isdst == 0)
usr.sbin/newsyslog/ptimes.c
376
adjtime.tm = *(localtime(&adjtime.tsecs));
usr.sbin/newsyslog/ptimes.c
378
adjtime.did_adj4dst = dstsrc->tm.tm_isdst;
usr.sbin/newsyslog/ptimes.c
395
struct tm temp_tm;
usr.sbin/newsyslog/ptimes.c
400
ptime->tm = ptime->basetm;
usr.sbin/newsyslog/ptimes.c
401
ptime->tm.tm_hour = ptime->tm.tm_min = ptime->tm.tm_sec = 0;
usr.sbin/newsyslog/ptimes.c
424
dpm = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
427
(ptime->tm.tm_mday> dpm)) {
usr.sbin/newsyslog/ptimes.c
436
ptime->tm.tm_year, ptime->tm.tm_mon,
usr.sbin/newsyslog/ptimes.c
437
ptime->tm.tm_mday, ptime->tm.tm_hour,
usr.sbin/newsyslog/ptimes.c
438
ptime->tm.tm_min, dpm);
usr.sbin/newsyslog/ptimes.c
439
temp_tm = ptime->tm;
usr.sbin/newsyslog/ptimes.c
446
ptime->tm.tm_year, ptime->tm.tm_mon,
usr.sbin/newsyslog/ptimes.c
447
ptime->tm.tm_mday, ptime->tm.tm_hour,
usr.sbin/newsyslog/ptimes.c
448
ptime->tm.tm_min);
usr.sbin/newsyslog/ptimes.c
456
ptime->tsecs = mktime(&ptime->tm);
usr.sbin/newsyslog/ptimes.c
503
struct tm tm;
usr.sbin/newsyslog/ptimes.c
522
if (ptime == NULL || localtime_r(&(ptime->tsecs), &tm) == NULL) {
usr.sbin/newsyslog/ptimes.c
532
if (tm.tm_gmtoff < 0) {
usr.sbin/newsyslog/ptimes.c
534
tz_offset = -tm.tm_gmtoff;
usr.sbin/newsyslog/ptimes.c
537
tz_offset = tm.tm_gmtoff;
usr.sbin/newsyslog/ptimes.c
547
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
usr.sbin/newsyslog/ptimes.c
548
tm.tm_hour, tm.tm_min, tm.tm_sec,
usr.sbin/newsyslog/ptimes.c
617
if (ptime->tm.tm_mon == 1 && ptime->tm.tm_mday == 29) {
usr.sbin/newsyslog/ptimes.c
618
nextmatch.tm.tm_year += 4;
usr.sbin/newsyslog/ptimes.c
619
if (days_pmonth(1, nextmatch.tm.tm_year) < 29)
usr.sbin/newsyslog/ptimes.c
620
nextmatch.tm.tm_year += 4;
usr.sbin/newsyslog/ptimes.c
622
nextmatch.tm.tm_year += 1;
usr.sbin/newsyslog/ptimes.c
624
nextmatch.tm.tm_isdst = -1;
usr.sbin/newsyslog/ptimes.c
625
nextmatch.tsecs = mktime(&nextmatch.tm);
usr.sbin/newsyslog/ptimes.c
633
if (ptime->tm.tm_mon < 11)
usr.sbin/newsyslog/ptimes.c
634
moredays = days_pmonth(ptime->tm.tm_mon + 1,
usr.sbin/newsyslog/ptimes.c
635
ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
637
moredays = days_pmonth(0, ptime->tm.tm_year + 1);
usr.sbin/newsyslog/ptimes.c
641
moredays = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
647
tmon = ptime->tm.tm_mon;
usr.sbin/newsyslog/ptimes.c
648
tyear = ptime->tm.tm_year;
usr.sbin/newsyslog/ptimes.c
657
if (tdpm >= ptime->tm.tm_mday)
usr.sbin/newsyslog/ptimes.c
670
nextmatch.tm = *(localtime(&nextmatch.tsecs));
usr.sbin/newsyslog/ptimes.c
692
ptime->tm = *(localtime(&ptime->tsecs));
usr.sbin/newsyslog/ptimes.c
72
struct tm basetm; /* Base Time expanded into fields */
usr.sbin/newsyslog/ptimes.c
73
struct tm tm; /* Time expanded into fields */
usr.sbin/pw/psdate.c
127
memset(&tm, 0, sizeof(tm));
usr.sbin/pw/psdate.c
128
ret = strptime_l(str, valid_formats[i], &tm, l);
usr.sbin/pw/psdate.c
130
t->tm_mday = tm.tm_mday;
usr.sbin/pw/psdate.c
131
t->tm_mon = tm.tm_mon;
usr.sbin/pw/psdate.c
132
t->tm_year = tm.tm_year;
usr.sbin/pw/psdate.c
133
t->tm_hour = tm.tm_hour;
usr.sbin/pw/psdate.c
134
t->tm_min = tm.tm_min;
usr.sbin/pw/psdate.c
135
t->tm_sec = tm.tm_sec;
usr.sbin/pw/psdate.c
165
struct tm *T;
usr.sbin/pw/psdate.c
78
parse_datesub(char const * str, struct tm *t)
usr.sbin/pw/psdate.c
80
struct tm tm;
usr.sbin/pw/pw_log.c
45
struct tm *t;
usr.sbin/pw/pw_user.c
554
struct tm * tptr;
usr.sbin/route6d/route6d.c
3427
struct tm *tm;
usr.sbin/route6d/route6d.c
3430
if ((tm = localtime(&t)) == 0) {
usr.sbin/route6d/route6d.c
3434
snprintf(buf, sizeof(buf), "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
usr.sbin/route6d/route6d.c
3435
tm->tm_sec);
usr.sbin/rtadvd/rtadvd.c
1863
ra_timer_update(void *arg, struct timespec *tm)
usr.sbin/rtadvd/rtadvd.c
1907
tm->tv_sec = interval;
usr.sbin/rtadvd/rtadvd.c
1908
tm->tv_nsec = 0;
usr.sbin/rtadvd/rtadvd.c
1913
(long int)tm->tv_sec, (long int)tm->tv_nsec / 1000);
usr.sbin/rtadvd/timer.c
185
rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *rat)
usr.sbin/rtadvd/timer.c
191
TS_ADD(&now, tm, &rat->rat_tm);
usr.sbin/rwhod/rwhod.c
534
struct timeval tm;
usr.sbin/rwhod/rwhod.c
538
size = sizeof(tm);
usr.sbin/rwhod/rwhod.c
539
if (sysctl(mib, nitems(mib), &tm, &size, NULL, 0) == -1) {
usr.sbin/rwhod/rwhod.c
543
mywd.wd_boottime = htonl(_time_to_time32(tm.tv_sec));
usr.sbin/syslogd/syslogd.c
1001
PARSE_NUMBER(timestamp_remote.tm.tm_sec, 2, 0, 59);
usr.sbin/syslogd/syslogd.c
1003
timegm(×tamp_remote.tm);
usr.sbin/syslogd/syslogd.c
1028
timestamp_remote.tm.tm_gmtoff =
usr.sbin/syslogd/syslogd.c
1210
struct tm tm_parsed;
usr.sbin/syslogd/syslogd.c
1227
struct tm tm_now;
usr.sbin/syslogd/syslogd.c
1247
timestamp_remote.tm = tm_parsed;
usr.sbin/syslogd/syslogd.c
1248
timestamp_remote.tm.tm_year = year;
usr.sbin/syslogd/syslogd.c
1249
timestamp_remote.tm.tm_isdst = -1;
usr.sbin/syslogd/syslogd.c
1251
if (mktime(×tamp_remote.tm) <
usr.sbin/syslogd/syslogd.c
1548
localtime_r(&now, ×tamp_now.tm);
usr.sbin/syslogd/syslogd.c
1949
&f->f_lasttime.tm) == sizeof(timebuf) - 2) {
usr.sbin/syslogd/syslogd.c
1993
&f->f_lasttime.tm) == 0)
usr.sbin/syslogd/syslogd.c
2631
struct tm tm;
usr.sbin/syslogd/syslogd.c
2633
timegm(&tm);
usr.sbin/syslogd/syslogd.c
989
PARSE_NUMBER(timestamp_remote.tm.tm_year, 4, 0, 9999);
usr.sbin/syslogd/syslogd.c
990
timestamp_remote.tm.tm_year -= 1900;
usr.sbin/syslogd/syslogd.c
992
PARSE_NUMBER(timestamp_remote.tm.tm_mon, 2, 1, 12);
usr.sbin/syslogd/syslogd.c
993
--timestamp_remote.tm.tm_mon;
usr.sbin/syslogd/syslogd.c
995
PARSE_NUMBER(timestamp_remote.tm.tm_mday, 2, 1, 31);
usr.sbin/syslogd/syslogd.c
997
PARSE_NUMBER(timestamp_remote.tm.tm_hour, 2, 0, 23);
usr.sbin/syslogd/syslogd.c
999
PARSE_NUMBER(timestamp_remote.tm.tm_min, 2, 0, 59);
usr.sbin/syslogd/syslogd.h
87
struct tm tm;
usr.sbin/tzsetup/tzsetup.c
704
struct tm *tm;
usr.sbin/tzsetup/tzsetup.c
709
tm = localtime(&t);
usr.sbin/tzsetup/tzsetup.c
712
"Does the timezone abbreviation `%s' look reasonable?", tm->tm_zone);
usr.sbin/usbdump/usbdump.c
462
struct tm *tm;
usr.sbin/usbdump/usbdump.c
499
tm = localtime(&tv.tv_sec);
usr.sbin/usbdump/usbdump.c
501
len = strftime(buf, sizeof(buf), "%H:%M:%S", tm);