Symbol: tm
bin/date/date.c
228
struct tm *lt;
bin/date/date.c
83
struct tm lt;
bin/date/vary.c
106
daysinmonth(const struct tm *t)
bin/date/vary.c
129
adjyear(struct tm *t, char type, long val, int mk)
bin/date/vary.c
150
adjmon(struct tm *t, char type, long val, int istext, int mk)
bin/date/vary.c
209
adjday(struct tm *t, char type, long val, int mk)
bin/date/vary.c
253
adjwday(struct tm *t, char type, long val, int istext, int mk)
bin/date/vary.c
289
adjhour(struct tm *t, char type, long val, int mk)
bin/date/vary.c
334
adjmin(struct tm *t, char type, long val, int mk)
bin/date/vary.c
375
adjsec(struct tm *t, char type, long val, int mk)
bin/date/vary.c
425
vary_apply(const struct vary *vb, time_t tval, struct tm *t)
bin/date/vary.c
56
static int adjhour(struct tm *, char, long, int);
bin/date/vary.c
59
domktime(struct tm *t, char type)
bin/date/vary.h
36
extern const struct vary *vary_apply(const struct vary *v, time_t tval, struct tm *t);
bin/ls/print.c
351
const struct tm *ptime;
bin/pax/sel_subs.c
526
struct tm *lt;
bin/ps/print.c
417
struct tm *tp;
crypto/libressl/apps/openssl/ca.c
1734
ASN1_UTCTIME *tm;
crypto/libressl/apps/openssl/ca.c
2240
if ((tm = X509_get_notAfter(ret)) == NULL)
crypto/libressl/apps/openssl/ca.c
2242
row[DB_exp_date] = strndup(tm->data, tm->length);
crypto/libressl/apps/openssl/ca.c
2453
ASN1_UTCTIME *tm = NULL;
crypto/libressl/apps/openssl/ca.c
2501
if ((tm = X509_get_notAfter(x509)) == NULL)
crypto/libressl/apps/openssl/ca.c
2503
row[DB_exp_date] = strndup(tm->data, tm->length);
crypto/libressl/apps/openssl/ca.c
621
struct tm tm1;
crypto/libressl/apps/openssl/speed.c
1991
int bits, int tm)
crypto/libressl/apps/openssl/speed.c
1994
: "Doing %d bit %s %s's for %ds: ", bits, str, str2, tm);
crypto/libressl/apps/openssl/speed.c
1996
alarm(tm);
crypto/libressl/crypto/asn1/a_time.c
101
return ASN1_time_parse(s->data, s->length, tm, 0) != -1;
crypto/libressl/crypto/asn1/a_time.c
104
memset(tm, 0, sizeof(*tm));
crypto/libressl/crypto/asn1/a_time.c
106
return gmtime_r(&now, tm) != NULL;
crypto/libressl/crypto/asn1/a_time.c
112
struct tm tm_from, tm_to;
crypto/libressl/crypto/asn1/a_time.c
96
ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm)
crypto/libressl/crypto/asn1/a_time_tm.c
123
tm_to_utctime(struct tm *tm, ASN1_TIME *atime)
crypto/libressl/crypto/asn1/a_time_tm.c
127
if (tm->tm_year >= 150 || tm->tm_year < 50) {
crypto/libressl/crypto/asn1/a_time_tm.c
133
tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday,
crypto/libressl/crypto/asn1/a_time_tm.c
134
tm->tm_hour, tm->tm_min, tm->tm_sec) == -1) {
crypto/libressl/crypto/asn1/a_time_tm.c
161
tm_to_rfc5280_time(struct tm *tm, ASN1_TIME *atime)
crypto/libressl/crypto/asn1/a_time_tm.c
165
year = tm->tm_year + 1900;
crypto/libressl/crypto/asn1/a_time_tm.c
172
return (tm_to_utctime(tm, atime));
crypto/libressl/crypto/asn1/a_time_tm.c
174
return (tm_to_gentime(tm, atime));
crypto/libressl/crypto/asn1/a_time_tm.c
235
asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm)
crypto/libressl/crypto/asn1/a_time_tm.c
324
ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode)
crypto/libressl/crypto/asn1/a_time_tm.c
326
struct tm tml, *tmp = tm ? tm : &tml;
crypto/libressl/crypto/asn1/a_time_tm.c
35
ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2)
crypto/libressl/crypto/asn1/a_time_tm.c
380
struct tm tm;
crypto/libressl/crypto/asn1/a_time_tm.c
382
if (gmtime_r(&t, &tm) == NULL)
crypto/libressl/crypto/asn1/a_time_tm.c
386
if (!OPENSSL_gmtime_adj(&tm, offset_day, offset_sec))
crypto/libressl/crypto/asn1/a_time_tm.c
392
return (tm_to_utctime(&tm, s));
crypto/libressl/crypto/asn1/a_time_tm.c
394
return (tm_to_gentime(&tm, s));
crypto/libressl/crypto/asn1/a_time_tm.c
396
return (tm_to_rfc5280_time(&tm, s));
crypto/libressl/crypto/asn1/a_time_tm.c
409
ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm)
crypto/libressl/crypto/asn1/a_time_tm.c
413
if ((t = timegm(tm)) == -1)
crypto/libressl/crypto/asn1/a_time_tm.c
436
struct tm tm;
crypto/libressl/crypto/asn1/a_time_tm.c
441
if (t->type != ASN1_time_parse(t->data, t->length, &tm, t->type))
crypto/libressl/crypto/asn1/a_time_tm.c
446
if ((agt = tm_to_gentime(&tm, agt)) == NULL)
crypto/libressl/crypto/asn1/a_time_tm.c
463
struct tm tm1, tm2;
crypto/libressl/crypto/asn1/a_time_tm.c
487
struct tm tm1, tm2;
crypto/libressl/crypto/asn1/a_time_tm.c
593
struct tm tm;
crypto/libressl/crypto/asn1/a_time_tm.c
595
if (!ASN1_TIME_to_tm(t, &tm))
crypto/libressl/crypto/asn1/a_time_tm.c
597
return tm_to_rfc5280_time(&tm, t) != NULL;
crypto/libressl/crypto/asn1/a_time_tm.c
65
ASN1_time_tm_clamp_notafter(struct tm *tm)
crypto/libressl/crypto/asn1/a_time_tm.c
68
struct tm broken_os_epoch_tm;
crypto/libressl/crypto/asn1/a_time_tm.c
74
if (ASN1_time_tm_cmp(tm, &broken_os_epoch_tm) == 1)
crypto/libressl/crypto/asn1/a_time_tm.c
75
memcpy(tm, &broken_os_epoch_tm, sizeof(*tm));
crypto/libressl/crypto/asn1/a_time_tm.c
82
tm_to_gentime(struct tm *tm, ASN1_TIME *atime)
crypto/libressl/crypto/asn1/a_time_tm.c
87
year = tm->tm_year + 1900;
crypto/libressl/crypto/asn1/a_time_tm.c
94
tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min,
crypto/libressl/crypto/asn1/a_time_tm.c
95
tm->tm_sec) == -1) {
crypto/libressl/crypto/asn1/asn1_locl.h
226
int asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm);
crypto/libressl/crypto/asn1/t_x509.c
357
ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
crypto/libressl/crypto/asn1/t_x509.c
359
if (tm->type == V_ASN1_UTCTIME)
crypto/libressl/crypto/asn1/t_x509.c
360
return ASN1_UTCTIME_print(bp, tm);
crypto/libressl/crypto/asn1/t_x509.c
361
if (tm->type == V_ASN1_GENERALIZEDTIME)
crypto/libressl/crypto/asn1/t_x509.c
362
return ASN1_GENERALIZEDTIME_print(bp, tm);
crypto/libressl/crypto/asn1/t_x509.c
373
ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm)
crypto/libressl/crypto/asn1/t_x509.c
382
i = tm->length;
crypto/libressl/crypto/asn1/t_x509.c
383
v = (char *)tm->data;
crypto/libressl/crypto/asn1/t_x509.c
400
if (tm->length >= 14 &&
crypto/libressl/crypto/asn1/t_x509.c
405
if (tm->length >= 15 && v[14] == '.') {
crypto/libressl/crypto/asn1/t_x509.c
406
int l = tm->length;
crypto/libressl/crypto/asn1/t_x509.c
427
ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm)
crypto/libressl/crypto/asn1/t_x509.c
434
i = tm->length;
crypto/libressl/crypto/asn1/t_x509.c
435
v = (const char *)tm->data;
crypto/libressl/crypto/asn1/t_x509.c
453
if (tm->length >=12 &&
crypto/libressl/crypto/cms/cms_kari.c
158
ASN1_OCTET_STRING **keyid, ASN1_GENERALIZEDTIME **tm,
crypto/libressl/crypto/cms/cms_kari.c
170
if (tm)
crypto/libressl/crypto/cms/cms_kari.c
171
*tm = NULL;
crypto/libressl/crypto/cms/cms_kari.c
177
if (tm)
crypto/libressl/crypto/cms/cms_kari.c
178
*tm = rid->d.rKeyId->date;
crypto/libressl/crypto/o_time.c
103
time_year = tm->tm_year + 1900;
crypto/libressl/crypto/o_time.c
104
time_month = tm->tm_mon + 1;
crypto/libressl/crypto/o_time.c
105
time_day = tm->tm_mday;
crypto/libressl/crypto/o_time.c
124
tm->tm_year = time_year - 1900;
crypto/libressl/crypto/o_time.c
125
tm->tm_mon = time_month - 1;
crypto/libressl/crypto/o_time.c
126
tm->tm_mday = time_day;
crypto/libressl/crypto/o_time.c
128
tm->tm_hour = offset_hms / 3600;
crypto/libressl/crypto/o_time.c
129
tm->tm_min = (offset_hms / 60) % 60;
crypto/libressl/crypto/o_time.c
130
tm->tm_sec = offset_hms % 60;
crypto/libressl/crypto/o_time.c
137
OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from,
crypto/libressl/crypto/o_time.c
138
const struct tm *to)
crypto/libressl/crypto/o_time.c
170
julian_adj(const struct tm *tm, int off_day, long offset_sec, long *pday,
crypto/libressl/crypto/o_time.c
183
offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec;
crypto/libressl/crypto/o_time.c
197
time_year = tm->tm_year + 1900;
crypto/libressl/crypto/o_time.c
198
time_month = tm->tm_mon + 1;
crypto/libressl/crypto/o_time.c
199
time_day = tm->tm_mday;
crypto/libressl/crypto/o_time.c
75
static int julian_adj(const struct tm *tm, int off_day, long offset_sec,
crypto/libressl/crypto/o_time.c
79
OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec)
crypto/libressl/crypto/o_time.c
90
offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec;
crypto/libressl/crypto/o_time.h
66
int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);
crypto/libressl/crypto/o_time.h
67
int OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from,
crypto/libressl/crypto/o_time.h
68
const struct tm *to);
crypto/libressl/crypto/ocsp/ocsp_cl.c
380
struct tm tm_this, tm_next, tm_tmp;
crypto/libressl/crypto/ts/ts_rsp_sign.c
1017
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
crypto/libressl/crypto/ts/ts_rsp_sign.c
1018
tm->tm_hour, tm->tm_min, tm->tm_sec, usecstr);
crypto/libressl/crypto/ts/ts_rsp_sign.c
970
struct tm *tm = NULL;
crypto/libressl/crypto/ts/ts_rsp_sign.c
979
if (!(tm = gmtime(&sec)))
crypto/libressl/crypto/x509/x509_internal.h
86
int ASN1_time_tm_clamp_notafter(struct tm *tm);
crypto/libressl/crypto/x509/x509_set.c
147
X509_set_notBefore(X509 *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509_set.c
154
if (in != tm) {
crypto/libressl/crypto/x509/x509_set.c
155
in = ASN1_STRING_dup(tm);
crypto/libressl/crypto/x509/x509_set.c
165
X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509_set.c
167
return X509_set_notBefore(x, tm);
crypto/libressl/crypto/x509/x509_set.c
185
X509_set_notAfter(X509 *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509_set.c
192
if (in != tm) {
crypto/libressl/crypto/x509/x509_set.c
193
in = ASN1_STRING_dup(tm);
crypto/libressl/crypto/x509/x509_set.c
203
X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509_set.c
205
return X509_set_notAfter(x, tm);
crypto/libressl/crypto/x509/x509_verify.c
50
struct tm tm = { 0 };
crypto/libressl/crypto/x509/x509_verify.c
53
type = ASN1_time_parse(atime->data, atime->length, &tm, atime->type);
crypto/libressl/crypto/x509/x509_verify.c
58
if (tm.tm_year < 150 && type != V_ASN1_UTCTIME)
crypto/libressl/crypto/x509/x509_verify.c
60
if (tm.tm_year >= 150 && type != V_ASN1_GENERALIZEDTIME)
crypto/libressl/crypto/x509/x509_verify.c
69
if (!ASN1_time_tm_clamp_notafter(&tm))
crypto/libressl/crypto/x509/x509_verify.c
78
return timegm(&tm);
crypto/libressl/crypto/x509/x509_vfy.c
150
int ASN1_time_tm_clamp_notafter(struct tm *tm);
crypto/libressl/crypto/x509/x509cset.c
103
if (in != tm) {
crypto/libressl/crypto/x509/x509cset.c
104
in = ASN1_STRING_dup(tm);
crypto/libressl/crypto/x509/x509cset.c
114
X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509cset.c
116
return X509_CRL_set_lastUpdate(x, tm);
crypto/libressl/crypto/x509/x509cset.c
120
X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509cset.c
127
if (in != tm) {
crypto/libressl/crypto/x509/x509cset.c
128
in = ASN1_STRING_dup(tm);
crypto/libressl/crypto/x509/x509cset.c
138
X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509cset.c
140
return X509_CRL_set_nextUpdate(x, tm);
crypto/libressl/crypto/x509/x509cset.c
179
X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
crypto/libressl/crypto/x509/x509cset.c
186
if (in != tm) {
crypto/libressl/crypto/x509/x509cset.c
187
in = ASN1_STRING_dup(tm);
crypto/libressl/crypto/x509/x509cset.c
96
X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
crypto/libressl/include/openssl/asn1.h
1197
int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode);
crypto/libressl/include/openssl/asn1.h
1198
int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2);
crypto/libressl/include/openssl/asn1.h
714
int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
crypto/libressl/include/openssl/asn1.h
725
ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);
crypto/libressl/include/openssl/cms.h
337
ASN1_OCTET_STRING **keyid, ASN1_GENERALIZEDTIME **tm,
crypto/libressl/include/openssl/ssl.h
1137
void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
crypto/libressl/include/openssl/x509.h
793
int X509_set_notBefore(X509 *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
794
int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
795
int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
796
int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
846
int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
847
int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
848
int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
849
int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
crypto/libressl/include/openssl/x509.h
855
int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);
crypto/libressl/ssl/bio_ssl.c
175
time_t tm;
crypto/libressl/ssl/bio_ssl.c
177
tm = time(NULL);
crypto/libressl/ssl/bio_ssl.c
178
if (tm > sb->last_time + sb->renegotiate_timeout) {
crypto/libressl/ssl/bio_ssl.c
179
sb->last_time = tm;
crypto/libressl/ssl/bio_ssl.c
248
time_t tm;
crypto/libressl/ssl/bio_ssl.c
250
tm = time(NULL);
crypto/libressl/ssl/bio_ssl.c
251
if (tm > bs->last_time + bs->renegotiate_timeout) {
crypto/libressl/ssl/bio_ssl.c
252
bs->last_time = tm;
crypto/libressl/tls/tls_conninfo.c
109
struct tm before_tm, after_tm;
crypto/libressl/tls/tls_conninfo.c
26
int ASN1_time_tm_clamp_notafter(struct tm *tm);
crypto/libressl/tls/tls_ocsp.c
60
struct tm tm;
crypto/libressl/tls/tls_ocsp.c
65
if (ASN1_time_parse(gt->data, gt->length, &tm,
crypto/libressl/tls/tls_ocsp.c
68
if ((*gt_time = timegm(&tm)) == -1)
crypto/openssh/krl.c
813
struct tm *tm;
crypto/openssh/krl.c
816
tm = localtime(&t);
crypto/openssh/krl.c
817
if (tm == NULL)
crypto/openssh/krl.c
821
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
crypto/openssh/misc.c
2454
struct tm tm;
crypto/openssh/misc.c
2495
memset(&tm, 0, sizeof(tm));
crypto/openssh/misc.c
2496
if ((cp = strptime(buf, fmt, &tm)) == NULL || *cp != '\0')
crypto/openssh/misc.c
2499
if ((tt = timegm(&tm)) < 0)
crypto/openssh/misc.c
2502
if ((tt = mktime(&tm)) < 0)
crypto/openssh/misc.c
2514
struct tm tm;
crypto/openssh/misc.c
2516
localtime_r(&tt, &tm);
crypto/openssh/misc.c
2517
strftime(buf, len, "%Y-%m-%dT%H:%M:%S", &tm);
crypto/openssh/moduli.c
156
struct tm *gtm;
crypto/openssh/sftp-common.c
221
struct tm *ltime = localtime(&st->st_mtime);
games/adventure/wizard.c
53
struct tm *tptr;
games/grdc/grdc.c
157
tm = localtime(&now.tv_sec);
games/grdc/grdc.c
160
set(tm->tm_sec % 10, 0);
games/grdc/grdc.c
161
set(tm->tm_sec / 10, 4);
games/grdc/grdc.c
162
set(tm->tm_min % 10, 10);
games/grdc/grdc.c
163
set(tm->tm_min / 10, 14);
games/grdc/grdc.c
165
if (tm->tm_hour == 0) {
games/grdc/grdc.c
166
tm->tm_hour = 12;
games/grdc/grdc.c
168
} else if (tm->tm_hour < 12) {
games/grdc/grdc.c
170
} else if (tm->tm_hour == 12) {
games/grdc/grdc.c
173
tm->tm_hour -= 12;
games/grdc/grdc.c
177
set(tm->tm_hour % 10, 20);
games/grdc/grdc.c
178
set(tm->tm_hour / 10, 24);
games/grdc/grdc.c
58
struct tm *tm;
games/hack/hack.unix.c
103
static struct tm *
games/hack/hack.unix.c
122
struct tm *lt = getlt();
games/hack/hack.unix.c
134
struct tm *lt = getlt();
games/hack/hack.unix.c
93
static struct tm *getlt(void);
games/monop/execute.c
52
typedef struct tm TIME;
games/pom/pom.c
67
struct tm *GMT;
games/rogue/machdep.c
299
struct tm *t;
games/rogue/machdep.c
334
struct tm *t;
include/time.h
121
char *asctime(const struct tm *);
include/time.h
125
struct tm *gmtime(const time_t *);
include/time.h
126
struct tm *localtime(const time_t *);
include/time.h
127
time_t mktime(struct tm *);
include/time.h
129
const struct tm * __restrict) __strftimelike(3, 0);
include/time.h
144
char *asctime_r(const struct tm * __restrict, char * __restrict);
include/time.h
146
struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict);
include/time.h
147
struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict);
include/time.h
168
struct tm *getdate(const char *) __strftimelike(1, 0);
include/time.h
170
struct tm * __restrict) __strftimelike(2, 0);
include/time.h
176
time_t timelocal(struct tm * const);
include/time.h
177
time_t timegm(struct tm * const);
include/time.h
180
struct tm *offtime(const time_t * const, const long);
include/time.h
181
time_t timeoff(struct tm * const, const long);
include/wchar.h
127
struct tm;
include/wchar.h
174
const struct tm * __restrict);
include/xlocale/_time.h
46
const struct tm * __restrict, locale_t) __strftimelike(3, 0);
include/xlocale/_time.h
55
struct tm * __restrict, locale_t) __strftimelike(2, 0);
include/xlocale/_wchar.h
102
const struct tm * __restrict, locale_t);
lib/libc/locale/wcsftime.c
119
const wchar_t * __restrict format, const struct tm * __restrict timeptr)
lib/libc/locale/wcsftime.c
57
const wchar_t * __restrict format, const struct tm * __restrict timeptr,
lib/libc/resolv/res_debug.c
1138
struct tm *time;
lib/libc/resolv/res_debug.c
1140
struct tm res;
lib/libc/stdtime/asctime.c
125
asctime(const struct tm *timeptr)
lib/libc/stdtime/asctime.c
75
asctime_r(const struct tm * __restrict timeptr, char * __restrict buf)
lib/libc/stdtime/getdate.c
173
struct tm tm;
lib/libc/stdtime/getdate.c
175
memset(&tm, 0, sizeof(struct tm));
lib/libc/stdtime/getdate.c
176
tm.tm_year = rtm.tm_year;
lib/libc/stdtime/getdate.c
177
tm.tm_mon = rtm.tm_mon;
lib/libc/stdtime/getdate.c
178
tm.tm_mday = 1;
lib/libc/stdtime/getdate.c
179
mktime(&tm);
lib/libc/stdtime/getdate.c
181
(rtm.tm_wday - tm.tm_wday + 7) % 7;
lib/libc/stdtime/getdate.c
237
struct tm tm;
lib/libc/stdtime/getdate.c
239
memset(&tm, 0, sizeof(struct tm));
lib/libc/stdtime/getdate.c
240
tm.tm_year = rtm.tm_year;
lib/libc/stdtime/getdate.c
241
tm.tm_mon = rtm.tm_mon;
lib/libc/stdtime/getdate.c
242
tm.tm_mday = 1;
lib/libc/stdtime/getdate.c
243
mktime(&tm);
lib/libc/stdtime/getdate.c
244
rtm.tm_mday += (rtm.tm_wday - tm.tm_wday + 7) % 7;
lib/libc/stdtime/getdate.c
63
struct tm *
lib/libc/stdtime/getdate.c
69
static struct tm rtm, tmnow;
lib/libc/stdtime/getdate.c
70
struct tm *tmp, *rtmp = &rtm;
lib/libc/stdtime/localtime.c
1277
static struct tm *
lib/libc/stdtime/localtime.c
1279
struct tm * const tmp)
lib/libc/stdtime/localtime.c
1284
struct tm * result;
lib/libc/stdtime/localtime.c
1357
struct tm *
lib/libc/stdtime/localtime.c
1360
struct tm *p_tm;
lib/libc/stdtime/localtime.c
1370
if ((p_tm = (struct tm *)malloc(sizeof(struct tm)))
lib/libc/stdtime/localtime.c
1382
localsub(timep, 0L, &tm);
lib/libc/stdtime/localtime.c
1383
return(&tm);
lib/libc/stdtime/localtime.c
1391
struct tm *
lib/libc/stdtime/localtime.c
1392
localtime_r(const time_t * __restrict const timep, struct tm * __restrict tmp)
lib/libc/stdtime/localtime.c
1411
static struct tm *
lib/libc/stdtime/localtime.c
1413
struct tm * const tmp)
lib/libc/stdtime/localtime.c
1415
struct tm * result;
lib/libc/stdtime/localtime.c
1437
struct tm *
lib/libc/stdtime/localtime.c
1440
struct tm *p_tm;
lib/libc/stdtime/localtime.c
1453
if ((p_tm = (struct tm *)malloc(sizeof(struct tm)))
lib/libc/stdtime/localtime.c
1461
return gmtsub(timep, 0L, &tm);
lib/libc/stdtime/localtime.c
1469
struct tm *
lib/libc/stdtime/localtime.c
1470
gmtime_r(const time_t * __restrict timep, struct tm * __restrict tmp)
lib/libc/stdtime/localtime.c
1475
struct tm *
lib/libc/stdtime/localtime.c
1478
return gmtsub(timep, offset, &tm);
lib/libc/stdtime/localtime.c
1493
static struct tm *
lib/libc/stdtime/localtime.c
1495
const struct state * const sp, struct tm * const tmp)
lib/libc/stdtime/localtime.c
161
static struct tm * gmtsub(const time_t * timep, int_fast32_t offset,
lib/libc/stdtime/localtime.c
162
struct tm * tmp);
lib/libc/stdtime/localtime.c
163
static struct tm * localsub(const time_t * timep, int_fast32_t offset,
lib/libc/stdtime/localtime.c
1632
struct tm *tmp = localtime(timep);
lib/libc/stdtime/localtime.c
164
struct tm * tmp);
lib/libc/stdtime/localtime.c
1640
struct tm mytm;
lib/libc/stdtime/localtime.c
1641
struct tm *tmp = localtime_r(timep, &mytm);
lib/libc/stdtime/localtime.c
1733
tmcomp(const struct tm * const atmp, const struct tm * const btmp)
lib/libc/stdtime/localtime.c
174
static time_t time1(struct tm * tmp,
lib/libc/stdtime/localtime.c
1748
time2sub(struct tm * const tmp,
lib/libc/stdtime/localtime.c
1749
struct tm * (* const funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/stdtime/localtime.c
175
struct tm * (*funcp)(const time_t *,
lib/libc/stdtime/localtime.c
176
int_fast32_t, struct tm *),
lib/libc/stdtime/localtime.c
1762
struct tm yourtm, mytm;
lib/libc/stdtime/localtime.c
178
static time_t time2(struct tm *tmp,
lib/libc/stdtime/localtime.c
179
struct tm * (*funcp)(const time_t *,
lib/libc/stdtime/localtime.c
180
int_fast32_t, struct tm*),
lib/libc/stdtime/localtime.c
182
static time_t time2sub(struct tm *tmp,
lib/libc/stdtime/localtime.c
183
struct tm * (*funcp)(const time_t *,
lib/libc/stdtime/localtime.c
184
int_fast32_t, struct tm*),
lib/libc/stdtime/localtime.c
186
static struct tm * timesub(const time_t * timep, int_fast32_t offset,
lib/libc/stdtime/localtime.c
187
const struct state * sp, struct tm * tmp);
lib/libc/stdtime/localtime.c
188
static int tmcomp(const struct tm * atmp,
lib/libc/stdtime/localtime.c
189
const struct tm * btmp);
lib/libc/stdtime/localtime.c
1914
time2(struct tm * const tmp,
lib/libc/stdtime/localtime.c
1915
struct tm * (* const funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/stdtime/localtime.c
1930
time1(struct tm * const tmp,
lib/libc/stdtime/localtime.c
1931
struct tm * (* const funcp)(const time_t *, int_fast32_t, struct tm *),
lib/libc/stdtime/localtime.c
1999
mktime(struct tm * const tmp)
lib/libc/stdtime/localtime.c
2010
timelocal(struct tm * const tmp)
lib/libc/stdtime/localtime.c
2018
timegm(struct tm * const tmp)
lib/libc/stdtime/localtime.c
2026
timeoff(struct tm * const tmp, const long offset)
lib/libc/stdtime/localtime.c
231
static struct tm tm;
lib/libc/stdtime/strftime.c
112
const struct tm * __restrict t)
lib/libc/stdtime/strftime.c
118
_fmt(const char *format, const struct tm * const t, char *pt,
lib/libc/stdtime/strftime.c
297
struct tm tm;
lib/libc/stdtime/strftime.c
302
tm = *t;
lib/libc/stdtime/strftime.c
303
mkt = mktime(&tm);
lib/libc/stdtime/strftime.c
38
static char * _fmt(const char *, const struct tm *, char *, const char *,
lib/libc/stdtime/strftime.c
79
const struct tm * __restrict t, locale_t loc)
lib/libc/stdtime/strptime.c
122
buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
lib/libc/stdtime/strptime.c
143
tm->tm_year = i * 100 - TM_YEAR_BASE;
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
288
tm->tm_hour = i;
lib/libc/stdtime/strptime.c
299
if (tm->tm_hour > 12)
lib/libc/stdtime/strptime.c
301
if (tm->tm_hour == 12)
lib/libc/stdtime/strptime.c
302
tm->tm_hour = 0;
lib/libc/stdtime/strptime.c
309
if (tm->tm_hour > 12)
lib/libc/stdtime/strptime.c
311
if (tm->tm_hour != 12)
lib/libc/stdtime/strptime.c
312
tm->tm_hour += 12;
lib/libc/stdtime/strptime.c
335
tm->tm_wday = i;
lib/libc/stdtime/strptime.c
379
tm->tm_wday = i;
lib/libc/stdtime/strptime.c
416
tm->tm_mday = i;
lib/libc/stdtime/strptime.c
455
tm->tm_mon = i;
lib/libc/stdtime/strptime.c
475
tm->tm_mon = i - 1;
lib/libc/stdtime/strptime.c
496
if (gmtime_r(&t, tm) == NULL)
lib/libc/stdtime/strptime.c
527
tm->tm_year = i;
lib/libc/stdtime/strptime.c
53
static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
lib/libc/stdtime/strptime.c
549
tm->tm_isdst = 0;
lib/libc/stdtime/strptime.c
551
tm->tm_isdst = 1;
lib/libc/stdtime/strptime.c
599
tm->tm_hour -= sign * (i / 100);
lib/libc/stdtime/strptime.c
600
tm->tm_min -= sign * (i % 100);
lib/libc/stdtime/strptime.c
619
tm->tm_yday = start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
620
TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
lib/libc/stdtime/strptime.c
627
tm->tm_wday = day_offset;
lib/libc/stdtime/strptime.c
630
tm->tm_yday = (7 -
lib/libc/stdtime/strptime.c
631
first_wday_of(tm->tm_year + TM_YEAR_BASE) +
lib/libc/stdtime/strptime.c
633
(tm->tm_wday == 0 ? day_offset : 0)) * 7 +
lib/libc/stdtime/strptime.c
634
tm->tm_wday - day_offset;
lib/libc/stdtime/strptime.c
642
while (tm->tm_yday >=
lib/libc/stdtime/strptime.c
643
start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
648
tm->tm_yday -=
lib/libc/stdtime/strptime.c
649
start_of_month[isleap(tm->tm_year +
lib/libc/stdtime/strptime.c
651
tm->tm_year++;
lib/libc/stdtime/strptime.c
653
tm->tm_mon = i - 1;
lib/libc/stdtime/strptime.c
657
tm->tm_mday = tm->tm_yday -
lib/libc/stdtime/strptime.c
658
start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
lib/libc/stdtime/strptime.c
659
[tm->tm_mon] + 1;
lib/libc/stdtime/strptime.c
664
wday_offset = first_wday_of(tm->tm_year);
lib/libc/stdtime/strptime.c
665
while (i++ <= tm->tm_yday) {
lib/libc/stdtime/strptime.c
669
tm->tm_wday = wday_offset;
lib/libc/stdtime/strptime.c
679
struct tm * __restrict tm, locale_t loc)
lib/libc/stdtime/strptime.c
686
ret = _strptime(buf, fmt, tm, &gmt, loc);
lib/libc/stdtime/strptime.c
688
time_t t = timegm(tm);
lib/libc/stdtime/strptime.c
690
localtime_r(&t, tm);
lib/libc/stdtime/strptime.c
698
struct tm * __restrict tm)
lib/libc/stdtime/strptime.c
700
return strptime_l(buf, fmt, tm, __get_locale());
lib/libc/stdtime/strptime.c
79
_strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,
lib/libfetch/ftp.c
407
struct tm tm;
lib/libfetch/ftp.c
459
&tm.tm_year, &tm.tm_mon, &tm.tm_mday,
lib/libfetch/ftp.c
460
&tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
lib/libfetch/ftp.c
464
tm.tm_mon--;
lib/libfetch/ftp.c
465
tm.tm_year -= 1900;
lib/libfetch/ftp.c
466
tm.tm_isdst = -1;
lib/libfetch/ftp.c
467
t = timegm(&tm);
lib/libfetch/ftp.c
473
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
lib/libfetch/ftp.c
474
tm.tm_hour, tm.tm_min, tm.tm_sec);
lib/libfetch/http.c
1554
struct tm *timestruct;
lib/libfetch/http.c
882
struct tm tm;
lib/libfetch/http.c
886
r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
lib/libfetch/http.c
892
r = strptime(p, "%a, %d %b %Y %H:%M:%S UTC", &tm);
lib/libfetch/http.c
898
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
lib/libfetch/http.c
899
tm.tm_hour, tm.tm_min, tm.tm_sec);
lib/libfetch/http.c
900
*mtime = timegm(&tm);
lib/libftpio/ftpio.c
228
struct tm t;
lib/libldns/ldns/config.h
716
time_t timegm (struct tm *tm);
lib/libldns/ldns/config.h
719
struct tm *gmtime_r(const time_t *timep, struct tm *result);
lib/libldns/ldns/config.h
722
struct tm *localtime_r(const time_t *timep, struct tm *result);
lib/libldns/ldns/util.h
271
time_t ldns_mktime_from_utc(const struct tm *tm);
lib/libldns/ldns/util.h
273
time_t mktime_from_utc(const struct tm *tm);
lib/libldns/ldns/util.h
289
struct tm * ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result);
lib/libssh/openbsd-compat/bsd-misc.c
441
struct tm *
lib/libssh/openbsd-compat/bsd-misc.c
442
localtime_r(const time_t *timep, struct tm *result)
lib/libssh/openbsd-compat/bsd-misc.c
444
struct tm *tm = localtime(timep);
lib/libssh/openbsd-compat/bsd-misc.c
445
*result = *tm;
lib/libssh/openbsd-compat/bsd-misc.h
186
struct tm *localtime_r(const time_t *, struct tm *);
lib/libssh/openbsd-compat/openbsd-compat.h
129
char *strptime(const char *buf, const char *fmt, struct tm *tm);
lib/libssh/openbsd-compat/openbsd-compat.h
328
struct tm *localtime_r(const time_t *, struct tm *);
lib/libssh/openbsd-compat/openbsd-compat.h
332
time_t timegm(struct 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
223
struct tm *tptr;
lib/libutil/login_times.c
109
in_ltm(const login_time_t *ltm, struct tm *tt, time_t *ends)
lib/libutil/login_times.c
144
in_ltms(const login_time_t *ltm, struct tm *tm, time_t *t)
lib/libutil/login_times.c
149
if (in_ltm(ltm + i, tm, t))
libexec/bootpd/tzone.c
38
struct tm *tm;
libexec/bootpd/tzone.c
42
if ((tm = localtime(&now)) == NULL) {
libexec/bootpd/tzone.c
46
secondswest = -tm->tm_gmtoff;
libexec/ftpd/ftpcmd.y
751
struct tm *t;
libexec/rbootd/utils.c
78
struct tm *tmp;
libexec/rpc.rstatd/rstat_proc.c
162
struct timeval tm, btm;
libexec/rpc.rstatd/rstat_proc.c
234
gettimeofday(&tm, NULL);
libexec/rpc.rstatd/rstat_proc.c
235
stats_all.s1.v_intr -= hz*(tm.tv_sec - btm.tv_sec) +
libexec/rpc.rstatd/rstat_proc.c
236
hz*(tm.tv_usec - btm.tv_usec)/1000000;
libexec/talkd/announce.c
92
struct tm *localclock;
sbin/adjkerntz/adjkerntz.c
74
struct tm local;
sbin/dhclient/dhclient.c
1484
struct tm *t;
sbin/dhclient/parse.c
355
struct tm tm;
sbin/dhclient/parse.c
366
tm.tm_wday = atoi(val);
sbin/dhclient/parse.c
376
tm.tm_year = atoi(val);
sbin/dhclient/parse.c
377
if (tm.tm_year > 1900)
sbin/dhclient/parse.c
378
tm.tm_year -= 1900;
sbin/dhclient/parse.c
397
tm.tm_mon = atoi(val) - 1;
sbin/dhclient/parse.c
416
tm.tm_mday = atoi(val);
sbin/dhclient/parse.c
426
tm.tm_hour = atoi(val);
sbin/dhclient/parse.c
445
tm.tm_min = atoi(val);
sbin/dhclient/parse.c
464
tm.tm_sec = atoi(val);
sbin/dhclient/parse.c
465
tm.tm_isdst = 0;
sbin/dhclient/parse.c
468
tm.tm_yday = 0;
sbin/dhclient/parse.c
479
guess = ((((((365 * (tm.tm_year - 70) + /* Days in years since '70 */
sbin/dhclient/parse.c
480
(tm.tm_year - 69) / 4 + /* Leap days since '70 */
sbin/dhclient/parse.c
481
(tm.tm_mon /* Days in months this year */
sbin/dhclient/parse.c
482
? months[tm.tm_mon - 1] : 0) +
sbin/dhclient/parse.c
483
(tm.tm_mon > 1 && /* Leap day this year */
sbin/dhclient/parse.c
484
!((tm.tm_year - 72) & 3)) +
sbin/dhclient/parse.c
485
tm.tm_mday - 1) * 24) + /* Day of month */
sbin/dhclient/parse.c
486
tm.tm_hour) * 60) + tm.tm_min) * 60) + tm.tm_sec;
sbin/dump/optr.c
360
struct tm *tlast;
sbin/dump/unctime.c
51
struct tm then;
sbin/fsdb/fsdb.c
809
struct tm t;
sbin/hammer/cmd_cleanup.c
1022
struct tm tm;
sbin/hammer/cmd_cleanup.c
1040
bzero(&tm, sizeof(tm));
sbin/hammer/cmd_cleanup.c
1041
tm.tm_isdst = -1;
sbin/hammer/cmd_cleanup.c
1042
tm.tm_min = minute;
sbin/hammer/cmd_cleanup.c
1043
tm.tm_hour = hour;
sbin/hammer/cmd_cleanup.c
1044
tm.tm_mday = day;
sbin/hammer/cmd_cleanup.c
1045
tm.tm_mon = month - 1;
sbin/hammer/cmd_cleanup.c
1046
tm.tm_year = year - 1900;
sbin/hammer/cmd_cleanup.c
1047
t = mktime(&tm);
sbin/hammer/cmd_cleanup.c
632
struct tm tm;
sbin/hammer/cmd_cleanup.c
660
bzero(&tm, sizeof(tm));
sbin/hammer/cmd_cleanup.c
661
tm.tm_isdst = -1;
sbin/hammer/cmd_cleanup.c
662
tm.tm_min = minute;
sbin/hammer/cmd_cleanup.c
663
tm.tm_hour = hour;
sbin/hammer/cmd_cleanup.c
664
tm.tm_mday = day;
sbin/hammer/cmd_cleanup.c
665
tm.tm_mon = month - 1;
sbin/hammer/cmd_cleanup.c
666
tm.tm_year = year - 1900;
sbin/hammer/cmd_cleanup.c
667
t = mktime(&tm);
sbin/hammer/cmd_cleanup.c
765
struct tm tp1;
sbin/hammer/cmd_cleanup.c
766
struct tm tp2;
sbin/hammer/cmd_cleanup.c
947
struct tm *tp;
sbin/hammer/cmd_history.c
248
struct tm *tp;
sbin/hammer/cmd_snapshot.c
507
struct tm *tp;
sbin/hammer/cmd_snapshot.c
84
struct tm *tp;
sbin/hammer2/cmd_snapshot.c
63
struct tm *tp;
sbin/hammer2/subs.c
88
struct tm *tp;
sbin/jscan/dump_debug.c
319
struct tm *tp;
sbin/newfs_msdos/mkfs_msdos.c
237
struct tm *tm;
sbin/newfs_msdos/mkfs_msdos.c
616
tm = gmtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
620
tm = localtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
703
x = (((u_int)(1 + tm->tm_mon) << 8 |
sbin/newfs_msdos/mkfs_msdos.c
704
(u_int)tm->tm_mday) +
sbin/newfs_msdos/mkfs_msdos.c
705
((u_int)tm->tm_sec << 8 |
sbin/newfs_msdos/mkfs_msdos.c
707
((u_int)(1900 + tm->tm_year) +
sbin/newfs_msdos/mkfs_msdos.c
708
((u_int)tm->tm_hour << 8 |
sbin/newfs_msdos/mkfs_msdos.c
709
(u_int)tm->tm_min));
sbin/newfs_msdos/mkfs_msdos.c
745
x = (u_int)tm->tm_hour << 11 |
sbin/newfs_msdos/mkfs_msdos.c
746
(u_int)tm->tm_min << 5 |
sbin/newfs_msdos/mkfs_msdos.c
747
(u_int)tm->tm_sec >> 1;
sbin/newfs_msdos/mkfs_msdos.c
749
x = (u_int)(tm->tm_year - 80) << 9 |
sbin/newfs_msdos/mkfs_msdos.c
750
(u_int)(tm->tm_mon + 1) << 5 |
sbin/newfs_msdos/mkfs_msdos.c
751
(u_int)tm->tm_mday;
sbin/routed/parms.c
427
struct tm tm;
sbin/routed/parms.c
440
memset(&tm, 0, sizeof(tm));
sbin/routed/parms.c
442
ptr = strptime(buf, "%y/%m/%d@%H:%M\n", &tm);
sbin/routed/parms.c
449
&tm.tm_year, &tm.tm_mon, &tm.tm_mday,
sbin/routed/parms.c
450
&tm.tm_hour, &tm.tm_min)
sbin/routed/parms.c
451
|| tm.tm_mon < 1 || tm.tm_mon > 12
sbin/routed/parms.c
452
|| tm.tm_mday < 1 || tm.tm_mday > 31) {
sbin/routed/parms.c
456
tm.tm_mon--;
sbin/routed/parms.c
457
if (tm.tm_year <= 37) /* assume small years are in the */
sbin/routed/parms.c
458
tm.tm_year += 100; /* 3rd millenium */
sbin/routed/parms.c
461
if ((*tp = mktime(&tm)) == -1) {
sbin/shutdown/shutdown.c
414
struct tm *lt;
sbin/vinum/v.c
858
struct tm *date;
sys/dev/misc/efirt/efidev.c
87
struct efi_tm *tm = (struct efi_tm *)addr;
sys/dev/misc/efirt/efidev.c
89
error = efi_get_time(tm);
sys/dev/misc/efirt/efidev.c
94
struct efi_tm *tm = (struct efi_tm *)addr;
sys/dev/misc/efirt/efidev.c
96
error = efi_set_time(tm);
sys/dev/raid/mfi/mfi.c
2276
int tm = MFI_POLL_TIMEOUT_SECS * 1000;
sys/dev/raid/mfi/mfi.c
2311
tm -= 1;
sys/dev/raid/mfi/mfi.c
2312
if (tm <= 0)
sys/dev/raid/mfi/mfi_tbolt.c
1141
int tm = MFI_POLL_TIMEOUT_SECS * 1000;
sys/dev/raid/mfi/mfi_tbolt.c
1190
tm -= 1;
sys/dev/raid/mfi/mfi_tbolt.c
1191
if (tm <= 0)
sys/dev/raid/mpr/mpr_sas.c
1257
struct mpr_command *tm = data;
sys/dev/raid/mpr/mpr_sas.c
1258
struct mpr_softc *sc = tm->cm_sc;
sys/dev/raid/mpr/mpr_sas.c
126
static int mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/raid/mpr/mpr_sas.c
1262
mprsas_log_command(tm, MPR_INFO|MPR_RECOVERY, "task mgmt %p timed "
sys/dev/raid/mpr/mpr_sas.c
1263
"out\n", tm);
sys/dev/raid/mpr/mpr_sas.c
1265
KASSERT(tm->cm_state == MPR_CM_STATE_INQUEUE,
sys/dev/raid/mpr/mpr_sas.c
1268
tm->cm_state = MPR_CM_STATE_BUSY;
sys/dev/raid/mpr/mpr_sas.c
1273
mprsas_logical_unit_reset_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
1281
callout_stop(&tm->cm_callout);
sys/dev/raid/mpr/mpr_sas.c
1283
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
1284
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
1285
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
1292
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
1295
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/raid/mpr/mpr_sas.c
1296
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1302
tm);
sys/dev/raid/mpr/mpr_sas.c
1307
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1308
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1330
if (cm->cm_lun == tm->cm_lun)
sys/dev/raid/mpr/mpr_sas.c
1340
tm->cm_lun);
sys/dev/raid/mpr/mpr_sas.c
1351
mprsas_send_abort(sc, tm, cm);
sys/dev/raid/mpr/mpr_sas.c
1353
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1354
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1365
mprsas_send_reset(sc, tm,
sys/dev/raid/mpr/mpr_sas.c
1371
mprsas_target_reset_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
1377
callout_stop(&tm->cm_callout);
sys/dev/raid/mpr/mpr_sas.c
1379
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
1380
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
1381
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
1388
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
1390
"reset! This should not happen!\n", __func__, tm->cm_flags);
sys/dev/raid/mpr/mpr_sas.c
1391
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1398
tm, le16toh(req->TaskMID));
sys/dev/raid/mpr/mpr_sas.c
1403
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1404
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1428
mprsas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/raid/mpr/mpr_sas.c
1431
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1432
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1450
mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm, uint8_t type)
sys/dev/raid/mpr/mpr_sas.c
1456
target = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
1463
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
1470
MPR_SET_LUN(req->LUN, tm->cm_lun);
sys/dev/raid/mpr/mpr_sas.c
1471
tm->cm_targ->logical_unit_resets++;
sys/dev/raid/mpr/mpr_sas.c
1474
target->tid, tm->cm_lun);
sys/dev/raid/mpr/mpr_sas.c
1475
tm->cm_complete = mprsas_logical_unit_reset_complete;
sys/dev/raid/mpr/mpr_sas.c
1476
mprsas_prepare_for_tm(sc, tm, target, tm->cm_lun);
sys/dev/raid/mpr/mpr_sas.c
1483
tm->cm_targ->target_resets++;
sys/dev/raid/mpr/mpr_sas.c
1486
tm->cm_complete = mprsas_target_reset_complete;
sys/dev/raid/mpr/mpr_sas.c
1487
mprsas_prepare_for_tm(sc, tm, target, CAM_LUN_WILDCARD);
sys/dev/raid/mpr/mpr_sas.c
1501
tm->cm_data = NULL;
sys/dev/raid/mpr/mpr_sas.c
1502
tm->cm_desc.HighPriority.RequestFlags =
sys/dev/raid/mpr/mpr_sas.c
1504
tm->cm_complete_data = (void *)tm;
sys/dev/raid/mpr/mpr_sas.c
1506
callout_reset(&tm->cm_callout, MPR_RESET_TIMEOUT * hz,
sys/dev/raid/mpr/mpr_sas.c
1507
mprsas_tm_timeout, tm);
sys/dev/raid/mpr/mpr_sas.c
1509
err = mpr_map_command(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1519
mprsas_abort_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
1526
callout_stop(&tm->cm_callout);
sys/dev/raid/mpr/mpr_sas.c
1528
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
1529
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
1530
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
1537
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
1540
tm->cm_flags, tm, le16toh(req->TaskMID));
sys/dev/raid/mpr/mpr_sas.c
1541
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1548
tm, le16toh(req->TaskMID));
sys/dev/raid/mpr/mpr_sas.c
1553
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1554
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1570
cm = TAILQ_FIRST(&tm->cm_targ->timedout_commands);
sys/dev/raid/mpr/mpr_sas.c
1578
targ->tm = NULL;
sys/dev/raid/mpr/mpr_sas.c
1579
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1584
mprsas_send_abort(sc, tm, cm);
sys/dev/raid/mpr/mpr_sas.c
1594
mprsas_send_reset(sc, tm,
sys/dev/raid/mpr/mpr_sas.c
1602
mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/raid/mpr/mpr_sas.c
1620
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
1630
tm->cm_data = NULL;
sys/dev/raid/mpr/mpr_sas.c
1631
tm->cm_desc.HighPriority.RequestFlags =
sys/dev/raid/mpr/mpr_sas.c
1633
tm->cm_complete = mprsas_abort_complete;
sys/dev/raid/mpr/mpr_sas.c
1634
tm->cm_complete_data = (void *)tm;
sys/dev/raid/mpr/mpr_sas.c
1635
tm->cm_targ = cm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
1636
tm->cm_lun = cm->cm_lun;
sys/dev/raid/mpr/mpr_sas.c
1638
callout_reset(&tm->cm_callout, MPR_ABORT_TIMEOUT * hz,
sys/dev/raid/mpr/mpr_sas.c
1639
mprsas_tm_timeout, tm);
sys/dev/raid/mpr/mpr_sas.c
1643
mprsas_prepare_for_tm(sc, tm, targ, tm->cm_lun);
sys/dev/raid/mpr/mpr_sas.c
1645
err = mpr_map_command(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
1716
if (targ->tm != NULL) {
sys/dev/raid/mpr/mpr_sas.c
1721
"processing by tm %p\n", cm, targ->tm);
sys/dev/raid/mpr/mpr_sas.c
1723
else if ((targ->tm = mprsas_alloc_tm(sc)) != NULL) {
sys/dev/raid/mpr/mpr_sas.c
1730
cm, targ->tm);
sys/dev/raid/mpr/mpr_sas.c
1731
mprsas_send_abort(sc, targ->tm, cm);
sys/dev/raid/mpr/mpr_sas.c
236
struct mpr_command *tm;
sys/dev/raid/mpr/mpr_sas.c
239
tm = mpr_alloc_high_priority_command(sc);
sys/dev/raid/mpr/mpr_sas.c
240
return tm;
sys/dev/raid/mpr/mpr_sas.c
244
mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
249
if (tm == NULL)
sys/dev/raid/mpr/mpr_sas.c
2548
} else if (cm->cm_targ->tm != NULL) {
sys/dev/raid/mpr/mpr_sas.c
257
if (tm->cm_targ != NULL) {
sys/dev/raid/mpr/mpr_sas.c
258
tm->cm_targ->flags &= ~MPRSAS_TARGET_INRESET;
sys/dev/raid/mpr/mpr_sas.c
259
target_id = tm->cm_targ->tid;
sys/dev/raid/mpr/mpr_sas.c
261
if (tm->cm_ccb) {
sys/dev/raid/mpr/mpr_sas.c
264
xpt_release_devq(tm->cm_ccb->ccb_h.path, 1, TRUE);
sys/dev/raid/mpr/mpr_sas.c
265
xpt_free_path(tm->cm_ccb->ccb_h.path);
sys/dev/raid/mpr/mpr_sas.c
266
xpt_free_ccb(&tm->cm_ccb->ccb_h);
sys/dev/raid/mpr/mpr_sas.c
269
mpr_free_high_priority_command(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
3342
struct mpr_command *tm;
sys/dev/raid/mpr/mpr_sas.c
3351
tm = mpr_alloc_command(sc);
sys/dev/raid/mpr/mpr_sas.c
3352
if (tm == NULL) {
sys/dev/raid/mpr/mpr_sas.c
3361
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
3369
tm->cm_data = NULL;
sys/dev/raid/mpr/mpr_sas.c
3370
tm->cm_desc.HighPriority.RequestFlags =
sys/dev/raid/mpr/mpr_sas.c
3372
tm->cm_complete = mprsas_resetdev_complete;
sys/dev/raid/mpr/mpr_sas.c
3373
tm->cm_complete_data = ccb;
sys/dev/raid/mpr/mpr_sas.c
3377
tm->cm_targ = targ;
sys/dev/raid/mpr/mpr_sas.c
3380
mpr_map_command(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
3384
mprsas_resetdev_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
3392
resp = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
3393
ccb = tm->cm_complete_data;
sys/dev/raid/mpr/mpr_sas.c
3400
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
3403
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
3407
tm->cm_flags, req->DevHandle);
sys/dev/raid/mpr/mpr_sas.c
3417
mprsas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/raid/mpr/mpr_sas.c
3425
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
371
mprsas_remove_volume(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
3788
mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/raid/mpr/mpr_sas.c
379
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
380
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mpr/mpr_sas.c
3808
tm->cm_ccb = ccb;
sys/dev/raid/mpr/mpr_sas.c
3809
tm->cm_targ = target;
sys/dev/raid/mpr/mpr_sas.c
381
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
387
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
399
mpr_free_reply(sc, tm->cm_reply_data);
sys/dev/raid/mpr/mpr_sas.c
400
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/raid/mpr/mpr_sas.c
413
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
431
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
557
mprsas_remove_device(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
567
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
568
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mpr/mpr_sas.c
569
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
576
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
579
tm->cm_flags, handle);
sys/dev/raid/mpr/mpr_sas.c
586
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
598
mpr_free_reply(sc, tm->cm_reply_data);
sys/dev/raid/mpr/mpr_sas.c
599
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/raid/mpr/mpr_sas.c
602
req = (MPI2_SAS_IOUNIT_CONTROL_REQUEST *)tm->cm_req;
sys/dev/raid/mpr/mpr_sas.c
607
tm->cm_data = NULL;
sys/dev/raid/mpr/mpr_sas.c
608
tm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE;
sys/dev/raid/mpr/mpr_sas.c
609
tm->cm_complete = mprsas_remove_complete;
sys/dev/raid/mpr/mpr_sas.c
610
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/raid/mpr/mpr_sas.c
612
mpr_map_command(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
621
TAILQ_FOREACH_MUTABLE(tm, &targ->commands, cm_link, next_cm) {
sys/dev/raid/mpr/mpr_sas.c
624
mpr_dprint(sc, MPR_XINFO, "Completing missed command %p\n", tm);
sys/dev/raid/mpr/mpr_sas.c
625
ccb = tm->cm_complete_data;
sys/dev/raid/mpr/mpr_sas.c
627
mprsas_scsiio_complete(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
632
mprsas_remove_complete(struct mpr_softc *sc, struct mpr_command *tm)
sys/dev/raid/mpr/mpr_sas.c
641
reply = (MPI2_SAS_IOUNIT_CONTROL_REPLY *)tm->cm_reply;
sys/dev/raid/mpr/mpr_sas.c
642
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mpr/mpr_sas.c
649
if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mpr/mpr_sas.c
652
tm->cm_flags, handle);
sys/dev/raid/mpr/mpr_sas.c
653
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
661
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.c
676
targ = tm->cm_targ;
sys/dev/raid/mpr/mpr_sas.c
700
mprsas_free_tm(sc, tm);
sys/dev/raid/mpr/mpr_sas.h
170
void mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/raid/mpr/mpr_sas.h
65
struct mpr_command *tm;
sys/dev/raid/mpr/mpr_sas_lsi.c
1002
targ->tm->cm_targ = targ;
sys/dev/raid/mpr/mpr_sas_lsi.c
1003
mprsas_send_reset(sc, targ->tm,
sys/dev/raid/mpr/mpr_sas_lsi.c
998
if ((targ->tm = mprsas_alloc_tm(sc)) != NULL) {
sys/dev/raid/mpr/mprvar.h
851
void mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm);
sys/dev/raid/mpr/mprvar.h
853
int mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm,
sys/dev/raid/mps/mps_sas.c
1126
struct mps_command *tm = data;
sys/dev/raid/mps/mps_sas.c
1127
struct mps_softc *sc = tm->cm_sc;
sys/dev/raid/mps/mps_sas.c
1130
mpssas_log_command(tm, "task mgmt %p timed out\n", tm);
sys/dev/raid/mps/mps_sas.c
1136
mpssas_logical_unit_reset_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
1143
callout_stop(&tm->cm_callout);
sys/dev/raid/mps/mps_sas.c
1145
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
1146
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
1153
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
1155
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/raid/mps/mps_sas.c
1156
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1161
mpssas_log_command(tm, "NULL reset reply for tm %p\n", tm);
sys/dev/raid/mps/mps_sas.c
1165
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1166
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1175
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1185
if (cm->cm_lun == tm->cm_lun)
sys/dev/raid/mps/mps_sas.c
1190
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1192
tm->cm_lun);
sys/dev/raid/mps/mps_sas.c
1194
mpssas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/raid/mps/mps_sas.c
1195
tm->cm_lun);
sys/dev/raid/mps/mps_sas.c
1203
mpssas_send_abort(sc, tm, cm);
sys/dev/raid/mps/mps_sas.c
1206
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1207
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1215
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1217
tm, cm_count);
sys/dev/raid/mps/mps_sas.c
1218
mpssas_send_reset(sc, tm,
sys/dev/raid/mps/mps_sas.c
1224
mpssas_target_reset_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
1229
callout_stop(&tm->cm_callout);
sys/dev/raid/mps/mps_sas.c
1231
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
1232
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
1239
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
1241
"This should not happen!\n", __func__, tm->cm_flags);
sys/dev/raid/mps/mps_sas.c
1242
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1247
mpssas_log_command(tm, "NULL reset reply for tm %p\n", tm);
sys/dev/raid/mps/mps_sas.c
1251
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1252
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1261
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1272
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1275
mpssas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/raid/mps/mps_sas.c
1278
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1279
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1286
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1288
tm, targ->outstanding);
sys/dev/raid/mps/mps_sas.c
1296
mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm, uint8_t type)
sys/dev/raid/mps/mps_sas.c
1302
target = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
1309
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
1316
MPS_SET_LUN(req->LUN, tm->cm_lun);
sys/dev/raid/mps/mps_sas.c
1317
tm->cm_targ->logical_unit_resets++;
sys/dev/raid/mps/mps_sas.c
1318
mpssas_log_command(tm, "sending logical unit reset\n");
sys/dev/raid/mps/mps_sas.c
1319
tm->cm_complete = mpssas_logical_unit_reset_complete;
sys/dev/raid/mps/mps_sas.c
1324
tm->cm_targ->target_resets++;
sys/dev/raid/mps/mps_sas.c
1325
tm->cm_targ->flags |= MPSSAS_TARGET_INRESET;
sys/dev/raid/mps/mps_sas.c
1326
mpssas_log_command(tm, "sending target reset\n");
sys/dev/raid/mps/mps_sas.c
1327
tm->cm_complete = mpssas_target_reset_complete;
sys/dev/raid/mps/mps_sas.c
1334
tm->cm_data = NULL;
sys/dev/raid/mps/mps_sas.c
1335
tm->cm_desc.HighPriority.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY;
sys/dev/raid/mps/mps_sas.c
1336
tm->cm_complete_data = (void *)tm;
sys/dev/raid/mps/mps_sas.c
1338
callout_reset(&tm->cm_callout, MPS_RESET_TIMEOUT * hz,
sys/dev/raid/mps/mps_sas.c
1339
mpssas_tm_timeout, tm);
sys/dev/raid/mps/mps_sas.c
1341
err = mps_map_command(sc, tm);
sys/dev/raid/mps/mps_sas.c
1343
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1352
mpssas_abort_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
1359
callout_stop(&tm->cm_callout);
sys/dev/raid/mps/mps_sas.c
1361
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
1362
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
1363
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
1370
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
1371
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1373
tm->cm_flags, tm, req->TaskMID);
sys/dev/raid/mps/mps_sas.c
1374
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1379
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1381
tm, req->TaskMID);
sys/dev/raid/mps/mps_sas.c
1384
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1385
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1394
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1400
cm = TAILQ_FIRST(&tm->cm_targ->timedout_commands);
sys/dev/raid/mps/mps_sas.c
1405
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1409
targ->tm = NULL;
sys/dev/raid/mps/mps_sas.c
1410
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
1414
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1418
mpssas_send_abort(sc, tm, cm);
sys/dev/raid/mps/mps_sas.c
1424
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1426
req->TaskMID, tm);
sys/dev/raid/mps/mps_sas.c
1428
mpssas_send_reset(sc, tm,
sys/dev/raid/mps/mps_sas.c
1436
mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm, struct mps_command *cm)
sys/dev/raid/mps/mps_sas.c
1449
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
1459
tm->cm_data = NULL;
sys/dev/raid/mps/mps_sas.c
1460
tm->cm_desc.HighPriority.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY;
sys/dev/raid/mps/mps_sas.c
1461
tm->cm_complete = mpssas_abort_complete;
sys/dev/raid/mps/mps_sas.c
1462
tm->cm_complete_data = (void *)tm;
sys/dev/raid/mps/mps_sas.c
1463
tm->cm_targ = cm->cm_targ;
sys/dev/raid/mps/mps_sas.c
1464
tm->cm_lun = cm->cm_lun;
sys/dev/raid/mps/mps_sas.c
1466
callout_reset(&tm->cm_callout, MPS_ABORT_TIMEOUT * hz,
sys/dev/raid/mps/mps_sas.c
1467
mpssas_tm_timeout, tm);
sys/dev/raid/mps/mps_sas.c
1471
err = mps_map_command(sc, tm);
sys/dev/raid/mps/mps_sas.c
1473
mpssas_log_command(tm,
sys/dev/raid/mps/mps_sas.c
1524
if (targ->tm != NULL) {
sys/dev/raid/mps/mps_sas.c
1529
cm, targ->tm);
sys/dev/raid/mps/mps_sas.c
1531
else if ((targ->tm = mpssas_alloc_tm(sc)) != NULL) {
sys/dev/raid/mps/mps_sas.c
1533
cm, targ->tm);
sys/dev/raid/mps/mps_sas.c
1536
mpssas_send_abort(sc, targ->tm, cm);
sys/dev/raid/mps/mps_sas.c
159
static int mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm, struct mps_command *cm);
sys/dev/raid/mps/mps_sas.c
160
static int mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm, uint8_t type);
sys/dev/raid/mps/mps_sas.c
1838
} else if (cm->cm_targ->tm != NULL) {
sys/dev/raid/mps/mps_sas.c
238
struct mps_command *tm;
sys/dev/raid/mps/mps_sas.c
240
tm = mps_alloc_high_priority_command(sc);
sys/dev/raid/mps/mps_sas.c
241
if (tm != NULL) {
sys/dev/raid/mps/mps_sas.c
249
return tm;
sys/dev/raid/mps/mps_sas.c
253
mpssas_free_tm(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
255
if (tm == NULL)
sys/dev/raid/mps/mps_sas.c
269
mps_free_high_priority_command(sc, tm);
sys/dev/raid/mps/mps_sas.c
2758
struct mps_command *tm;
sys/dev/raid/mps/mps_sas.c
2765
tm = mps_alloc_command(sc);
sys/dev/raid/mps/mps_sas.c
2766
if (tm == NULL) {
sys/dev/raid/mps/mps_sas.c
2774
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
2782
tm->cm_data = NULL;
sys/dev/raid/mps/mps_sas.c
2783
tm->cm_desc.HighPriority.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY;
sys/dev/raid/mps/mps_sas.c
2784
tm->cm_complete = mpssas_resetdev_complete;
sys/dev/raid/mps/mps_sas.c
2785
tm->cm_complete_data = ccb;
sys/dev/raid/mps/mps_sas.c
2786
tm->cm_targ = targ;
sys/dev/raid/mps/mps_sas.c
2787
mps_map_command(sc, tm);
sys/dev/raid/mps/mps_sas.c
2791
mpssas_resetdev_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
2799
resp = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
2800
ccb = tm->cm_complete_data;
sys/dev/raid/mps/mps_sas.c
2807
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
2810
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
2813
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/raid/mps/mps_sas.c
2824
mpssas_announce_reset(sc, AC_SENT_BDR, tm->cm_targ->tid,
sys/dev/raid/mps/mps_sas.c
2832
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
348
mpssas_remove_volume(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
356
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
357
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mps/mps_sas.c
358
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
364
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
371
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
376
mps_free_reply(sc, tm->cm_reply_data);
sys/dev/raid/mps/mps_sas.c
377
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/raid/mps/mps_sas.c
388
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
399
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
530
mpssas_remove_device(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
540
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
541
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mps/mps_sas.c
542
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
549
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
551
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/raid/mps/mps_sas.c
553
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
561
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
568
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
574
mps_free_reply(sc, tm->cm_reply_data);
sys/dev/raid/mps/mps_sas.c
575
tm->cm_reply = NULL; /* Ensures the reply won't get re-freed */
sys/dev/raid/mps/mps_sas.c
578
req = (MPI2_SAS_IOUNIT_CONTROL_REQUEST *)tm->cm_req;
sys/dev/raid/mps/mps_sas.c
583
tm->cm_data = NULL;
sys/dev/raid/mps/mps_sas.c
584
tm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE;
sys/dev/raid/mps/mps_sas.c
585
tm->cm_complete = mpssas_remove_complete;
sys/dev/raid/mps/mps_sas.c
586
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/raid/mps/mps_sas.c
588
mps_map_command(sc, tm);
sys/dev/raid/mps/mps_sas.c
592
TAILQ_FOREACH_MUTABLE(tm, &targ->commands, cm_link, next_cm) {
sys/dev/raid/mps/mps_sas.c
595
mps_dprint(sc, MPS_INFO, "Completing missed command %p\n", tm);
sys/dev/raid/mps/mps_sas.c
596
ccb = tm->cm_complete_data;
sys/dev/raid/mps/mps_sas.c
598
mpssas_scsiio_complete(sc, tm);
sys/dev/raid/mps/mps_sas.c
603
mpssas_remove_complete(struct mps_softc *sc, struct mps_command *tm)
sys/dev/raid/mps/mps_sas.c
611
reply = (MPI2_SAS_IOUNIT_CONTROL_REPLY *)tm->cm_reply;
sys/dev/raid/mps/mps_sas.c
612
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/raid/mps/mps_sas.c
619
if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) {
sys/dev/raid/mps/mps_sas.c
621
"This should not happen!\n", __func__, tm->cm_flags,
sys/dev/raid/mps/mps_sas.c
623
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
631
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.c
645
targ = tm->cm_targ;
sys/dev/raid/mps/mps_sas.c
656
mpssas_free_tm(sc, tm);
sys/dev/raid/mps/mps_sas.h
160
void mpssas_free_tm(struct mps_softc *sc, struct mps_command *tm);
sys/dev/raid/mps/mps_sas.h
61
struct mps_command *tm;
sys/kern/subr_fattime.c
267
struct tm tm;
sys/kern/subr_fattime.c
281
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
282
strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm);
sys/kern/subr_fattime.c
300
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
301
strftime(buf, sizeof buf, "%Y %m %d %H %M %S", &tm);
sys/net/ip_mroute/ip_mroute.c
1965
u_long tm;
sys/net/ip_mroute/ip_mroute.c
1972
TV_DELTA(tp, t->tbf_last_pkt_t, tm);
sys/net/ip_mroute/ip_mroute.c
1983
t->tbf_n_tok += tm * vifp->v_rate_limit / 1024 / 8;
sys/platform/pc64/include/efi.h
47
int efi_get_time(struct efi_tm *tm);
sys/platform/pc64/include/efi.h
48
int efi_get_time_locked(struct efi_tm *tm);
sys/platform/pc64/include/efi.h
50
int efi_set_time(struct efi_tm *tm);
sys/platform/pc64/include/efi.h
51
int efi_set_time_locked(struct efi_tm *tm);
sys/platform/pc64/isa/clock.c
1151
unsigned long tm;
sys/platform/pc64/isa/clock.c
1159
tm = tv.tv_sec;
sys/platform/pc64/isa/clock.c
1167
tm -= tz.tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0);
sys/platform/pc64/isa/clock.c
1169
writertc(RTC_SEC, bin2bcd(tm%60)); tm /= 60; /* Write back Seconds */
sys/platform/pc64/isa/clock.c
1170
writertc(RTC_MIN, bin2bcd(tm%60)); tm /= 60; /* Write back Minutes */
sys/platform/pc64/isa/clock.c
1171
writertc(RTC_HRS, bin2bcd(tm%24)); tm /= 24; /* Write back Hours */
sys/platform/pc64/isa/clock.c
1174
writertc(RTC_WDAY, (tm+4)%7); /* Write back Weekday */
sys/platform/pc64/isa/clock.c
1176
tm >= m;
sys/platform/pc64/isa/clock.c
1178
tm -= m;
sys/platform/pc64/isa/clock.c
1191
if (tm < ml)
sys/platform/pc64/isa/clock.c
1193
tm -= ml;
sys/platform/pc64/isa/clock.c
1197
writertc(RTC_DAY, bin2bcd(tm + 1)); /* Write back Month Day */
sys/platform/pc64/x86_64/efirt.c
490
efi_get_time_locked(struct efi_tm *tm)
sys/platform/pc64/x86_64/efirt.c
499
status = efi_runtime->rt_gettime(tm, NULL);
sys/platform/pc64/x86_64/efirt.c
507
efi_get_time(struct efi_tm *tm)
sys/platform/pc64/x86_64/efirt.c
514
error = efi_get_time_locked(tm);
sys/platform/pc64/x86_64/efirt.c
534
efi_set_time_locked(struct efi_tm *tm)
sys/platform/pc64/x86_64/efirt.c
543
status = efi_runtime->rt_settime(tm);
sys/platform/pc64/x86_64/efirt.c
550
efi_set_time(struct efi_tm *tm)
sys/platform/pc64/x86_64/efirt.c
557
error = efi_set_time_locked(tm);
sys/platform/pc64/x86_64/efirt.c
643
struct efi_tm tm;
sys/platform/pc64/x86_64/efirt.c
650
error = efi_get_time(&tm);
sys/platform/pc64/x86_64/efirt.c
653
"Sec %d\n", tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour,
sys/platform/pc64/x86_64/efirt.c
654
tm.tm_min, tm.tm_sec);
sys/vfs/ntfs/ntfs_subr.c
1253
ntfs_times(struct ntfsmount *ntmp, struct ntnode *ip, ntfs_times_t *tm)
sys/vfs/ntfs/ntfs_subr.c
1269
*tm = vap->va_a_name->n_times;
sys/vfs/smbfs/smbfs_smb.c
359
int64_t tm;
sys/vfs/smbfs/smbfs_smb.c
380
smb_time_local2NT(atime, tzoff, &tm);
sys/vfs/smbfs/smbfs_smb.c
382
tm = 0;
sys/vfs/smbfs/smbfs_smb.c
383
mb_put_int64le(mbp, tm);
sys/vfs/smbfs/smbfs_smb.c
385
smb_time_local2NT(mtime, tzoff, &tm);
sys/vfs/smbfs/smbfs_smb.c
387
tm = 0;
sys/vfs/smbfs/smbfs_smb.c
388
mb_put_int64le(mbp, tm);
sys/vfs/smbfs/smbfs_smb.c
389
mb_put_int64le(mbp, tm); /* change time */
sys/vfs/smbfs/smbfs_smb.c
452
int64_t tm;
sys/vfs/smbfs/smbfs_smb.c
469
smb_time_local2NT(atime, svtz, &tm);
sys/vfs/smbfs/smbfs_smb.c
471
tm = 0;
sys/vfs/smbfs/smbfs_smb.c
472
mb_put_int64le(mbp, tm);
sys/vfs/smbfs/smbfs_smb.c
474
smb_time_local2NT(mtime, svtz, &tm);
sys/vfs/smbfs/smbfs_smb.c
476
tm = 0;
sys/vfs/smbfs/smbfs_smb.c
477
mb_put_int64le(mbp, tm);
sys/vfs/smbfs/smbfs_smb.c
478
mb_put_int64le(mbp, tm); /* change time */
sys/vfs/smbfs/smbfs_smb.c
581
u_long tm;
sys/vfs/smbfs/smbfs_smb.c
591
smb_time_local2server(&ctime, SSTOVC(ssp)->vc_sopt.sv_tz, &tm);
sys/vfs/smbfs/smbfs_smb.c
592
mb_put_uint32le(mbp, tm);
sys/vfs/tmpfs/tmpfs.h
377
#define TMPFS_LOCK(tm) lwkt_gettoken(&(tm)->tm_mount->mnt_token)
sys/vfs/tmpfs/tmpfs.h
378
#define TMPFS_UNLOCK(tm) lwkt_reltoken(&(tm)->tm_mount->mnt_token)
test/interbench/interbench.c
1172
struct tm *mytm;
test/stress/stress2/testcases/run/run.c
100
(void) strftime(ct, sizeof(ct), "%T", tm);
test/stress/stress2/testcases/run/run.c
94
struct tm *tm;
test/stress/stress2/testcases/run/run.c
99
tm = localtime(&t);
tools/tools/net80211/stumbler/stumbler.c
212
struct tm* t;
tools/tools/net80211/wesside/wesside/wesside.c
246
struct tm *t;
usr.bin/at/at.c
629
struct tm *t;
usr.bin/at/at.c
692
struct tm runtime;
usr.bin/at/at.c
886
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
887
fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/at.c
905
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
906
fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/parsetime.c
283
plus(struct tm *tm)
usr.bin/at/parsetime.c
295
tm->tm_year += delay;
usr.bin/at/parsetime.c
298
tm->tm_mon += delay;
usr.bin/at/parsetime.c
304
tm->tm_mday += delay;
usr.bin/at/parsetime.c
307
tm->tm_hour += delay;
usr.bin/at/parsetime.c
310
tm->tm_min += delay;
usr.bin/at/parsetime.c
320
tm->tm_isdst = -1;
usr.bin/at/parsetime.c
321
if (mktime(tm) < 0)
usr.bin/at/parsetime.c
332
tod(struct tm *tm)
usr.bin/at/parsetime.c
379
if ((sc_tokid == EOF || sc_tokid == PLUS) && tm->tm_hour > hour) {
usr.bin/at/parsetime.c
380
tm->tm_mday++;
usr.bin/at/parsetime.c
381
tm->tm_wday++;
usr.bin/at/parsetime.c
384
tm->tm_hour = hour;
usr.bin/at/parsetime.c
385
tm->tm_min = minute;
usr.bin/at/parsetime.c
386
if (tm->tm_hour == 24) {
usr.bin/at/parsetime.c
387
tm->tm_hour = 0;
usr.bin/at/parsetime.c
388
tm->tm_mday++;
usr.bin/at/parsetime.c
397
assign_date(struct tm *tm, long mday, long mon, long year)
usr.bin/at/parsetime.c
409
struct tm *lt;
usr.bin/at/parsetime.c
425
(tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday)))
usr.bin/at/parsetime.c
426
year = tm->tm_year + 1;
usr.bin/at/parsetime.c
428
tm->tm_mday = mday;
usr.bin/at/parsetime.c
429
tm->tm_mon = mon;
usr.bin/at/parsetime.c
432
tm->tm_year = year;
usr.bin/at/parsetime.c
446
month(struct tm *tm)
usr.bin/at/parsetime.c
454
plus(tm);
usr.bin/at/parsetime.c
459
tm->tm_mday ++;
usr.bin/at/parsetime.c
460
tm->tm_wday ++;
usr.bin/at/parsetime.c
477
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
487
mday = tm->tm_mday;
usr.bin/at/parsetime.c
491
if (wday < tm->tm_wday)
usr.bin/at/parsetime.c
492
mday += 7 - (tm->tm_wday - wday);
usr.bin/at/parsetime.c
494
mday += (wday - tm->tm_wday);
usr.bin/at/parsetime.c
496
tm->tm_wday = wday;
usr.bin/at/parsetime.c
498
assign_date(tm, mday, tm->tm_mon, tm->tm_year);
usr.bin/at/parsetime.c
547
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
562
struct tm nowtime, runtime;
usr.bin/calendar/calendar.c
476
struct tm tm;
usr.bin/calendar/calendar.c
480
localtime_r(&now, &tm);
usr.bin/calendar/calendar.c
482
return (tm.tm_hour + tm.tm_min/60.0 + tm.tm_sec/3600.0) / 24.0;
usr.bin/calendar/calendar.c
489
struct tm tm;
usr.bin/calendar/calendar.c
494
localtime_r(&now, &tm);
usr.bin/calendar/calendar.c
495
date_set(&gdate, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
usr.bin/calendar/calendar.c
504
struct tm tm;
usr.bin/calendar/calendar.c
508
localtime_r(&now, &tm);
usr.bin/calendar/calendar.c
510
return tm.tm_gmtoff;
usr.bin/calendar/dates.c
181
struct tm tm = { 0 };
usr.bin/calendar/dates.c
186
tm.tm_year = gdate.year - 1900;
usr.bin/calendar/dates.c
187
tm.tm_mon = gdate.month - 1;
usr.bin/calendar/dates.c
188
tm.tm_mday = gdate.day;
usr.bin/calendar/dates.c
190
(day_first ? "%e %b" : "%b %e"), &tm);
usr.bin/calendar/nnames.c
101
struct tm tm;
usr.bin/calendar/nnames.c
104
memset(&tm, 0, sizeof(tm));
usr.bin/calendar/nnames.c
107
tm.tm_wday = i;
usr.bin/calendar/nnames.c
109
strftime(buf, sizeof(buf), "%a", &tm);
usr.bin/calendar/nnames.c
114
strftime(buf, sizeof(buf), "%A", &tm);
usr.bin/calendar/nnames.c
124
memset(&tm, 0, sizeof(tm));
usr.bin/calendar/nnames.c
127
tm.tm_mon = i;
usr.bin/calendar/nnames.c
129
strftime(buf, sizeof(buf), "%b", &tm);
usr.bin/calendar/nnames.c
135
strftime(buf, sizeof(buf), "%B", &tm);
usr.bin/calendar/parsedata.c
692
struct tm tm;
usr.bin/calendar/parsedata.c
697
localtime_r(&now, &tm);
usr.bin/calendar/parsedata.c
698
date_set(&gdate, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
usr.bin/chat/chat.c
1237
struct tm* tm_now = localtime (&time_now);
usr.bin/chpass/util.c
60
struct tm *tp;
usr.bin/chpass/util.c
76
static struct tm *lt;
usr.bin/diff/diffreg.c
1470
struct tm tm;
usr.bin/diff/diffreg.c
1472
localtime_r(&ts->tv_sec, &tm);
usr.bin/diff/diffreg.c
1473
strftime(buf1, sizeof(buf1), "%Y-%m-%d %H:%M:%S", &tm);
usr.bin/diff/diffreg.c
1474
strftime(buf2, sizeof(buf2), "%z", &tm);
usr.bin/dsynth/html.c
90
struct tm tmm;
usr.bin/find/getdate.y
636
struct tm *tm;
usr.bin/find/getdate.y
640
tm = localtime(&now);
usr.bin/find/getdate.y
641
now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
usr.bin/find/getdate.y
650
struct tm *tm;
usr.bin/find/getdate.y
656
tm = localtime(&Start);
usr.bin/find/getdate.y
657
Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth;
usr.bin/find/getdate.y
661
Convert(Month, (time_t)tm->tm_mday, Year,
usr.bin/find/getdate.y
662
(time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
usr.bin/find/getdate.y
829
difftm (struct tm *a, struct tm *b)
usr.bin/find/getdate.y
851
struct tm *tm, *gmt_ptr, gmt;
usr.bin/find/getdate.y
857
bzero (&gmt, sizeof(struct tm));
usr.bin/find/getdate.y
872
if (! (tm = localtime (&nowtime)))
usr.bin/find/getdate.y
876
tzoff = difftm (&gmt, tm) / 60;
usr.bin/find/getdate.y
885
if(tm->tm_isdst)
usr.bin/find/getdate.y
888
tm = localtime(&nowtime);
usr.bin/find/getdate.y
889
yyYear = tm->tm_year + 1900;
usr.bin/find/getdate.y
890
yyMonth = tm->tm_mon + 1;
usr.bin/find/getdate.y
891
yyDay = tm->tm_mday;
usr.bin/find/getdate.y
919
Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
usr.bin/finger/lprint.c
95
struct tm *delta;
usr.bin/finger/lprint.c
98
struct tm *tp;
usr.bin/finger/sprint.c
158
struct tm *delta;
usr.bin/finger/sprint.c
58
struct tm *lc;
usr.bin/gzip/gzip.c
186
#define gz_compress(if, of, sz, fn, tm) gz_compress(if, of, sz)
usr.bin/ipcs/ipcs.c
104
struct tm *tm;
usr.bin/ipcs/ipcs.c
109
tm = localtime(&t);
usr.bin/ipcs/ipcs.c
111
tm->tm_hour, tm->tm_min, tm->tm_sec);
usr.bin/kcollect/gnuplot.c
92
struct tm *tmv;
usr.bin/kcollect/kcollect.c
549
struct tm *tmv;
usr.bin/kcollect/kcollect.c
684
struct tm *tmv;
usr.bin/kcollect/kcollect.c
750
struct tm tm;
usr.bin/kcollect/kcollect.c
757
memset(&tm, 0, sizeof(struct tm));
usr.bin/kcollect/kcollect.c
758
strptime(str, fmt, &tm);
usr.bin/kcollect/kcollect.c
759
ts = timegm(&tm);
usr.bin/last/last.c
298
struct tm *tm;
usr.bin/last/last.c
301
tm = (flags & GMT) ? gmtime(&t) : localtime(&t);
usr.bin/last/last.c
302
if (tm == NULL) {
usr.bin/last/last.c
310
tm);
usr.bin/leave/leave.c
59
struct tm *t;
usr.bin/localedef/time.c
122
add_list(tm.mon, str, 12);
usr.bin/localedef/time.c
125
add_list(tm.month, str, 12);
usr.bin/localedef/time.c
128
add_list(tm.wday, str, 7);
usr.bin/localedef/time.c
131
add_list(tm.weekday, str, 7);
usr.bin/localedef/time.c
134
if (tm.am == NULL) {
usr.bin/localedef/time.c
135
tm.am = str;
usr.bin/localedef/time.c
136
} else if (tm.pm == NULL) {
usr.bin/localedef/time.c
137
tm.pm = str;
usr.bin/localedef/time.c
158
if (tm.mon[11] != NULL)
usr.bin/localedef/time.c
162
if (tm.month[11] != NULL)
usr.bin/localedef/time.c
166
if (tm.wday[6] != NULL)
usr.bin/localedef/time.c
170
if (tm.weekday[6] != NULL)
usr.bin/localedef/time.c
174
if (tm.pm != NULL)
usr.bin/localedef/time.c
198
free((char *)tm.mon[i]);
usr.bin/localedef/time.c
199
tm.mon[i] = NULL;
usr.bin/localedef/time.c
204
free((char *)tm.month[i]);
usr.bin/localedef/time.c
205
tm.month[i] = NULL;
usr.bin/localedef/time.c
210
free((char *)tm.wday[i]);
usr.bin/localedef/time.c
211
tm.wday[i] = NULL;
usr.bin/localedef/time.c
216
free((char *)tm.weekday[i]);
usr.bin/localedef/time.c
217
tm.weekday[i] = NULL;
usr.bin/localedef/time.c
221
free((char *)tm.am);
usr.bin/localedef/time.c
222
tm.am = NULL;
usr.bin/localedef/time.c
223
free((char *)tm.pm);
usr.bin/localedef/time.c
224
tm.pm = NULL;
usr.bin/localedef/time.c
242
if (putl_category(tm.mon[i], f) == EOF) {
usr.bin/localedef/time.c
247
if (putl_category(tm.month[i], f) == EOF) {
usr.bin/localedef/time.c
252
if (putl_category(tm.wday[i], f) == EOF) {
usr.bin/localedef/time.c
257
if (putl_category(tm.weekday[i], f) == EOF) {
usr.bin/localedef/time.c
268
if ((putl_category(tm.X_fmt, f) == EOF) ||
usr.bin/localedef/time.c
269
(putl_category(tm.x_fmt, f) == EOF) ||
usr.bin/localedef/time.c
270
(putl_category(tm.c_fmt, f) == EOF) ||
usr.bin/localedef/time.c
271
(putl_category(tm.am, f) == EOF) ||
usr.bin/localedef/time.c
272
(putl_category(tm.pm, f) == EOF) ||
usr.bin/localedef/time.c
273
(putl_category(tm.date_fmt ? tm.date_fmt : tm.c_fmt, f) == EOF) ||
usr.bin/localedef/time.c
274
(putl_category(tm.ampm_fmt, f) == EOF)) {
usr.bin/localedef/time.c
45
static 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
82
struct tm *timp;
usr.bin/ncal/ncal.c
1086
struct tm tm;
usr.bin/ncal/ncal.c
1107
if (strptime(s, "%B", &tm) != NULL || strptime(s, "%b", &tm) != NULL) {
usr.bin/ncal/ncal.c
1108
*m = tm.tm_mon + 1;
usr.bin/ncal/ncal.c
366
struct tm *tm;
usr.bin/ncal/ncal.c
369
tm = localtime(&t);
usr.bin/ncal/ncal.c
370
y = tm->tm_year + 1900;
usr.bin/ncal/ncal.c
385
struct tm *tm;
usr.bin/ncal/ncal.c
388
tm = localtime(&t);
usr.bin/ncal/ncal.c
389
y = tm->tm_year + 1900;
usr.bin/ncal/ncal.c
390
m = tm->tm_mon + 1;
usr.bin/ncal/ncal.c
489
struct tm *tm1;
usr.bin/ncal/ncal.c
551
struct tm tm;
usr.bin/ncal/ncal.c
569
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
570
tm.tm_year = dt.y - 1900;
usr.bin/ncal/ncal.c
571
tm.tm_mon = dt.m - 1;
usr.bin/ncal/ncal.c
572
tm.tm_mday = dt.d;
usr.bin/ncal/ncal.c
573
strftime(buf, sizeof(buf), d_first ? "%e %B %Y" : "%B %e %Y", &tm);
usr.bin/ncal/ncal.c
774
struct tm tm; /* for strftime printing local names of
usr.bin/ncal/ncal.c
787
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
788
tm.tm_mon = m;
usr.bin/ncal/ncal.c
790
L"%OB", &tm);
usr.bin/ncal/ncal.c
865
struct tm tm; /* for strftime printing local names of
usr.bin/ncal/ncal.c
887
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
888
tm.tm_mon = m;
usr.bin/ncal/ncal.c
890
L"%OB", &tm);
usr.bin/ncal/ncal.c
962
struct tm tm;
usr.bin/ncal/ncal.c
965
memset(&tm, 0, sizeof(tm));
usr.bin/ncal/ncal.c
968
tm.tm_wday = (i+1) % 7;
usr.bin/ncal/ncal.c
969
wcsftime(buf, sizeof(buf), L"%a", &tm);
usr.bin/pr/pr.c
1257
struct tm *timeptr = NULL;
usr.bin/rup/rup.c
87
struct tm *tmp_time;
usr.bin/rup/rup.c
88
struct tm host_time;
usr.bin/rup/rup.c
89
struct tm host_uptime;
usr.bin/rwall/rwall.c
127
struct tm *lt;
usr.bin/stat/stat.c
631
struct tm *tm;
usr.bin/stat/stat.c
771
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
772
if (tm == NULL) {
usr.bin/stat/stat.c
774
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
776
strftime(path, sizeof(path), timefmt, tm);
usr.bin/systat/vmstat.c
296
struct tm *tp;
usr.bin/touch/touch.c
231
struct tm *t;
usr.bin/touch/touch.c
295
struct tm *t;
usr.bin/touch/touch.c
324
struct tm t = { .tm_sec = 0 };
usr.bin/undo/undo.c
422
struct tm *tp;
usr.bin/undo/undo.c
714
struct tm *tp;
usr.bin/unzip/unzip.c
790
struct tm *tm;
usr.bin/unzip/unzip.c
793
tm = localtime(&mtime);
usr.bin/unzip/unzip.c
795
strftime(buf, sizeof(buf), "%m-%d-%G %R", tm);
usr.bin/unzip/unzip.c
797
strftime(buf, sizeof(buf), "%m-%d-%g %R", tm);
usr.bin/w/pr_time.c
50
struct tm tp, tm;
usr.bin/w/pr_time.c
55
tm = *localtime(now);
usr.bin/w/pr_time.c
63
else if (tm.tm_mday != tp.tm_mday ||
usr.bin/w/pr_time.c
64
tm.tm_mon != tp.tm_mon ||
usr.bin/w/pr_time.c
65
tm.tm_year != tp.tm_year) {
usr.bin/wall/wall.c
168
struct tm *lt;
usr.sbin/ac/ac.c
408
struct tm *ltm;
usr.sbin/cdcontrol/cdcontrol.c
515
unsigned char tm, ts, tf;
usr.sbin/cdcontrol/cdcontrol.c
590
tm = toc_buffer[tr1].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
595
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
596
if ((m1 > tm)
usr.sbin/cdcontrol/cdcontrol.c
597
|| ((m1 == tm)
usr.sbin/cdcontrol/cdcontrol.c
617
m1 += tm;
usr.sbin/cdcontrol/cdcontrol.c
643
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
644
m2 = tm;
usr.sbin/cdcontrol/cdcontrol.c
656
tm = toc_buffer[tr2].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
661
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
674
m2 += tm;
usr.sbin/cdcontrol/cdcontrol.c
678
tm = toc_buffer[n].addr.msf.minute;
usr.sbin/cdcontrol/cdcontrol.c
683
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
685
&& ((m2 > tm)
usr.sbin/cdcontrol/cdcontrol.c
686
|| ((m2 == tm)
usr.sbin/cdcontrol/cdcontrol.c
712
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
713
m2 = tm;
usr.sbin/cron/cron/cron.c
158
static struct tm lasttm;
usr.sbin/cron/cron/cron.c
161
struct tm otztm; /* time in the old time zone */
usr.sbin/cron/cron/cron.c
163
struct tm *tm;
usr.sbin/cron/cron/cron.c
168
tm = localtime(&TargetTime);
usr.sbin/cron/cron/cron.c
171
minute = tm->tm_min -FIRST_MINUTE;
usr.sbin/cron/cron/cron.c
172
hour = tm->tm_hour -FIRST_HOUR;
usr.sbin/cron/cron/cron.c
173
dom = tm->tm_mday -FIRST_DOM;
usr.sbin/cron/cron/cron.c
174
month = tm->tm_mon +1 /* 0..11 -> 1..12 */ -FIRST_MONTH;
usr.sbin/cron/cron/cron.c
175
dow = tm->tm_wday -FIRST_DOW;
usr.sbin/cron/cron/cron.c
182
&& tm->tm_gmtoff != lasttm.tm_gmtoff ) {
usr.sbin/cron/cron/cron.c
184
diff = tm->tm_gmtoff - lasttm.tm_gmtoff;
usr.sbin/cron/cron/cron.c
226
time_t difftime = TargetTime + tm->tm_gmtoff - diff;
usr.sbin/cron/cron/cron.c
287
lasttm = *tm;
usr.sbin/cron/cron/cron.c
303
struct tm *tm;
usr.sbin/cron/cron/cron.c
306
tm = localtime(&TargetTime);
usr.sbin/cron/cron/cron.c
307
TargetTime += (60 - tm->tm_sec);
usr.sbin/cron/cron/externs.h
29
# define TZONE(tm) tzname[(tm).tm_isdst]
usr.sbin/cron/cron/externs.h
54
extern struct tm *localtime();
usr.sbin/cron/cron/externs.h
66
# define TZONE(tm) (tm).tm_zone
usr.sbin/cron/lib/misc.c
428
struct tm *t;
usr.sbin/cron/lib/misc.c
602
struct tm *tm = localtime(&t);
usr.sbin/cron/lib/misc.c
605
if (tm->tm_year >= 100)
usr.sbin/cron/lib/misc.c
606
tm->tm_year += 1900;
usr.sbin/cron/lib/misc.c
609
DowNames[tm->tm_wday],
usr.sbin/cron/lib/misc.c
610
tm->tm_mday,
usr.sbin/cron/lib/misc.c
611
MonthNames[tm->tm_mon],
usr.sbin/cron/lib/misc.c
612
tm->tm_year,
usr.sbin/cron/lib/misc.c
613
tm->tm_hour,
usr.sbin/cron/lib/misc.c
614
tm->tm_min,
usr.sbin/cron/lib/misc.c
615
tm->tm_sec,
usr.sbin/cron/lib/misc.c
616
TZONE(*tm));
usr.sbin/dntpd/client.c
238
struct tm *tp;
usr.sbin/dntpd/system.c
169
struct tm *tp;
usr.sbin/installer/dfuibe_installer/fn_configure.c
689
struct tm *tp;
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/hammer2.c
1507
struct tm *tp;
usr.sbin/makefs/msdos/msdosfs_vnops.c
116
struct tm lt = {0};
usr.sbin/mfiutil/mfi_evt.c
244
struct tm tm;
usr.sbin/mfiutil/mfi_evt.c
254
bzero(&tm, sizeof(tm));
usr.sbin/mfiutil/mfi_evt.c
255
tm.tm_mday = 1;
usr.sbin/mfiutil/mfi_evt.c
256
tm.tm_year = (2000 - 1900);
usr.sbin/mfiutil/mfi_evt.c
257
base = mktime(&tm);
usr.sbin/ndp/ndp.c
169
register struct tm *gmt, *loc;
usr.sbin/ndp/ndp.c
170
struct tm sgmt;
usr.sbin/newsyslog/newsyslog.c
1479
struct tm *tm)
usr.sbin/newsyslog/newsyslog.c
1517
memset(tm, 0, sizeof(*tm));
usr.sbin/newsyslog/newsyslog.c
1519
timefnamefmt, tm)) == NULL) {
usr.sbin/newsyslog/newsyslog.c
1555
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
1585
if (validate_old_timelog(dir_fd, dp, base, &tm) == 0)
usr.sbin/newsyslog/newsyslog.c
1592
if ((oldlogs[logcnt].t = timegm(&tm)) == -1)
usr.sbin/newsyslog/newsyslog.c
1753
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
1811
localtime_r(&now, &tm) == NULL)
usr.sbin/newsyslog/newsyslog.c
1812
bzero(&tm, sizeof(tm));
usr.sbin/newsyslog/newsyslog.c
1814
strftime(datetimestr, sizeof(datetimestr), timefnamefmt, &tm);
usr.sbin/newsyslog/newsyslog.c
2384
struct tm tm;
usr.sbin/newsyslog/newsyslog.c
2416
if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0)
usr.sbin/newsyslog/ptimes.c
132
struct tm tm;
usr.sbin/newsyslog/ptimes.c
143
tm = ptime->tm;
usr.sbin/newsyslog/ptimes.c
147
tm.tm_year = ((l / 1000000) - 19) * 100;
usr.sbin/newsyslog/ptimes.c
152
tm.tm_year -= tm.tm_year % 100;
usr.sbin/newsyslog/ptimes.c
153
tm.tm_year += l / 10000;
usr.sbin/newsyslog/ptimes.c
158
tm.tm_mon = (l / 100) - 1;
usr.sbin/newsyslog/ptimes.c
163
tm.tm_mday = l;
usr.sbin/newsyslog/ptimes.c
172
if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12
usr.sbin/newsyslog/ptimes.c
173
|| tm.tm_mday < 1 || tm.tm_mday > 31)
usr.sbin/newsyslog/ptimes.c
184
tm.tm_sec = l % 100;
usr.sbin/newsyslog/ptimes.c
188
tm.tm_min = l % 100;
usr.sbin/newsyslog/ptimes.c
193
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
293
tm.tm_mday = daysmon;
usr.sbin/newsyslog/ptimes.c
303
tm.tm_mday = l;
usr.sbin/newsyslog/ptimes.c
320
ptime->tm = tm;
usr.sbin/newsyslog/ptimes.c
363
(adjtime.did_adj4dst == dstsrc->tm.tm_isdst))
usr.sbin/newsyslog/ptimes.c
367
if (dstsrc->tm.tm_isdst != adjtime.tm.tm_isdst) {
usr.sbin/newsyslog/ptimes.c
368
if (adjtime.tm.tm_isdst == 1)
usr.sbin/newsyslog/ptimes.c
370
else if (adjtime.tm.tm_isdst == 0)
usr.sbin/newsyslog/ptimes.c
372
adjtime.tm = *(localtime(&adjtime.tsecs));
usr.sbin/newsyslog/ptimes.c
374
adjtime.did_adj4dst = dstsrc->tm.tm_isdst;
usr.sbin/newsyslog/ptimes.c
391
struct tm temp_tm;
usr.sbin/newsyslog/ptimes.c
396
ptime->tm = ptime->basetm;
usr.sbin/newsyslog/ptimes.c
397
ptime->tm.tm_hour = ptime->tm.tm_min = ptime->tm.tm_sec = 0;
usr.sbin/newsyslog/ptimes.c
420
dpm = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
423
(ptime->tm.tm_mday> dpm)) {
usr.sbin/newsyslog/ptimes.c
432
ptime->tm.tm_year, ptime->tm.tm_mon,
usr.sbin/newsyslog/ptimes.c
433
ptime->tm.tm_mday, ptime->tm.tm_hour,
usr.sbin/newsyslog/ptimes.c
434
ptime->tm.tm_min, dpm);
usr.sbin/newsyslog/ptimes.c
435
temp_tm = ptime->tm;
usr.sbin/newsyslog/ptimes.c
442
ptime->tm.tm_year, ptime->tm.tm_mon,
usr.sbin/newsyslog/ptimes.c
443
ptime->tm.tm_mday, ptime->tm.tm_hour,
usr.sbin/newsyslog/ptimes.c
444
ptime->tm.tm_min);
usr.sbin/newsyslog/ptimes.c
452
ptime->tsecs = mktime(&ptime->tm);
usr.sbin/newsyslog/ptimes.c
499
struct tm tm;
usr.sbin/newsyslog/ptimes.c
518
if (ptime == NULL || localtime_r(&(ptime->tsecs), &tm) == NULL) {
usr.sbin/newsyslog/ptimes.c
528
if (tm.tm_gmtoff < 0) {
usr.sbin/newsyslog/ptimes.c
530
tz_offset = -tm.tm_gmtoff;
usr.sbin/newsyslog/ptimes.c
533
tz_offset = tm.tm_gmtoff;
usr.sbin/newsyslog/ptimes.c
543
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
usr.sbin/newsyslog/ptimes.c
544
tm.tm_hour, tm.tm_min, tm.tm_sec,
usr.sbin/newsyslog/ptimes.c
613
if (ptime->tm.tm_mon == 1 && ptime->tm.tm_mday == 29) {
usr.sbin/newsyslog/ptimes.c
614
nextmatch.tm.tm_year += 4;
usr.sbin/newsyslog/ptimes.c
615
if (days_pmonth(1, nextmatch.tm.tm_year) < 29)
usr.sbin/newsyslog/ptimes.c
616
nextmatch.tm.tm_year += 4;
usr.sbin/newsyslog/ptimes.c
618
nextmatch.tm.tm_year += 1;
usr.sbin/newsyslog/ptimes.c
620
nextmatch.tm.tm_isdst = -1;
usr.sbin/newsyslog/ptimes.c
621
nextmatch.tsecs = mktime(&nextmatch.tm);
usr.sbin/newsyslog/ptimes.c
629
if (ptime->tm.tm_mon < 11)
usr.sbin/newsyslog/ptimes.c
630
moredays = days_pmonth(ptime->tm.tm_mon + 1,
usr.sbin/newsyslog/ptimes.c
631
ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
633
moredays = days_pmonth(0, ptime->tm.tm_year + 1);
usr.sbin/newsyslog/ptimes.c
637
moredays = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year);
usr.sbin/newsyslog/ptimes.c
643
tmon = ptime->tm.tm_mon;
usr.sbin/newsyslog/ptimes.c
644
tyear = ptime->tm.tm_year;
usr.sbin/newsyslog/ptimes.c
653
if (tdpm >= ptime->tm.tm_mday)
usr.sbin/newsyslog/ptimes.c
666
nextmatch.tm = *(localtime(&nextmatch.tsecs));
usr.sbin/newsyslog/ptimes.c
688
ptime->tm = *(localtime(&ptime->tsecs));
usr.sbin/newsyslog/ptimes.c
73
struct tm basetm; /* Base Time expanded into fields */
usr.sbin/newsyslog/ptimes.c
74
struct tm tm; /* Time expanded into fields */
usr.sbin/pw/psdate.c
171
struct tm *T;
usr.sbin/pw/pw_log.c
48
struct tm *t = localtime(&now);
usr.sbin/pw/pw_user.c
1093
struct tm * tptr;
usr.sbin/route6d/route6d.c
3165
struct tm *tm;
usr.sbin/route6d/route6d.c
3168
if ((tm = localtime(&t)) == NULL) {
usr.sbin/route6d/route6d.c
3172
snprintf(buf, sizeof(buf), "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
usr.sbin/route6d/route6d.c
3173
tm->tm_sec);
usr.sbin/rtadvd/dump.c
127
ctime((time_t *)&rai->timer->tm.tv_sec));
usr.sbin/rtadvd/rtadvd.c
1860
ra_timer_update(void *arg, struct timespec *tm)
usr.sbin/rtadvd/rtadvd.c
1909
tm->tv_sec = interval;
usr.sbin/rtadvd/rtadvd.c
1910
tm->tv_nsec = 0;
usr.sbin/rtadvd/rtadvd.c
1915
(long int)tm->tv_sec, (long int)tm->tv_nsec / 1000);
usr.sbin/rtadvd/timer.c
186
rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *rat)
usr.sbin/rtadvd/timer.c
192
TS_ADD(&now, tm, &rat->rat_tm);
usr.sbin/tzsetup/tzsetup.c
653
struct tm *tm;
usr.sbin/tzsetup/tzsetup.c
658
tm = localtime(&t);
usr.sbin/tzsetup/tzsetup.c
662
"Does the abbreviation `%s' look reasonable?", tm->tm_zone);
usr.sbin/usbdump/usbdump.c
451
struct tm *tm;
usr.sbin/usbdump/usbdump.c
489
tm = localtime(&tv.tv_sec);
usr.sbin/usbdump/usbdump.c
491
len = strftime(buf, sizeof(buf), "%H:%M:%S", tm);
usr.sbin/zic/zdump.c
133
static char *abbr(struct tm *tmp);
usr.sbin/zic/zdump.c
135
static intmax_t delta(struct tm * newp, struct tm * oldp) __pure;
usr.sbin/zic/zdump.c
136
static void dumptime(const struct tm *tmp);
usr.sbin/zic/zdump.c
146
static struct tm *
usr.sbin/zic/zdump.c
149
struct tm * tmp;
usr.sbin/zic/zdump.c
153
struct tm tm;
usr.sbin/zic/zdump.c
156
tm = *tmp;
usr.sbin/zic/zdump.c
157
t = mktime(&tm);
usr.sbin/zic/zdump.c
218
struct tm tm;
usr.sbin/zic/zdump.c
219
struct tm newtm;
usr.sbin/zic/zdump.c
220
struct tm *tmp;
usr.sbin/zic/zdump.c
221
struct tm *newtmp;
usr.sbin/zic/zdump.c
341
tm = *tmp;
usr.sbin/zic/zdump.c
342
strncpy(buf, abbr(&tm), (sizeof buf) - 1);
usr.sbin/zic/zdump.c
354
(delta(&newtm, &tm) != (newt - t) ||
usr.sbin/zic/zdump.c
355
newtm.tm_isdst != tm.tm_isdst ||
usr.sbin/zic/zdump.c
367
tm = newtm;
usr.sbin/zic/zdump.c
439
struct tm lotm;
usr.sbin/zic/zdump.c
440
struct tm * lotmp;
usr.sbin/zic/zdump.c
441
struct tm tm;
usr.sbin/zic/zdump.c
442
struct tm * tmp;
usr.sbin/zic/zdump.c
462
tm = *tmp;
usr.sbin/zic/zdump.c
464
(delta(&tm, &lotm) == (t - lot) &&
usr.sbin/zic/zdump.c
465
tm.tm_isdst == lotm.tm_isdst &&
usr.sbin/zic/zdump.c
466
strcmp(abbr(&tm), loab) == 0)) {
usr.sbin/zic/zdump.c
468
lotm = tm;
usr.sbin/zic/zdump.c
482
delta(struct tm *newp, struct tm *oldp)
usr.sbin/zic/zdump.c
505
struct tm * tmp;
usr.sbin/zic/zdump.c
534
abbr(struct tm *tmp)
usr.sbin/zic/zdump.c
572
dumptime(const struct tm *timeptr)