bin/date/date.c
208
if ((tm = localtime(&tval)) == NULL)
bin/date/date.c
211
while (strftime(buf, bufsiz, format, tm) == 0)
bin/date/date.c
249
struct tm tm;
bin/date/date.c
252
memset(&tm, 0, sizeof tm);
bin/date/date.c
256
tm.tm_year = ATOI2(string) * 100;
bin/date/date.c
257
tm.tm_year += ATOI2(string);
bin/date/date.c
258
tm.tm_year -= 1900;
bin/date/date.c
266
tm.tm_mon = ATOI2(string);
bin/date/date.c
267
if (tm.tm_mon < 1 || tm.tm_mon > 12)
bin/date/date.c
269
tm.tm_mon--;
bin/date/date.c
277
tm.tm_mday = ATOI2(string);
bin/date/date.c
278
if (tm.tm_mday < 1)
bin/date/date.c
280
switch (tm.tm_mon) {
bin/date/date.c
282
if (tm.tm_mday > 31)
bin/date/date.c
286
if (tm.tm_mday > 30)
bin/date/date.c
290
if (tm.tm_mday > 28 + isleap(tm.tm_year + 1900))
bin/date/date.c
306
tm.tm_hour = ATOI2(string);
bin/date/date.c
307
if (tm.tm_hour > 23)
bin/date/date.c
317
tm.tm_min = ATOI2(string);
bin/date/date.c
318
if (tm.tm_min >= 60)
bin/date/date.c
328
tm.tm_sec = ATOI2(string);
bin/date/date.c
329
if (tm.tm_sec >= 60)
bin/date/date.c
336
tm.tm_isdst = -1;
bin/date/date.c
337
tm.tm_wday = -1;
bin/date/date.c
339
t = mktime(&tm);
bin/date/date.c
340
if (tm.tm_wday == -1)
bin/date/date.c
354
struct tm *lt;
bin/date/date.c
98
struct tm *tm;
bin/pax/ar_io.c
1616
timefmt(char *buf, size_t size, off_t sz, time_t tm, const char *unitstr)
bin/pax/ar_io.c
1619
(unsigned long)tm, (OFFT_T)(sz / tm), unitstr);
bin/pax/gen_subs.c
92
struct tm tm;
bin/pax/gen_subs.c
93
(void)localtime_r(&when, &tm);
bin/pax/gen_subs.c
96
error = strftime(buf, buflen, OLDFRMT, &tm);
bin/pax/gen_subs.c
98
error = strftime(buf, buflen, CURFRMT, &tm);
bin/pax/sel_subs.c
550
struct tm *lt;
bin/ps/print.c
119
const struct tm *tp)
bin/ps/print.c
793
struct tm *tp;
bin/sh/var.c
1593
struct tm tm_now, *tmp;
crypto/dist/ipsec-tools/src/racoon/backupsa.c
106
tm = localtime(&t);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
107
l = strftime(p, len, FORMAT, tm);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
200
struct tm tm;
crypto/dist/ipsec-tools/src/racoon/backupsa.c
227
memset(&tm, 0, sizeof(tm));
crypto/dist/ipsec-tools/src/racoon/backupsa.c
228
p = str2tmx(buf, &tm);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
236
created = mktime(&tm);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
361
str2tmx(char *p, struct tm *tm)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
369
tm->tm_mon = i;
crypto/dist/ipsec-tools/src/racoon/backupsa.c
381
tm->tm_mday = str2num(p, len);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
382
if (tm->tm_mday == -1 || tm->tm_mday > 31)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
390
tm->tm_hour = str2num(p, len);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
391
if (tm->tm_hour == -1 || tm->tm_hour > 24)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
399
tm->tm_min = str2num(p, len);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
400
if (tm->tm_min == -1 || tm->tm_min > 60)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
408
tm->tm_sec = str2num(p, len);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
409
if (tm->tm_sec == -1 || tm->tm_sec > 60)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
417
tm->tm_year = str2num(p, len);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
418
if (tm->tm_year == -1 || tm->tm_year < 1900)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
420
tm->tm_year -= 1900;
crypto/dist/ipsec-tools/src/racoon/backupsa.c
448
struct tm tm;
crypto/dist/ipsec-tools/src/racoon/backupsa.c
453
memset(&tm, 0, sizeof(tm));
crypto/dist/ipsec-tools/src/racoon/backupsa.c
454
p = str2tmx(buf, &tm);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
456
t = mktime(&tm);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
86
static char *str2tmx(char *, struct tm *);
crypto/dist/ipsec-tools/src/racoon/backupsa.c
96
struct tm *tm;
crypto/dist/ipsec-tools/src/racoon/debugrm.c
127
struct tm *tm;
crypto/dist/ipsec-tools/src/racoon/debugrm.c
131
tm = localtime(&t);
crypto/dist/ipsec-tools/src/racoon/debugrm.c
132
len = strftime(buf, buflen, "%Y/%m/%d:%T ", tm);
crypto/dist/ipsec-tools/src/racoon/logger.c
179
struct tm *tm;
crypto/dist/ipsec-tools/src/racoon/logger.c
190
tm = localtime(&p->tbuf[j]);
crypto/dist/ipsec-tools/src/racoon/logger.c
191
strftime(ts, sizeof(ts), "%B %d %T", tm);
crypto/dist/ipsec-tools/src/racoon/plog.c
111
struct tm *tm;
crypto/dist/ipsec-tools/src/racoon/plog.c
114
tm = localtime(&t);
crypto/dist/ipsec-tools/src/racoon/plog.c
115
len = strftime(p, reslen, "%Y-%m-%d %T: ", tm);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
1081
tm = localtime(&pd->created);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
1082
strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %T", tm);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
1195
struct tm *tm;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
1206
tm = localtime(&sc->created);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
1207
strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %T", tm);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
985
struct tm *tm;
crypto/dist/ipsec-tools/src/setkey/setkey.c
1038
register struct tm *gmt, *loc;
crypto/dist/ipsec-tools/src/setkey/setkey.c
1039
struct tm sgmt;
games/adventure/wizard.c
61
struct tm *tptr;
games/dm/dm.c
168
static struct tm *ct;
games/hack/hack.unix.c
108
static struct tm *
games/hack/hack.unix.c
127
struct tm *lt = getlt();
games/hack/hack.unix.c
139
struct tm *lt = getlt();
games/hack/hack.unix.c
98
static struct tm *getlt(void);
games/monop/execute.c
59
typedef struct tm TIME;
games/pom/pom.c
213
struct tm *lt;
games/rogue/machdep.c
234
struct tm *t;
games/rogue/machdep.c
269
struct tm *t;
include/time.h
101
char *asctime(const struct tm *);
include/time.h
106
struct tm *gmtime(const time_t *) __RENAME(__gmtime50);
include/time.h
107
struct tm *localtime(const time_t *) __RENAME(__locatime50);
include/time.h
109
time_t mktime(struct tm *) __RENAME(__mktime50);
include/time.h
112
const struct tm * __restrict)
include/time.h
142
struct tm * __restrict);
include/time.h
147
struct tm *getdate(const char *);
include/time.h
187
char *asctime_r(const struct tm * __restrict, char * __restrict);
include/time.h
196
struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict)
include/time.h
198
struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict)
include/time.h
209
const struct tm * __restrict, locale_t)
include/time.h
216
time_t timegm(struct tm *) __RENAME(__timegm50);
include/time.h
226
time_t timeoff(struct tm *, long) __RENAME(__timeoff50);
include/time.h
227
time_t timelocal(struct tm *) __RENAME(__timelocal50);
include/time.h
228
struct tm *offtime(const time_t *, long) __RENAME(__offtime50);
include/time.h
231
struct tm *offtime_r(const time_t *, long, struct tm *) __RENAME(__offtime_r50);
include/time.h
232
struct tm *localtime_rz(timezone_t __restrict, const time_t * __restrict,
include/time.h
233
struct tm * __restrict) __RENAME(__localtime_rz50);
include/time.h
236
time_t mktime_z(timezone_t __restrict, struct tm * __restrict)
include/time.h
238
time_t timelocal_z(timezone_t __restrict, struct tm *)
include/time.h
249
const char * __restrict, const struct tm * __restrict, locale_t)
include/time.h
252
const char * __restrict, const struct tm * __restrict)
include/time.h
255
struct tm * __restrict, locale_t);
include/wchar.h
114
const struct tm * __restrict);
include/wchar.h
245
const struct tm * __restrict, locale_t);
include/wchar.h
96
struct tm;
lib/libc/compat/include/time.h
100
int32_t mktime_z(const timezone_t, struct tm *);
lib/libc/compat/include/time.h
101
int32_t timelocal_z(const timezone_t, struct tm *);
lib/libc/compat/include/time.h
51
struct tm * __restrict);
lib/libc/compat/include/time.h
63
struct tm *gmtime(const int32_t *);
lib/libc/compat/include/time.h
64
struct tm *localtime(const int32_t *);
lib/libc/compat/include/time.h
66
int32_t mktime(struct tm *);
lib/libc/compat/include/time.h
88
struct tm *gmtime_r(const int32_t * __restrict, struct tm * __restrict);
lib/libc/compat/include/time.h
89
struct tm *localtime_r(const int32_t * __restrict, struct tm * __restrict);
lib/libc/compat/include/time.h
90
struct tm *offtime(const int32_t *, long);
lib/libc/compat/include/time.h
91
struct tm *offtime_r(const int32_t *, long, struct tm *);
lib/libc/compat/include/time.h
92
int32_t timelocal(struct tm *);
lib/libc/compat/include/time.h
93
int32_t timegm(struct tm *);
lib/libc/compat/include/time.h
94
int32_t timeoff(struct tm *, long);
lib/libc/compat/include/time.h
97
struct tm *localtime_rz(const timezone_t, const int32_t * __restrict,
lib/libc/compat/include/time.h
98
struct tm * __restrict);
lib/libc/gen/syslog.c
86
struct tm tmnow;
lib/libc/locale/wcsftime.c
59
const wchar_t *format, const struct tm *timeptr)
lib/libc/locale/wcsftime.c
66
const wchar_t *format, const struct tm *timeptr, locale_t loc)
lib/libc/resolv/res_debug.c
1184
struct tm *mytime;
lib/libc/resolv/res_debug.c
1186
struct tm res;
lib/libc/time/asctime.c
157
asctime(const struct tm *timeptr)
lib/libc/time/asctime.c
167
struct tm mytm;
lib/libc/time/asctime.c
168
struct tm *tmp = localtime_rz(sp, timep, &mytm);
lib/libc/time/asctime.c
176
struct tm mytm;
lib/libc/time/asctime.c
177
struct tm *tmp = localtime_r(timep, &mytm);
lib/libc/time/asctime.c
186
struct tm *tmp = localtime(timep);
lib/libc/time/asctime.c
86
asctime_r(struct tm const *restrict timeptr, char *restrict buf)
lib/libc/time/getdate.c
171
struct tm tm;
lib/libc/time/getdate.c
173
memset(&tm, 0, sizeof(struct tm));
lib/libc/time/getdate.c
174
tm.tm_year = rtm.tm_year;
lib/libc/time/getdate.c
175
tm.tm_mon = rtm.tm_mon;
lib/libc/time/getdate.c
176
tm.tm_mday = 1;
lib/libc/time/getdate.c
177
mktime(&tm);
lib/libc/time/getdate.c
179
(rtm.tm_wday - tm.tm_wday + 7) % 7;
lib/libc/time/getdate.c
235
struct tm tm;
lib/libc/time/getdate.c
237
memset(&tm, 0, sizeof(struct tm));
lib/libc/time/getdate.c
238
tm.tm_year = rtm.tm_year;
lib/libc/time/getdate.c
239
tm.tm_mon = rtm.tm_mon;
lib/libc/time/getdate.c
240
tm.tm_mday = 1;
lib/libc/time/getdate.c
241
mktime(&tm);
lib/libc/time/getdate.c
242
rtm.tm_mday += (rtm.tm_wday - tm.tm_wday + 7) % 7;
lib/libc/time/getdate.c
61
struct tm *
lib/libc/time/getdate.c
67
static struct tm rtm, tmnow;
lib/libc/time/getdate.c
68
struct tm *tmp, *rtmp = &rtm;
lib/libc/time/localtime.c
2214
static struct tm *
lib/libc/time/localtime.c
2216
struct tm *const tmp)
lib/libc/time/localtime.c
2220
register struct tm * result;
lib/libc/time/localtime.c
2317
static struct tm *
lib/libc/time/localtime.c
2318
tm_multi(struct tm *tmp, ATTRIBUTE_MAYBE_UNUSED enum tm_multi which)
lib/libc/time/localtime.c
2330
struct tm *p = pthread_getspecific(tm_multi_key);
lib/libc/time/localtime.c
2347
struct tm *
lib/libc/time/localtime.c
2349
struct tm *__restrict tmp)
lib/libc/time/localtime.c
2355
static struct tm *
lib/libc/time/localtime.c
2356
localtime_tzset(time_t const *timep, struct tm *tmp, bool setname)
lib/libc/time/localtime.c
2371
struct tm *
lib/libc/time/localtime.c
2375
static struct tm tm;
lib/libc/time/localtime.c
2377
return localtime_tzset(timep, tm_multi(&tm, LOCALTIME_TM_MULTI), true);
lib/libc/time/localtime.c
2380
struct tm *
lib/libc/time/localtime.c
2381
localtime_r(const time_t *__restrict timep, struct tm *__restrict tmp)
lib/libc/time/localtime.c
2391
static struct tm *
lib/libc/time/localtime.c
2393
int_fast32_t offset, struct tm *tmp)
lib/libc/time/localtime.c
2395
register struct tm * result;
lib/libc/time/localtime.c
2417
struct tm *
lib/libc/time/localtime.c
2418
gmtime_r(time_t const *__restrict timep, struct tm *__restrict tmp)
lib/libc/time/localtime.c
2424
struct tm *
lib/libc/time/localtime.c
2428
static struct tm tm;
lib/libc/time/localtime.c
2430
return gmtime_r(timep, tm_multi(&tm, GMTIME_TM_MULTI));
lib/libc/time/localtime.c
2438
struct tm *
lib/libc/time/localtime.c
2439
offtime_r(time_t const *restrict timep, long offset, struct tm *restrict tmp)
lib/libc/time/localtime.c
2445
struct tm *
lib/libc/time/localtime.c
2449
static struct tm tm;
lib/libc/time/localtime.c
2451
return offtime_r(timep, offset, tm_multi(&tm, OFFTIME_TM_MULTI));
lib/libc/time/localtime.c
2476
static struct tm *
lib/libc/time/localtime.c
2478
const struct state *sp, struct tm *tmp)
lib/libc/time/localtime.c
2701
tmcomp(register const struct tm *const atmp,
lib/libc/time/localtime.c
2702
register const struct tm *const btmp)
lib/libc/time/localtime.c
2719
mktmcpy(struct tm *dest, struct tm const *src)
lib/libc/time/localtime.c
2734
time2sub(struct tm *const tmp,
lib/libc/time/localtime.c
2735
struct tm *funcp(struct state const *, time_t const *,
lib/libc/time/localtime.c
2736
int_fast32_t, struct tm *),
lib/libc/time/localtime.c
2752
struct tm yourtm, mytm;
lib/libc/time/localtime.c
2939
struct tm alttm;
lib/libc/time/localtime.c
3006
time2(struct tm * const tmp,
lib/libc/time/localtime.c
3007
struct tm *funcp(struct state const *, time_t const *,
lib/libc/time/localtime.c
3008
int_fast32_t, struct tm *),
lib/libc/time/localtime.c
3025
time1(struct tm *const tmp,
lib/libc/time/localtime.c
3026
struct tm *funcp(struct state const *, time_t const *,
lib/libc/time/localtime.c
3027
int_fast32_t, struct tm *),
lib/libc/time/localtime.c
3111
mktime_tzname(struct state *sp, struct tm *tmp, bool setname)
lib/libc/time/localtime.c
3125
mktime(struct tm *tmp)
lib/libc/time/localtime.c
3144
mktime_z(struct state *restrict sp, struct tm *restrict tmp)
lib/libc/time/localtime.c
3154
timelocal_z(const timezone_t sp, struct tm *const tmp)
lib/libc/time/localtime.c
3162
timelocal(struct tm *tmp)
lib/libc/time/localtime.c
3182
timeoff(struct tm *tmp, long offset)
lib/libc/time/localtime.c
3193
timegm(struct tm *tmp)
lib/libc/time/localtime.c
3196
struct tm tmcpy;
lib/libc/time/localtime.c
625
static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t,
lib/libc/time/localtime.c
626
struct tm *);
lib/libc/time/localtime.c
630
static struct tm *timesub(time_t const *, int_fast32_t, struct state const *,
lib/libc/time/localtime.c
631
struct tm *);
lib/libc/time/localtime.c
683
static struct tm tm;
lib/libc/time/private.h
1079
time_t timeoff(struct tm *, long);
lib/libc/time/private.h
1122
char *asctime_r(struct tm const *restrict, char *restrict);
lib/libc/time/private.h
805
DEPRECATED_IN_C23 char *asctime(struct tm const *);
lib/libc/time/private.h
808
char *asctime_r(struct tm const *restrict, char *restrict);
lib/libc/time/private.h
813
struct tm const *restrict);
lib/libc/time/private.h
816
struct tm const *restrict, locale_t);
lib/libc/time/private.h
818
struct tm *gmtime(time_t const *);
lib/libc/time/private.h
819
struct tm *gmtime_r(time_t const *restrict, struct tm *restrict);
lib/libc/time/private.h
820
struct tm *localtime(time_t const *);
lib/libc/time/private.h
821
struct tm *localtime_r(time_t const *restrict, struct tm *restrict);
lib/libc/time/private.h
822
time_t mktime(struct tm *);
lib/libc/time/private.h
824
time_t timegm(struct tm *);
lib/libc/time/private.h
839
time_t timegm(struct tm *);
lib/libc/time/private.h
843
extern char *asctime_r(struct tm const *restrict, char *restrict);
lib/libc/time/private.h
904
struct tm *offtime(time_t const *, long);
lib/libc/time/private.h
907
struct tm *offtime_r(time_t const *restrict, long, struct tm *restrict);
lib/libc/time/private.h
910
time_t timelocal(struct tm *);
lib/libc/time/private.h
950
struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
lib/libc/time/private.h
951
struct tm *restrict);
lib/libc/time/private.h
952
time_t mktime_z(timezone_t restrict, struct tm *restrict);
lib/libc/time/strftime.c
146
static char * _fmt(const timezone_t, const char *, const struct tm *, char *,
lib/libc/time/strftime.c
185
const char * __restrict format, const struct tm * __restrict t)
lib/libc/time/strftime.c
193
struct tm const *restrict t,
lib/libc/time/strftime.c
203
const char *const format, const struct tm *const t, locale_t loc)
lib/libc/time/strftime.c
232
_fmt(const timezone_t sp, const char *format, const struct tm *t, char *pt,
lib/libc/time/strftime.c
430
struct tm tm;
lib/libc/time/strftime.c
435
tm.tm_sec = t->tm_sec;
lib/libc/time/strftime.c
436
tm.tm_min = t->tm_min;
lib/libc/time/strftime.c
437
tm.tm_hour = t->tm_hour;
lib/libc/time/strftime.c
438
tm.tm_mday = t->tm_mday;
lib/libc/time/strftime.c
439
tm.tm_mon = t->tm_mon;
lib/libc/time/strftime.c
440
tm.tm_year = t->tm_year;
lib/libc/time/strftime.c
447
mkt = timeoff(&tm, t->TM_GMTOFF);
lib/libc/time/strftime.c
449
tm.tm_isdst = t->tm_isdst;
lib/libc/time/strftime.c
450
mkt = mktime_z(sp, &tm);
lib/libc/time/strftime.c
697
struct tm tmp;
lib/libc/time/strftime.c
789
struct tm const *restrict t)
lib/libc/time/strftime.c
809
const struct tm * __restrict t, locale_t loc)
lib/libc/time/strptime.c
121
fromzone(const unsigned char **bp, struct tm *tm, int mandatory)
lib/libc/time/strptime.c
140
tm->tm_isdst = 0; /* XXX */
lib/libc/time/strptime.c
142
tm->TM_GMTOFF = tzgetgmtoff(tz, tm->tm_isdst);
lib/libc/time/strptime.c
146
tm->TM_ZONE = NULL; /* XXX */
lib/libc/time/strptime.c
153
strptime(const char *buf, const char *fmt, struct tm *tm)
lib/libc/time/strptime.c
155
return strptime_l(buf, fmt, tm, _current_locale());
lib/libc/time/strptime.c
159
strptime_l(const char *buf, const char *fmt, struct tm *tm, locale_t loc)
lib/libc/time/strptime.c
251
new_fmt, tm);
lib/libc/time/strptime.c
260
bp = find_string(bp, &tm->tm_wday,
lib/libc/time/strptime.c
269
bp = find_string(bp, &tm->tm_mon,
lib/libc/time/strptime.c
282
i += tm->tm_year % 100;
lib/libc/time/strptime.c
284
tm->tm_year = i;
lib/libc/time/strptime.c
291
bp = conv_num(bp, &tm->tm_mday, 1, 31);
lib/libc/time/strptime.c
300
bp = conv_num(bp, &tm->tm_hour, 0, 23);
lib/libc/time/strptime.c
309
bp = conv_num(bp, &tm->tm_hour, 1, 12);
lib/libc/time/strptime.c
310
if (tm->tm_hour == 12)
lib/libc/time/strptime.c
311
tm->tm_hour = 0;
lib/libc/time/strptime.c
319
tm->tm_yday = i - 1;
lib/libc/time/strptime.c
325
bp = conv_num(bp, &tm->tm_min, 0, 59);
lib/libc/time/strptime.c
332
tm->tm_mon = i - 1;
lib/libc/time/strptime.c
340
if (HAVE_HOUR(state) && tm->tm_hour > 11)
lib/libc/time/strptime.c
342
tm->tm_hour += i * 12;
lib/libc/time/strptime.c
347
bp = conv_num(bp, &tm->tm_sec, 0, 61);
lib/libc/time/strptime.c
377
if (localtime_r(&sse, tm) == NULL)
lib/libc/time/strptime.c
403
bp = conv_num(bp, &tm->tm_wday, 0, 6);
lib/libc/time/strptime.c
410
tm->tm_wday = i % 7;
lib/libc/time/strptime.c
436
tm->tm_year = i - TM_YEAR_BASE;
lib/libc/time/strptime.c
447
i += (tm->tm_year / 100) * 100;
lib/libc/time/strptime.c
455
tm->tm_year = i;
lib/libc/time/strptime.c
501
tm->tm_isdst = 0;
lib/libc/time/strptime.c
503
tm->TM_GMTOFF = 0;
lib/libc/time/strptime.c
506
tm->TM_ZONE = utc;
lib/libc/time/strptime.c
526
tm->TM_GMTOFF =
lib/libc/time/strptime.c
529
tm->TM_GMTOFF = (int)*bp - 'A';
lib/libc/time/strptime.c
531
tm->TM_GMTOFF = 'M' - (int)*bp;
lib/libc/time/strptime.c
532
tm->TM_GMTOFF *= SECSPERHOUR;
lib/libc/time/strptime.c
535
tm->TM_ZONE = NULL; /* XXX */
lib/libc/time/strptime.c
543
tm->TM_GMTOFF = -timezone;
lib/libc/time/strptime.c
546
tm->TM_ZONE = NULL; /* XXX */
lib/libc/time/strptime.c
562
tm->TM_GMTOFF = (-5 - i) * SECSPERHOUR;
lib/libc/time/strptime.c
565
tm->TM_ZONE = __UNCONST(nast[i]);
lib/libc/time/strptime.c
572
tm->tm_isdst = 1;
lib/libc/time/strptime.c
574
tm->TM_GMTOFF = (-4 - i) * SECSPERHOUR;
lib/libc/time/strptime.c
577
tm->TM_ZONE = __UNCONST(nadt[i]);
lib/libc/time/strptime.c
589
tm->tm_isdst = i;
lib/libc/time/strptime.c
591
tm->TM_GMTOFF = -timezone;
lib/libc/time/strptime.c
594
tm->TM_ZONE = tzname[i];
lib/libc/time/strptime.c
603
if (fromzone(&bp, tm, mandatory))
lib/libc/time/strptime.c
646
tm->tm_isdst = 0; /* XXX */
lib/libc/time/strptime.c
648
tm->TM_GMTOFF = offs;
lib/libc/time/strptime.c
651
tm->TM_ZONE = NULL; /* XXX */
lib/libc/time/strptime.c
674
tm->tm_yday = start_of_month[isleap_sum(tm->tm_year,
lib/libc/time/strptime.c
675
TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
lib/libc/time/strptime.c
683
tm->tm_wday = day_offset;
lib/libc/time/strptime.c
686
tm->tm_yday = (7 -
lib/libc/time/strptime.c
687
first_wday_of(tm->tm_year + TM_YEAR_BASE) +
lib/libc/time/strptime.c
689
tm->tm_wday - day_offset;
lib/libc/time/strptime.c
700
isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
lib/libc/time/strptime.c
701
while (tm->tm_yday >= start_of_month[isleap][i])
lib/libc/time/strptime.c
705
tm->tm_yday -= start_of_month[isleap][12];
lib/libc/time/strptime.c
706
tm->tm_year++;
lib/libc/time/strptime.c
708
tm->tm_mon = i - 1;
lib/libc/time/strptime.c
714
isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
lib/libc/time/strptime.c
715
tm->tm_mday = tm->tm_yday -
lib/libc/time/strptime.c
716
start_of_month[isleap][tm->tm_mon] + 1;
lib/libc/time/strptime.c
722
week_offset = first_wday_of(tm->tm_year +
lib/libc/time/strptime.c
724
tm->tm_wday = (week_offset + tm->tm_yday) % 7;
lib/libc/time/zdump.c
1005
struct tm const *tm, time_t t, char const *ab, char const *zone_name)
lib/libc/time/zdump.c
1026
formatted_len = strftime(b, s, f_prefix_copy, tm);
lib/libc/time/zdump.c
1040
formatted_len = format_local_time(b, s, tm);
lib/libc/time/zdump.c
1045
int offlen = format_utc_offset(b, s, tm, t);
lib/libc/time/zdump.c
1066
= (tm->tm_isdst
lib/libc/time/zdump.c
1067
? snprintf(b, s, &"\t\t%d"[show_abbr], tm->tm_isdst)
lib/libc/time/zdump.c
1083
showtrans(char const *time_fmt, struct tm const *tm, time_t t, char const *ab,
lib/libc/time/zdump.c
1086
if (!tm) {
lib/libc/time/zdump.c
1094
while (! istrftime(buf, size, time_fmt, tm, t, ab, zone_name)) {
lib/libc/time/zdump.c
1105
abbr(struct tm const *tmp)
lib/libc/time/zdump.c
1164
dumptime(const struct tm *timeptr)
lib/libc/time/zdump.c
172
static struct tm *
lib/libc/time/zdump.c
173
gmtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
175
struct tm *r = gmtime(tp);
lib/libc/time/zdump.c
199
static struct tm *
lib/libc/time/zdump.c
200
localtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
202
struct tm *r = localtime(tp);
lib/libc/time/zdump.c
213
static struct tm *
lib/libc/time/zdump.c
214
localtime_rz(ATTRIBUTE_MAYBE_UNUSED timezone_t rz, time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
316
static struct tm *
lib/libc/time/zdump.c
317
my_gmtime_r(time_t *tp, struct tm *tmp)
lib/libc/time/zdump.c
355
saveabbr(char **buf, ptrdiff_t *bufalloc, struct tm const *tmp)
lib/libc/time/zdump.c
538
struct tm tm, newtm;
lib/libc/time/zdump.c
553
if (localtime_rz(tz, &t, &tm) == NULL
lib/libc/time/zdump.c
562
tm_ok = localtime_rz(tz, &t, &tm) != NULL;
lib/libc/time/zdump.c
564
ab = saveabbr(&abbrev, &abbrevsize, &tm);
lib/libc/time/zdump.c
566
showtrans("\nTZ=%f", &tm, t, ab, argv[i]);
lib/libc/time/zdump.c
567
showtrans("-\t-\t%Q", &tm, t, ab, argv[i]);
lib/libc/time/zdump.c
576
struct tm *newtmp = localtime_rz(tz, &newt, &newtm);
lib/libc/time/zdump.c
579
|| (ab && (delta(&newtm, &tm) != newt - t
lib/libc/time/zdump.c
580
|| newtm.tm_isdst != tm.tm_isdst
lib/libc/time/zdump.c
598
tm = newtm;
lib/libc/time/zdump.c
605
struct tm *tmp = localtime_rz(tz, &t, &tm);
lib/libc/time/zdump.c
675
struct tm lotm;
lib/libc/time/zdump.c
676
struct tm tm;
lib/libc/time/zdump.c
693
tm_ok = localtime_rz(tz, &t, &tm) != NULL;
lib/libc/time/zdump.c
696
|| (ab && tm.tm_isdst == lotm.tm_isdst
lib/libc/time/zdump.c
697
&& delta(&tm, &lotm) == t - lot
lib/libc/time/zdump.c
698
&& strcmp(abbr(&tm), ab) == 0))) {
lib/libc/time/zdump.c
701
lotm = tm;
lib/libc/time/zdump.c
712
delta_nonneg(struct tm *newp, struct tm *oldp)
lib/libc/time/zdump.c
731
delta(struct tm *newp, struct tm *oldp)
lib/libc/time/zdump.c
742
adjusted_yday(struct tm const *a, struct tm const *b)
lib/libc/time/zdump.c
759
gmtoff(struct tm const *a, ATTRIBUTE_MAYBE_UNUSED time_t *t,
lib/libc/time/zdump.c
760
ATTRIBUTE_MAYBE_UNUSED struct tm const *b)
lib/libc/time/zdump.c
765
struct tm tm;
lib/libc/time/zdump.c
767
b = my_gmtime_r(t, &tm);
lib/libc/time/zdump.c
785
struct tm * tmp;
lib/libc/time/zdump.c
786
struct tm * gmtmp;
lib/libc/time/zdump.c
787
struct tm tm, gmtm;
lib/libc/time/zdump.c
801
tmp = localtime_rz(tz, &t, &tm);
lib/libc/time/zdump.c
828
showextrema(timezone_t tz, char *zone, time_t lo, struct tm *lotmp, time_t hi)
lib/libc/time/zdump.c
830
struct tm localtm[2], gmtm[2];
lib/libc/time/zdump.c
85
static char const *abbr(struct tm const *);
lib/libc/time/zdump.c
86
static intmax_t delta(struct tm *, struct tm *);
lib/libc/time/zdump.c
87
static void dumptime(struct tm const *);
lib/libc/time/zdump.c
90
static void showextrema(timezone_t, char *, time_t, struct tm *, time_t);
lib/libc/time/zdump.c
91
static void showtrans(char const *, struct tm const *, time_t, char const *,
lib/libc/time/zdump.c
910
format_local_time(char *buf, ptrdiff_t size, struct tm const *tm)
lib/libc/time/zdump.c
912
int ss = tm->tm_sec, mm = tm->tm_min, hh = tm->tm_hour;
lib/libc/time/zdump.c
933
format_utc_offset(char *buf, ptrdiff_t size, struct tm const *tm, time_t t)
lib/libc/time/zdump.c
935
long off = gmtoff(tm, &t, NULL);
lib/libc/time/zdump.c
938
&& (*abbr(tm) == '-' || strcmp(abbr(tm), "zzz") == 0)))
lib/libcurses/ctrace.c
59
char *tf, *tm;
lib/libcurses/ctrace.c
61
tm = getenv("CURSES_TRACE_MASK");
lib/libcurses/ctrace.c
62
if (tm == NULL)
lib/libcurses/ctrace.c
65
tracemask = (int)strtol(tm, NULL, 0);
lib/libresolv/ns_date.c
55
struct tm tim;
lib/librumpuser/rumpfiber.c
142
int64_t tm, wakeup;
lib/librumpuser/rumpfiber.c
148
tm = now();
lib/librumpuser/rumpfiber.c
149
wakeup = tm + 1000; /* wake up in 1s max */
lib/librumpuser/rumpfiber.c
153
if (thread->wakeup_time <= tm) {
lib/librumpuser/rumpfiber.c
169
sl.tv_sec = (wakeup - tm) / 1000;
lib/librumpuser/rumpfiber.c
170
sl.tv_nsec = ((wakeup - tm) - 1000 * sl.tv_sec) * 1000000;
lib/libskey/skeylogin.c
247
struct tm *tm;
lib/libskey/skeylogin.c
253
tm = localtime(&now);
lib/libskey/skeylogin.c
254
strftime(tbuf, sizeof(tbuf), " %b %d,%Y %T", tm);
lib/libutil/parsedate.y
1146
struct tm local, *tm;
lib/libutil/parsedate.y
1165
if ((tm = localtime_r(now, &local)) == NULL)
lib/libutil/parsedate.y
1175
if ((tm = gmtime_r(&fake, &local)) == NULL)
lib/libutil/parsedate.y
1178
param.yyYear = tm->tm_year + 1900;
lib/libutil/parsedate.y
1179
param.yyMonth = tm->tm_mon + 1;
lib/libutil/parsedate.y
1180
param.yyDay = tm->tm_mday;
lib/libutil/parsedate.y
1297
Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
lib/libutil/parsedate.y
170
struct tm tmbuf;
lib/libutil/parsedate.y
793
struct tm tm = {.tm_sec = 0};
lib/libutil/parsedate.y
794
struct tm otm;
lib/libutil/parsedate.y
797
tm.tm_sec = Seconds;
lib/libutil/parsedate.y
798
tm.tm_min = Minutes;
lib/libutil/parsedate.y
799
tm.tm_hour = ((Hours == 12 && Meridian != MER24) ? 0 : Hours) +
lib/libutil/parsedate.y
802
tm.tm_mday = Day;
lib/libutil/parsedate.y
803
tm.tm_mon = Month - 1;
lib/libutil/parsedate.y
804
tm.tm_year = Year - 1900;
lib/libutil/parsedate.y
805
if ((time_t)tm.tm_year + 1900 != Year) {
lib/libutil/parsedate.y
811
case DSTon: tm.tm_isdst = 1; break;
lib/libutil/parsedate.y
812
case DSToff: tm.tm_isdst = 0; break;
lib/libutil/parsedate.y
813
default: tm.tm_isdst = -1; break;
lib/libutil/parsedate.y
815
otm = tm;
lib/libutil/parsedate.y
816
result = mktime(&tm);
lib/libutil/parsedate.y
819
tm.tm_isdst = 0; /* hence cannot be summer time */
lib/libutil/parsedate.y
820
otm = tm;
lib/libutil/parsedate.y
822
result = mktime_z(NULL, &tm);
lib/libutil/parsedate.y
841
#define TM_NE(fld) (otm.tm_ ## fld != tm.tm_ ## fld)
lib/libutil/parsedate.y
862
struct tm tm;
lib/libutil/parsedate.y
864
if (localtime_r(&Start, &tm) == NULL)
lib/libutil/parsedate.y
866
StartDay = (tm.tm_hour + 1) % 24;
lib/libutil/parsedate.y
868
if (localtime_r(&Future, &tm) == NULL)
lib/libutil/parsedate.y
870
FutureDay = (tm.tm_hour + 1) % 24;
lib/libutil/parsedate.y
883
struct tm tm;
lib/libutil/parsedate.y
888
if (localtime_r(&now, &tm) == NULL)
lib/libutil/parsedate.y
897
change = SECSPERDAY * ((DayNumber - tm.tm_wday + 7) % 7);
lib/libutil/parsedate.y
919
struct tm tm;
lib/libutil/parsedate.y
936
if (localtime_r(&Start, &tm) == NULL)
lib/libutil/parsedate.y
939
if (RelMonth >= LLONG_MAX - 12*((time_t)tm.tm_year + 1900) - tm.tm_mon) {
lib/libutil/parsedate.y
943
Month = 12 * (tm.tm_year + 1900) + tm.tm_mon + RelMonth;
lib/libutil/parsedate.y
944
tm.tm_year = (Month / 12) - 1900;
lib/libutil/parsedate.y
946
if (((time_t)tm.tm_year + 1900) != Month/12) {
lib/libutil/parsedate.y
950
tm.tm_mon = Month % 12;
lib/libutil/parsedate.y
951
if (tm.tm_mday > (Day = DaysInMonth[tm.tm_mon] +
lib/libutil/parsedate.y
952
((tm.tm_mon==1) ? isleap(tm.tm_year) : 0)))
lib/libutil/parsedate.y
953
tm.tm_mday = Day;
lib/libutil/parsedate.y
955
Then = mktime(&tm);
libexec/ftpd/cmds.c
590
struct tm *t;
libexec/ftpd/conf.c
519
struct tm *t;
libexec/ftpd/ftpcmd.y
834
struct tm *t;
libexec/httpd/bozohttpd.c
1995
struct tm *tm;
libexec/httpd/bozohttpd.c
1997
tm = gmtime(&sbp->st_mtime);
libexec/httpd/bozohttpd.c
1999
"%a, %d %b %Y %H:%M:%S GMT", tm);
libexec/httpd/bozohttpd.c
271
struct tm *tm;
libexec/httpd/bozohttpd.c
276
tm = gmtime(&now); /* HTTP/1.1 spec rev 06 sez GMT only */
libexec/httpd/bozohttpd.c
277
strftime(date, datelen, "%a, %d %b %Y %H:%M:%S GMT", tm);
libexec/httpd/bozohttpd.c
975
struct tm tm;
libexec/httpd/bozohttpd.c
977
if ((remainder = strptime(val, "%a, %d %b %Y %T GMT", &tm)) == NULL &&
libexec/httpd/bozohttpd.c
978
(remainder = strptime(val, "%a, %d-%b-%y %T GMT", &tm)) == NULL &&
libexec/httpd/bozohttpd.c
979
(remainder = strptime(val, "%a %b %d %T %Y", &tm)) == NULL)
libexec/httpd/bozohttpd.c
985
*timestamp = timegm(&tm);
libexec/rpc.rstatd/rstat_proc.c
183
struct timeval tm;
libexec/rpc.rstatd/rstat_proc.c
247
gettimeofday(&tm, (struct timezone *) 0);
libexec/rpc.rstatd/rstat_proc.c
248
stats_all.s3.v_intr -= hz*(tm.tv_sec - btm.tv_sec) +
libexec/rpc.rstatd/rstat_proc.c
249
hz*(tm.tv_usec - (suseconds_t)(btm.tv_nsec / 1000))/1000000;
libexec/rpc.rstatd/rstat_proc.c
277
stats_all.s3.curtime.tv_sec = tm.tv_sec;
libexec/rpc.rstatd/rstat_proc.c
278
stats_all.s3.curtime.tv_usec = tm.tv_usec;
libexec/talkd/announce.c
98
struct tm *localclock;
sbin/dkctl/dkctl.c
413
time_t tm;
sbin/dkctl/dkctl.c
436
tm = dbs->dbs_failedat.tv_sec;
sbin/dkctl/dkctl.c
439
ctime(&tm));
sbin/dmesg/dmesg.c
354
struct tm tm;
sbin/dmesg/dmesg.c
364
if (localtime_r(&t, &tm) != NULL) {
sbin/dmesg/dmesg.c
367
&tm);
sbin/dump/optr.c
217
struct tm tm_time;
sbin/dump/unctime.c
55
struct tm then;
sbin/fsdb/fsdb.c
1612
struct tm t;
sbin/mount_msdos/mount_msdos.c
182
tm = localtime(&now);
sbin/mount_msdos/mount_msdos.c
183
args->gmtoff = tm->tm_gmtoff;
sbin/mount_msdos/mount_msdos.c
91
struct tm *tm;
sbin/mount_nilfs/mount_nilfs.c
104
struct tm *tm;
sbin/mount_nilfs/mount_nilfs.c
142
tm = localtime(&now);
sbin/mount_nilfs/mount_nilfs.c
143
args->gmtoff = tm->tm_gmtoff;
sbin/mount_udf/mount_udf.c
104
struct tm *tm;
sbin/mount_udf/mount_udf.c
165
tm = localtime(&now);
sbin/mount_udf/mount_udf.c
166
args->gmtoff = tm->tm_gmtoff;
sbin/newfs_msdos/mkfs_msdos.c
253
struct tm *tm;
sbin/newfs_msdos/mkfs_msdos.c
636
tm = gmtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
640
tm = localtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
708
x = (((u_int)(1 + tm->tm_mon) << 8 |
sbin/newfs_msdos/mkfs_msdos.c
709
(u_int)tm->tm_mday) +
sbin/newfs_msdos/mkfs_msdos.c
710
((u_int)tm->tm_sec << 8 |
sbin/newfs_msdos/mkfs_msdos.c
712
((u_int)(1900 + tm->tm_year) +
sbin/newfs_msdos/mkfs_msdos.c
713
((u_int)tm->tm_hour << 8 |
sbin/newfs_msdos/mkfs_msdos.c
714
(u_int)tm->tm_min));
sbin/newfs_msdos/mkfs_msdos.c
749
x = (u_int)tm->tm_hour << 11 |
sbin/newfs_msdos/mkfs_msdos.c
750
(u_int)tm->tm_min << 5 |
sbin/newfs_msdos/mkfs_msdos.c
751
(u_int)tm->tm_sec >> 1;
sbin/newfs_msdos/mkfs_msdos.c
753
x = (u_int)(tm->tm_year - 80) << 9 |
sbin/newfs_msdos/mkfs_msdos.c
754
(u_int)(tm->tm_mon + 1) << 5 |
sbin/newfs_msdos/mkfs_msdos.c
755
(u_int)tm->tm_mday;
sbin/newfs_udf/newfs_udf.c
142
struct tm *tm;
sbin/newfs_udf/newfs_udf.c
174
tm = localtime(&now);
sbin/newfs_udf/newfs_udf.c
175
context.gmtoff = tm->tm_gmtoff;
sbin/newfs_udf/udf_core.c
913
struct tm tm;
sbin/newfs_udf/udf_core.c
917
gmtime_r(×pec->tv_sec, &tm);
sbin/newfs_udf/udf_core.c
929
timestamp->year = udf_rw16(tm.tm_year + 1900);
sbin/newfs_udf/udf_core.c
930
timestamp->month = tm.tm_mon + 1; /* `tm' uses 0..11 for months */
sbin/newfs_udf/udf_core.c
931
timestamp->day = tm.tm_mday;
sbin/newfs_udf/udf_core.c
932
timestamp->hour = tm.tm_hour;
sbin/newfs_udf/udf_core.c
933
timestamp->minute = tm.tm_min;
sbin/newfs_udf/udf_core.c
934
timestamp->second = tm.tm_sec;
sbin/routed/parms.c
443
struct tm tm;
sbin/routed/parms.c
456
memset(&tm, 0, sizeof(tm));
sbin/routed/parms.c
458
ptr = strptime(buf, "%y/%m/%d@%H:%M\n", &tm);
sbin/routed/parms.c
465
&tm.tm_year, &tm.tm_mon, &tm.tm_mday,
sbin/routed/parms.c
466
&tm.tm_hour, &tm.tm_min)
sbin/routed/parms.c
467
|| tm.tm_mon < 1 || tm.tm_mon > 12
sbin/routed/parms.c
468
|| tm.tm_mday < 1 || tm.tm_mday > 31) {
sbin/routed/parms.c
472
tm.tm_mon--;
sbin/routed/parms.c
473
if (tm.tm_year <= 37) /* assume small years are in the */
sbin/routed/parms.c
474
tm.tm_year += 100; /* 3rd millenium */
sbin/routed/parms.c
477
if ((*tp = mktime(&tm)) == -1) {
sbin/shutdown/shutdown.c
443
struct tm *lt;
share/examples/puffs/pgfs/pgfs_subs.c
199
struct tm tm_store;
share/examples/puffs/pgfs/pgfs_subs.c
200
struct tm *tm;
share/examples/puffs/pgfs/pgfs_subs.c
202
tm = gmtime_r(&tv->tv_sec, &tm_store);
share/examples/puffs/pgfs/pgfs_subs.c
203
if (tm == NULL) {
share/examples/puffs/pgfs/pgfs_subs.c
207
strftime(buf1, sizeof(buf1), "%Y%m%dT%H%M%S", tm);
share/examples/refuse/ian/libfetch/ftp.c
406
struct tm tm;
share/examples/refuse/ian/libfetch/ftp.c
458
&tm.tm_year, &tm.tm_mon, &tm.tm_mday,
share/examples/refuse/ian/libfetch/ftp.c
459
&tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
share/examples/refuse/ian/libfetch/ftp.c
463
tm.tm_mon--;
share/examples/refuse/ian/libfetch/ftp.c
464
tm.tm_year -= 1900;
share/examples/refuse/ian/libfetch/ftp.c
465
tm.tm_isdst = -1;
share/examples/refuse/ian/libfetch/ftp.c
466
t = timegm(&tm);
share/examples/refuse/ian/libfetch/ftp.c
473
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
share/examples/refuse/ian/libfetch/ftp.c
474
tm.tm_hour, tm.tm_min, tm.tm_sec));
share/examples/refuse/ian/libfetch/http.c
482
struct tm tm;
share/examples/refuse/ian/libfetch/http.c
486
r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
share/examples/refuse/ian/libfetch/http.c
493
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
share/examples/refuse/ian/libfetch/http.c
494
tm.tm_hour, tm.tm_min, tm.tm_sec));
share/examples/refuse/ian/libfetch/http.c
495
*mtime = timegm(&tm);
sys/arch/amiga/dev/grf_cl.c
1722
struct grfcltext_mode *tm = (struct grfcltext_mode *) gp->g_data;
sys/arch/amiga/dev/grf_cl.c
1734
c = (unsigned char *) (fb) + (32 * tm->fdstart);
sys/arch/amiga/dev/grf_cl.c
1735
f = tm->fdata;
sys/arch/amiga/dev/grf_cl.c
1736
for (z = tm->fdstart; z <= tm->fdend; z++, c += (32 - tm->fy))
sys/arch/amiga/dev/grf_cl.c
1737
for (y = 0; y < tm->fy; y++)
sys/arch/amiga/dev/grf_cl.c
1743
cl_memset(fb, 0x07, tm->cols * tm->rows * 3);
sys/arch/amiga/dev/grf_cl.c
1745
cl_memset(fb, 0x20, tm->cols * tm->rows * 3);
sys/arch/amiga/dev/grf_cl.c
1749
c = (unsigned char *) (fb) + (tm->cols - 16);
sys/arch/amiga/dev/grf_cv.c
1703
struct grfcvtext_mode *tm = (struct grfcvtext_mode *)gp->g_data;
sys/arch/amiga/dev/grf_cv.c
1723
for (z = 0; z < tm->cols * tm->rows * 3; z++) {
sys/arch/amiga/dev/grf_cv.c
1730
c = (volatile unsigned char *)fb + (32 * tm->fdstart * 4 + 2);
sys/arch/amiga/dev/grf_cv.c
1731
f = tm->fdata;
sys/arch/amiga/dev/grf_cv.c
1732
for (z = tm->fdstart; z <= tm->fdend; z++, c += (32 - tm->fy) * 4)
sys/arch/amiga/dev/grf_cv.c
1733
for (y = 0; y < tm->fy; y++) {
sys/arch/amiga/dev/grf_cv.c
1739
c = (volatile unsigned char *)fb + (tm->cols - 6) * 4;
sys/arch/amiga/dev/grf_cv3d.c
1578
struct grfcv3dtext_mode *tm = (struct grfcv3dtext_mode *)gp->g_data;
sys/arch/amiga/dev/grf_cv3d.c
1598
for (z = 0; z < tm->cols * tm->rows * 3; z++) {
sys/arch/amiga/dev/grf_cv3d.c
1605
c = (volatile unsigned char *)fb + (32 * tm->fdstart * 4 + 2);
sys/arch/amiga/dev/grf_cv3d.c
1606
f = tm->fdata;
sys/arch/amiga/dev/grf_cv3d.c
1607
for (z = tm->fdstart; z <= tm->fdend; z++, c += (32 - tm->fy) * 4)
sys/arch/amiga/dev/grf_cv3d.c
1608
for (y = 0; y < tm->fy; y++) {
sys/arch/amiga/dev/grf_cv3d.c
1614
c = (volatile unsigned char *)fb + (tm->cols - 9) * 4;
sys/arch/amiga/dev/grf_et.c
1484
struct grfettext_mode *tm = (struct grfettext_mode *) gp->g_data;
sys/arch/amiga/dev/grf_et.c
1499
c = fb + (32 * tm->fdstart);
sys/arch/amiga/dev/grf_et.c
1500
f = tm->fdata;
sys/arch/amiga/dev/grf_et.c
1501
for (z = tm->fdstart; z <= tm->fdend; z++, c += (32 - tm->fy))
sys/arch/amiga/dev/grf_et.c
1502
for (y = 0; y < tm->fy; y++)
sys/arch/amiga/dev/grf_et.c
1508
et_memset(fb, 0x07, tm->cols * tm->rows * 3);
sys/arch/amiga/dev/grf_et.c
1510
et_memset(fb, 0x20, tm->cols * tm->rows * 3);
sys/arch/amiga/dev/grf_et.c
1514
c = fb + (tm->cols - 16);
sys/arch/arm/arm/efi_runtime.c
120
arm_efirt_gettime(struct efi_tm *tm, struct efi_tmcap *tmcap)
sys/arch/arm/arm/efi_runtime.c
130
status = RT->rt_gettime(tm, tmcap);
sys/arch/arm/arm/efi_runtime.c
139
arm_efirt_settime(struct efi_tm *tm)
sys/arch/arm/arm/efi_runtime.c
149
status = RT->rt_settime(tm);
sys/arch/arm/fdt/arm_fdt.c
302
struct efi_tm tm;
sys/arch/arm/fdt/arm_fdt.c
323
if (arm_efirt_gettime(&tm, NULL) == 0) {
sys/arch/arm/fdt/arm_fdt.c
334
struct efi_tm tm;
sys/arch/arm/fdt/arm_fdt.c
337
status = arm_efirt_gettime(&tm, NULL);
sys/arch/arm/fdt/arm_fdt.c
341
dt->dt_year = tm.tm_year;
sys/arch/arm/fdt/arm_fdt.c
342
dt->dt_mon = tm.tm_mon;
sys/arch/arm/fdt/arm_fdt.c
343
dt->dt_day = tm.tm_mday;
sys/arch/arm/fdt/arm_fdt.c
345
dt->dt_hour = tm.tm_hour;
sys/arch/arm/fdt/arm_fdt.c
346
dt->dt_min = tm.tm_min;
sys/arch/arm/fdt/arm_fdt.c
347
dt->dt_sec = tm.tm_sec;
sys/arch/arm/fdt/arm_fdt.c
355
struct efi_tm tm;
sys/arch/arm/fdt/arm_fdt.c
358
memset(&tm, 0, sizeof(tm));
sys/arch/arm/fdt/arm_fdt.c
359
tm.tm_year = dt->dt_year;
sys/arch/arm/fdt/arm_fdt.c
360
tm.tm_mon = dt->dt_mon;
sys/arch/arm/fdt/arm_fdt.c
361
tm.tm_mday = dt->dt_day;
sys/arch/arm/fdt/arm_fdt.c
362
tm.tm_hour = dt->dt_hour;
sys/arch/arm/fdt/arm_fdt.c
363
tm.tm_min = dt->dt_min;
sys/arch/arm/fdt/arm_fdt.c
364
tm.tm_sec = dt->dt_sec;
sys/arch/arm/fdt/arm_fdt.c
366
status = arm_efirt_settime(&tm);
sys/arch/arm/iomd/iomd_clock.c
310
u_int tm;
sys/arch/arm/iomd/iomd_clock.c
320
tm = bus_space_read_1(clock_sc->sc_iot, clock_sc->sc_ioh,
sys/arch/arm/iomd/iomd_clock.c
322
tm += (bus_space_read_1(clock_sc->sc_iot, clock_sc->sc_ioh,
sys/arch/arm/iomd/iomd_clock.c
327
tm = timer0_count - tm;
sys/arch/arm/iomd/iomd_clock.c
330
(tm < timer0_lastcount || (!timer0_ticked && false/* XXX: clkintr_pending */))) {
sys/arch/arm/iomd/iomd_clock.c
335
timer0_lastcount = tm;
sys/arch/arm/iomd/iomd_clock.c
336
tm += timer0_offset;
sys/arch/arm/iomd/iomd_clock.c
339
return tm;
sys/arch/hp300/stand/mkboot/mkboot.c
289
struct tm *tm;
sys/arch/hp300/stand/mkboot/mkboot.c
292
tm = gmtime(&repro_epoch);
sys/arch/hp300/stand/mkboot/mkboot.c
295
tm = localtime(&statb.st_ctime);
sys/arch/hp300/stand/mkboot/mkboot.c
297
*toc++ = bintobcd(tm->tm_mon + 1);
sys/arch/hp300/stand/mkboot/mkboot.c
298
*toc++ = bintobcd(tm->tm_mday);
sys/arch/hp300/stand/mkboot/mkboot.c
299
*toc++ = bintobcd(tm->tm_year);
sys/arch/hp300/stand/mkboot/mkboot.c
300
*toc++ = bintobcd(tm->tm_hour);
sys/arch/hp300/stand/mkboot/mkboot.c
301
*toc++ = bintobcd(tm->tm_min);
sys/arch/hp300/stand/mkboot/mkboot.c
302
*toc = bintobcd(tm->tm_sec);
sys/arch/hpc/stand/hpcboot/hpcmenu.h
62
TEXTMETRIC tm;
sys/arch/hpc/stand/hpcboot/hpcmenu.h
64
GetTextMetrics(hdc, &tm);
sys/arch/hpc/stand/hpcboot/hpcmenu.h
65
_cx_char = tm.tmAveCharWidth;
sys/arch/hpc/stand/hpcboot/hpcmenu.h
66
_cy_char = tm.tmHeight + tm.tmExternalLeading;
sys/arch/hppa/spmath/fpudispatch.c
659
unsigned rm1, rm2, tm, ra, ta; /* operands */
sys/arch/hppa/spmath/fpudispatch.c
679
tm = extru(ir, fptmpos, 5) * sizeof(double)/sizeof(unsigned);
sys/arch/hppa/spmath/fpudispatch.c
680
if (tm == 0)
sys/arch/hppa/spmath/fpudispatch.c
716
fpregs[tm] = mtmp.ints.i1;
sys/arch/hppa/spmath/fpudispatch.c
717
fpregs[tm+1] = mtmp.ints.i2;
sys/arch/hppa/spmath/fpudispatch.c
735
tm = (extru(ir,fptmpos,4) | 0x10 ) << 1; /* get offset */
sys/arch/hppa/spmath/fpudispatch.c
736
tm |= extru(ir,fptmpos-4,1); /* add right word offset */
sys/arch/hppa/spmath/fpudispatch.c
769
fpregs[tm] = mtmp.ints.i1;
sys/arch/hppa/spmath/fpudispatch.c
783
unsigned rm1, rm2, tm, ra, ta; /* operands */
sys/arch/hppa/spmath/fpudispatch.c
803
tm = extru(ir, fptmpos, 5) * sizeof(double)/sizeof(unsigned);
sys/arch/hppa/spmath/fpudispatch.c
804
if (tm == 0)
sys/arch/hppa/spmath/fpudispatch.c
823
fpregs[tm] = mtmp.ints.i1;
sys/arch/hppa/spmath/fpudispatch.c
824
fpregs[tm+1] = mtmp.ints.i2;
sys/arch/hppa/spmath/fpudispatch.c
842
tm = (extru(ir,fptmpos,4) | 0x10 ) << 1; /* get offset */
sys/arch/hppa/spmath/fpudispatch.c
843
tm |= extru(ir,fptmpos-4,1); /* add right word offset */
sys/arch/hppa/spmath/fpudispatch.c
861
fpregs[tm] = mtmp.ints.i1;
sys/arch/hppa/stand/mkboot/mkboot.c
417
struct tm *tm;
sys/arch/hppa/stand/mkboot/mkboot.c
420
tm = gmtime(&repro_epoch);
sys/arch/hppa/stand/mkboot/mkboot.c
423
tm = localtime(&statb.st_ctime);
sys/arch/hppa/stand/mkboot/mkboot.c
425
tm->tm_year %= 100;
sys/arch/hppa/stand/mkboot/mkboot.c
426
*toc = (tm->tm_year / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
427
*toc++ |= tm->tm_year % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
428
*toc = ((tm->tm_mon+1) / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
429
*toc++ |= (tm->tm_mon+1) % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
430
*toc = (tm->tm_mday / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
431
*toc++ |= tm->tm_mday % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
432
*toc = (tm->tm_hour / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
433
*toc++ |= tm->tm_hour % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
434
*toc = (tm->tm_min / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
435
*toc++ |= tm->tm_min % 10;
sys/arch/hppa/stand/mkboot/mkboot.c
436
*toc = (tm->tm_sec / 10) << 4;
sys/arch/hppa/stand/mkboot/mkboot.c
437
*toc |= tm->tm_sec % 10;
sys/arch/ia64/ia64/efi.c
123
efi_get_time(struct efi_tm *tm)
sys/arch/ia64/ia64/efi.c
126
efi_runtime->rt_gettime(tm, NULL);
sys/arch/ia64/ia64/efi.c
158
efi_set_time(struct efi_tm *tm)
sys/arch/ia64/ia64/efi.c
161
return (efi_runtime->rt_settime(tm));
sys/arch/x86/x86/efi_machdep.c
879
efi_runtime_gettime(struct efi_tm *tm, struct efi_tmcap *tmcap)
sys/arch/x86/x86/efi_machdep.c
888
status = efi_rt.rt_gettime(tm, tmcap);
sys/arch/x86/x86/efi_machdep.c
900
efi_runtime_settime(struct efi_tm *tm)
sys/arch/x86/x86/efi_machdep.c
909
status = efi_rt.rt_settime(tm);
sys/dev/ic/tulip.c
3196
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
3199
if ((tm = ife->ifm_aux) != NULL) {
sys/dev/ic/tulip.c
3201
kmem_free(tm, sizeof(*tm));
sys/dev/ic/tulip.c
3549
struct tulip_21x4x_media *tm = ife->ifm_aux;
sys/dev/ic/tulip.c
3557
sc->sc_opmode |= OPMODE_MBO | tm->tm_opmode;
sys/dev/ic/tulip.c
3666
struct tulip_21x4x_media *tm = ife->ifm_aux;
sys/dev/ic/tulip.c
3673
for (i = 0; i < tm->tm_reset_length; i++) {
sys/dev/ic/tulip.c
3675
TULIP_WRITE(sc, CSR_GPP, sc->sc_srom[tm->tm_reset_offset + i]);
sys/dev/ic/tulip.c
3679
for (i = 0; i < tm->tm_gp_length; i++) {
sys/dev/ic/tulip.c
3681
TULIP_WRITE(sc, CSR_GPP, sc->sc_srom[tm->tm_gp_offset + i]);
sys/dev/ic/tulip.c
3685
if (tm->tm_reset_length == 0 && tm->tm_gp_length == 0) {
sys/dev/ic/tulip.c
3700
struct tulip_21x4x_media *tm = ife->ifm_aux;
sys/dev/ic/tulip.c
3704
cp = &sc->sc_srom[tm->tm_reset_offset];
sys/dev/ic/tulip.c
3705
for (i = 0; i < tm->tm_reset_length; i++, cp += 2) {
sys/dev/ic/tulip.c
3710
cp = &sc->sc_srom[tm->tm_gp_offset];
sys/dev/ic/tulip.c
3711
for (i = 0; i < tm->tm_gp_length; i++, cp += 2) {
sys/dev/ic/tulip.c
3717
if (tm->tm_reset_length == 0 && tm->tm_gp_length == 0) {
sys/dev/ic/tulip.c
3978
const struct tulip_srom_to_ifmedia *tsti, struct tulip_21x4x_media *tm)
sys/dev/ic/tulip.c
3981
tm->tm_name = tsti->tsti_name;
sys/dev/ic/tulip.c
3982
tm->tm_opmode = tsti->tsti_opmode;
sys/dev/ic/tulip.c
3989
tm->tm_sia = tsti->tsti_21040; /* struct assignment */
sys/dev/ic/tulip.c
3993
tm->tm_sia = tsti->tsti_21041; /* struct assignment */
sys/dev/ic/tulip.c
4003
tm->tm_sia = tsti->tsti_21142; /* struct assignment */
sys/dev/ic/tulip.c
4018
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4024
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4025
tlp_srom_media_info(sc, tsti, tm);
sys/dev/ic/tulip.c
4026
tm->tm_type = type;
sys/dev/ic/tulip.c
4027
tm->tm_get = get;
sys/dev/ic/tulip.c
4028
tm->tm_set = set;
sys/dev/ic/tulip.c
4032
tsti->tsti_options, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
4040
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4047
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4048
if (tm == NULL) {
sys/dev/ic/tulip.c
4054
} else if (tm->tm_type != TULIP_ROM_MB_21140_MII &&
sys/dev/ic/tulip.c
4055
tm->tm_type != TULIP_ROM_MB_21142_MII) {
sys/dev/ic/tulip.c
4056
PRINT(tm->tm_name);
sys/dev/ic/tulip.c
4108
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4112
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4164
if (tm->tm_type == TULIP_ROM_MB_21143_SYM &&
sys/dev/ic/tulip.c
4165
tm->tm_actmask != 0) {
sys/dev/ic/tulip.c
4169
tm->tm_actmask) == tm->tm_actdata)
sys/dev/ic/tulip.c
4203
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4224
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4225
if (tm == NULL)
sys/dev/ic/tulip.c
4228
tm->tm_siaconn &= siaconn;
sys/dev/ic/tulip.c
4229
tm->tm_siatxrx &= siatxrx;
sys/dev/ic/tulip.c
4230
tm->tm_siagen &= siagen;
sys/dev/ic/tulip.c
4244
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4246
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4265
TULIP_WRITE(sc, CSR_SIATXRX, tm->tm_siatxrx);
sys/dev/ic/tulip.c
4270
TULIP_WRITE(sc, CSR_SIAGEN, tm->tm_siagen | tm->tm_gpctl);
sys/dev/ic/tulip.c
4271
TULIP_WRITE(sc, CSR_SIAGEN, tm->tm_siagen | tm->tm_gpdata);
sys/dev/ic/tulip.c
4274
TULIP_WRITE(sc, CSR_SIAGEN, tm->tm_siagen);
sys/dev/ic/tulip.c
4277
TULIP_WRITE(sc, CSR_SIACONN, tm->tm_siaconn);
sys/dev/ic/tulip.c
4283
sc->sc_opmode = (sc->sc_opmode & ~OPMODE_MEDIA_BITS) | tm->tm_opmode;
sys/dev/ic/tulip.c
4298
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4301
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4305
if (tm->tm_actmask != 0) {
sys/dev/ic/tulip.c
4307
if (TULIP_ISSET(sc, CSR_GPP, tm->tm_actmask) ==
sys/dev/ic/tulip.c
4308
tm->tm_actdata)
sys/dev/ic/tulip.c
4335
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4338
tm = ife->ifm_aux;
sys/dev/ic/tulip.c
4351
TULIP_WRITE(sc, CSR_GPP, tm->tm_gpdata);
sys/dev/ic/tulip.c
4357
sc->sc_opmode = (sc->sc_opmode & ~OPMODE_MEDIA_BITS) | tm->tm_opmode;
sys/dev/ic/tulip.c
4396
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4406
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4407
tm->tm_name = "manual";
sys/dev/ic/tulip.c
4408
tm->tm_opmode = 0;
sys/dev/ic/tulip.c
4409
tm->tm_siaconn = SIACONN_21040_EXTSIA;
sys/dev/ic/tulip.c
4410
tm->tm_siatxrx = SIATXRX_21040_EXTSIA;
sys/dev/ic/tulip.c
4411
tm->tm_siagen = SIAGEN_21040_EXTSIA;
sys/dev/ic/tulip.c
4413
IFM_MAKEWORD(IFM_ETHER, IFM_MANUAL, 0, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
4474
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4521
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4530
tlp_srom_media_info(sc, tsti, tm);
sys/dev/ic/tulip.c
4537
tm->tm_siaconn = TULIP_ROM_GETW(sc->sc_srom,
sys/dev/ic/tulip.c
4539
tm->tm_siatxrx = TULIP_ROM_GETW(sc->sc_srom,
sys/dev/ic/tulip.c
4541
tm->tm_siagen = TULIP_ROM_GETW(sc->sc_srom,
sys/dev/ic/tulip.c
4547
tsti->tsti_options, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
4554
free(tm, M_DEVBUF);
sys/dev/ic/tulip.c
4631
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
4729
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4731
tm->tm_type = TULIP_ROM_MB_21140_GPR;
sys/dev/ic/tulip.c
4732
tm->tm_get = tlp_21140_gpio_get;
sys/dev/ic/tulip.c
4733
tm->tm_set = tlp_21140_gpio_set;
sys/dev/ic/tulip.c
4740
free(tm, M_DEVBUF);
sys/dev/ic/tulip.c
4745
tlp_srom_media_info(sc, tsti, tm);
sys/dev/ic/tulip.c
4748
tm->tm_gpdata = cp[1];
sys/dev/ic/tulip.c
4756
tm->tm_opmode &= OPMODE_FD;
sys/dev/ic/tulip.c
4757
tm->tm_opmode |= TULIP_ROM_MB_OPMODE(word);
sys/dev/ic/tulip.c
4759
tm->tm_actmask =
sys/dev/ic/tulip.c
4761
tm->tm_actdata =
sys/dev/ic/tulip.c
4763
0 : tm->tm_actmask;
sys/dev/ic/tulip.c
4768
tsti->tsti_options, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
4774
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4776
tm->tm_type = TULIP_ROM_MB_21140_MII;
sys/dev/ic/tulip.c
4777
tm->tm_get = tlp_mii_getmedia;
sys/dev/ic/tulip.c
4778
tm->tm_set = tlp_mii_setmedia;
sys/dev/ic/tulip.c
4779
tm->tm_opmode = OPMODE_PS;
sys/dev/ic/tulip.c
4785
tm->tm_phyno = *cp++;
sys/dev/ic/tulip.c
4788
tm->tm_gp_length = *cp++;
sys/dev/ic/tulip.c
4789
tm->tm_gp_offset = cp - &sc->sc_srom[0];
sys/dev/ic/tulip.c
4790
cp += tm->tm_gp_length;
sys/dev/ic/tulip.c
4793
tm->tm_reset_length = *cp++;
sys/dev/ic/tulip.c
4794
tm->tm_reset_offset = cp - &sc->sc_srom[0];
sys/dev/ic/tulip.c
4795
cp += tm->tm_reset_length;
sys/dev/ic/tulip.c
4818
for (i = 0; i < tm->tm_reset_length; i++) {
sys/dev/ic/tulip.c
4821
sc->sc_srom[tm->tm_reset_offset + i]);
sys/dev/ic/tulip.c
4824
for (i = 0; i < tm->tm_gp_length; i++) {
sys/dev/ic/tulip.c
4827
sc->sc_srom[tm->tm_gp_offset + i]);
sys/dev/ic/tulip.c
4831
if (tm->tm_reset_length == 0 && tm->tm_gp_length == 0) {
sys/dev/ic/tulip.c
4843
MII_PHY_ANY, tm->tm_phyno, 0);
sys/dev/ic/tulip.c
4852
if (phy->mii_offset == tm->tm_phyno)
sys/dev/ic/tulip.c
4880
ife->ifm_aux = tm;
sys/dev/ic/tulip.c
4888
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4890
tm->tm_type = TULIP_ROM_MB_21142_SIA;
sys/dev/ic/tulip.c
4891
tm->tm_get = tlp_sia_get;
sys/dev/ic/tulip.c
4892
tm->tm_set = tlp_sia_set;
sys/dev/ic/tulip.c
4899
free(tm, M_DEVBUF);
sys/dev/ic/tulip.c
4904
tlp_srom_media_info(sc, tsti, tm);
sys/dev/ic/tulip.c
4911
tm->tm_siaconn = TULIP_ROM_GETW(cp, 1);
sys/dev/ic/tulip.c
4912
tm->tm_siatxrx = TULIP_ROM_GETW(cp, 3);
sys/dev/ic/tulip.c
4913
tm->tm_siagen = TULIP_ROM_GETW(cp, 5);
sys/dev/ic/tulip.c
4919
tm->tm_gpctl = TULIP_ROM_GETW(cp, 0) << 16;
sys/dev/ic/tulip.c
4920
tm->tm_gpdata = TULIP_ROM_GETW(cp, 2) << 16;
sys/dev/ic/tulip.c
4924
tsti->tsti_options, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
4930
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
4932
tm->tm_type = TULIP_ROM_MB_21142_MII;
sys/dev/ic/tulip.c
4933
tm->tm_get = tlp_mii_getmedia;
sys/dev/ic/tulip.c
4934
tm->tm_set = tlp_mii_setmedia;
sys/dev/ic/tulip.c
4935
tm->tm_opmode = OPMODE_PS;
sys/dev/ic/tulip.c
4941
tm->tm_phyno = *cp++;
sys/dev/ic/tulip.c
4944
tm->tm_gp_length = *cp++;
sys/dev/ic/tulip.c
4945
tm->tm_gp_offset = cp - &sc->sc_srom[0];
sys/dev/ic/tulip.c
4946
cp += tm->tm_gp_length * 2;
sys/dev/ic/tulip.c
4949
tm->tm_reset_length = *cp++;
sys/dev/ic/tulip.c
4950
tm->tm_reset_offset = cp - &sc->sc_srom[0];
sys/dev/ic/tulip.c
4951
cp += tm->tm_reset_length * 2;
sys/dev/ic/tulip.c
4972
cp = &sc->sc_srom[tm->tm_reset_offset];
sys/dev/ic/tulip.c
4973
for (i = 0; i < tm->tm_reset_length; i++, cp += 2) {
sys/dev/ic/tulip.c
4979
cp = &sc->sc_srom[tm->tm_gp_offset];
sys/dev/ic/tulip.c
4980
for (i = 0; i < tm->tm_gp_length; i++, cp += 2) {
sys/dev/ic/tulip.c
4987
if (tm->tm_reset_length == 0 && tm->tm_gp_length == 0) {
sys/dev/ic/tulip.c
4999
MII_PHY_ANY, tm->tm_phyno, 0);
sys/dev/ic/tulip.c
5008
if (phy->mii_offset == tm->tm_phyno)
sys/dev/ic/tulip.c
5036
ife->ifm_aux = tm;
sys/dev/ic/tulip.c
5044
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
5046
tm->tm_type = TULIP_ROM_MB_21143_SYM;
sys/dev/ic/tulip.c
5047
tm->tm_get = tlp_sia_get;
sys/dev/ic/tulip.c
5048
tm->tm_set = tlp_sia_set;
sys/dev/ic/tulip.c
5055
free(tm, M_DEVBUF);
sys/dev/ic/tulip.c
5060
tlp_srom_media_info(sc, tsti, tm);
sys/dev/ic/tulip.c
5063
tm->tm_gpctl = TULIP_ROM_GETW(cp, 1) << 16;
sys/dev/ic/tulip.c
5064
tm->tm_gpdata = TULIP_ROM_GETW(cp, 3) << 16;
sys/dev/ic/tulip.c
5072
tm->tm_opmode &= OPMODE_FD;
sys/dev/ic/tulip.c
5073
tm->tm_opmode |= TULIP_ROM_MB_OPMODE(word);
sys/dev/ic/tulip.c
5075
tm->tm_actmask =
sys/dev/ic/tulip.c
5077
tm->tm_actdata =
sys/dev/ic/tulip.c
5079
0 : tm->tm_actmask;
sys/dev/ic/tulip.c
5084
tsti->tsti_options, sc->sc_tlp_minst), 0, tm);
sys/dev/ic/tulip.c
5136
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
5137
tm->tm_name = "auto";
sys/dev/ic/tulip.c
5138
tm->tm_get = tlp_2114x_nway_get;
sys/dev/ic/tulip.c
5139
tm->tm_set = tlp_2114x_nway_set;
sys/dev/ic/tulip.c
5142
ifmedia_add(&mii->mii_media, defmedia, 0, tm);
sys/dev/ic/tulip.c
5422
struct tulip_21x4x_media *tm = ife->ifm_aux;
sys/dev/ic/tulip.c
5424
(*tm->tm_get)(sc, ifmr);
sys/dev/ic/tulip.c
5431
struct tulip_21x4x_media *tm = ife->ifm_aux;
sys/dev/ic/tulip.c
5438
if (TULIP_MEDIA_NEEDSRESET(sc, tm->tm_opmode))
sys/dev/ic/tulip.c
5441
return (*tm->tm_set)(sc);
sys/dev/ic/tulip.c
5911
struct tulip_21x4x_media *tm;
sys/dev/ic/tulip.c
5951
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP);
sys/dev/ic/tulip.c
5952
tm->tm_name = "auto";
sys/dev/ic/tulip.c
5953
tm->tm_get = tlp_2114x_nway_get;
sys/dev/ic/tulip.c
5954
tm->tm_set = tlp_2114x_nway_set;
sys/dev/ic/tulip.c
5956
IFM_MAKEWORD(IFM_ETHER, IFM_AUTO, 0, 0), 0, tm);
sys/dev/marvell/mvsdio.c
528
uint32_t tm, c, hc, aacc, nisie, wait;
sys/dev/marvell/mvsdio.c
537
tm = bus_space_read_4(sc->sc_iot, sc->sc_ioh, MVSDIO_TM);
sys/dev/marvell/mvsdio.c
570
tm &= ~TM_HOSTXFERMODE; /* Always DMA */
sys/dev/marvell/mvsdio.c
572
tm |= TM_DATAXFERTOWARDHOST;
sys/dev/marvell/mvsdio.c
574
tm &= ~TM_DATAXFERTOWARDHOST;
sys/dev/marvell/mvsdio.c
575
tm |= TM_HWWRDATAEN;
sys/dev/marvell/mvsdio.c
578
tm &= ~TM_HWWRDATAEN;
sys/dev/marvell/mvsdio.c
621
tm |= TM_AUTOCMD12EN;
sys/dev/marvell/mvsdio.c
624
tm &= ~TM_AUTOCMD12EN;
sys/dev/marvell/mvsdio.c
626
tm |= TM_INTCHKEN;
sys/dev/marvell/mvsdio.c
627
bus_space_write_4(sc->sc_iot, sc->sc_ioh, MVSDIO_TM, tm);
sys/dev/marvell/mvsdio.c
647
DPRINTF(2, ("%s: TM=0x%x, C=0x%x, HC=0x%x\n", __func__, tm, c, hc));
sys/dev/pci/if_iavf.c
4182
iavf_atq_poll(struct iavf_softc *sc, unsigned int tm)
sys/dev/pci/if_iavf.c
4199
if (t++ > tm) {
sys/dev/pci/if_ixl.c
3940
ixl_atq_poll(struct ixl_softc *sc, struct ixl_aq_desc *iaq, unsigned int tm)
sys/dev/pci/if_ixl.c
3969
if (t++ > tm) {
sys/dev/pci/if_tlp_pci.c
1394
struct tulip_21x4x_media *tm;
sys/dev/pci/if_tlp_pci.c
1408
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP); \
sys/dev/pci/if_tlp_pci.c
1409
tm->tm_opmode = (c); \
sys/dev/pci/if_tlp_pci.c
1410
tm->tm_gpdata = GPP_SMC9332DST_INIT; \
sys/dev/pci/if_tlp_pci.c
1411
ifmedia_add(&mii->mii_media, (m), 0, tm)
sys/dev/pci/if_tlp_pci.c
1611
struct tulip_21x4x_media *tm;
sys/dev/pci/if_tlp_pci.c
1623
tm = kmem_zalloc(sizeof(*tm), KM_SLEEP); \
sys/dev/pci/if_tlp_pci.c
1624
tm->tm_opmode = (c); \
sys/dev/pci/if_tlp_pci.c
1625
tm->tm_gpdata = GPP_COGENT_EM1x0_INIT; \
sys/dev/pci/if_tlp_pci.c
1626
ifmedia_add(&mii->mii_media, (m), 0, tm)
sys/fs/nilfs/nilfs_vfsops.c
1225
struct timespec *tm)
sys/fs/udf/udf_vfsops.c
946
struct timespec *tm)
sys/kern/kern_resource.c
476
addrulwp(struct lwp *l, struct bintime *tm)
sys/kern/kern_resource.c
480
bintime_add(tm, &l->l_rtime);
sys/kern/kern_resource.c
494
bintime_add(tm, &diff);
sys/kern/kern_resource.c
511
struct bintime tm;
sys/kern/kern_resource.c
522
tm = p->p_rtime;
sys/kern/kern_resource.c
525
addrulwp(l, &tm);
sys/kern/kern_resource.c
529
bintime2timeval(&tm, &tv);
sys/kern/subr_time.c
170
struct bintime tm = {0, 0};
sys/kern/subr_time.c
179
addrulwp(l, &tm);
sys/kern/subr_time.c
182
bintime2timespec(&tm, ts);
sys/netinet/ip_mroute.c
2071
u_int32_t tm;
sys/netinet/ip_mroute.c
2076
TV_DELTA(tp, vifp->tbf_last_pkt_t, tm);
sys/netinet/ip_mroute.c
2087
vifp->tbf_n_tok += tm * vifp->v_rate_limit / 8192;
sys/netinet/sctp_usrreq.c
1473
int32_t *tm;
sys/netinet/sctp_usrreq.c
1478
tm = sopt->sopt_data;
sys/netinet/sctp_usrreq.c
1480
*tm = TICKS_TO_MSEC(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_RECV]);
sys/netinet/sctp_usrreq.c
2464
int32_t *tm;
sys/netinet/sctp_usrreq.c
2469
tm = sopt->sopt_data;
sys/netinet/sctp_usrreq.c
2471
if ((*tm < 10) || (*tm > 500)) {
sys/netinet/sctp_usrreq.c
2477
inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_RECV] = MSEC_TO_TICKS(*tm);
tests/lib/libc/time/t_mktime.c
45
struct tm *t;
tests/lib/libc/time/t_mktime.c
46
struct tm tt;
tests/lib/libc/time/t_mktime.c
67
struct tm tms;
tests/lib/libc/time/t_mktime.c
87
struct tm tms;
tests/lib/libc/time/t_strptime.c
166
struct tm tm;
tests/lib/libc/time/t_strptime.c
169
memset(&tm, 0, sizeof(tm));
tests/lib/libc/time/t_strptime.c
170
if ((rv = strptime(name, fmt, &tm)) == NULL)
tests/lib/libc/time/t_strptime.c
171
tm.tm_gmtoff = -1;
tests/lib/libc/time/t_strptime.c
187
ATF_CHECK_MSG(tm.tm_gmtoff == value,
tests/lib/libc/time/t_strptime.c
190
name, fmt, value, tm.tm_gmtoff);
tests/lib/libc/time/t_strptime.c
191
printf("%s %s %ld\n", name, fmt, tm.tm_gmtoff);
tests/lib/libc/time/t_strptime.c
50
struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
tests/lib/libc/time/t_strptime.c
520
struct tm tm;
tests/lib/libc/time/t_strptime.c
535
if (strptime(buf, "%s", &tm) == NULL) {
tests/lib/libc/time/t_strptime.c
539
fprintf(stderr, "tm_sec=%d\n", tm.tm_sec);
tests/lib/libc/time/t_strptime.c
54
ret = strptime(buf, fmt, &tm);
tests/lib/libc/time/t_strptime.c
540
fprintf(stderr, "tm_min=%d\n", tm.tm_min);
tests/lib/libc/time/t_strptime.c
541
fprintf(stderr, "tm_hour=%d\n", tm.tm_hour);
tests/lib/libc/time/t_strptime.c
542
fprintf(stderr, "tm_mday=%d\n", tm.tm_mday);
tests/lib/libc/time/t_strptime.c
543
fprintf(stderr, "tm_mon=%d\n", tm.tm_mon);
tests/lib/libc/time/t_strptime.c
544
fprintf(stderr, "tm_year=%d\n", tm.tm_year);
tests/lib/libc/time/t_strptime.c
545
fprintf(stderr, "tm_wday=%d\n", tm.tm_wday);
tests/lib/libc/time/t_strptime.c
546
fprintf(stderr, "tm_yday=%d\n", tm.tm_yday);
tests/lib/libc/time/t_strptime.c
547
fprintf(stderr, "tm_isdst=%d\n", tm.tm_isdst);
tests/lib/libc/time/t_strptime.c
548
fprintf(stderr, "tm_gmtoff=%ld\n", tm.tm_gmtoff);
tests/lib/libc/time/t_strptime.c
549
fprintf(stderr, "tm_zone=%s\n", tm.tm_zone);
tests/lib/libc/time/t_strptime.c
556
if (tm.tm_year > 0x7fffffff - 1900)
tests/lib/libc/time/t_strptime.c
558
t = mktime(&tm);
tests/lib/libc/time/t_strptime.c
61
ATF_CHECK_MSG(tm.field == field, \
tests/lib/libc/time/t_strptime.c
64
___STRING(field), field, tm.field)
tests/lib/libc/time/t_strptime.c
81
struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
tests/lib/libc/time/t_strptime.c
83
ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", "
tests/lib/libutil/t_parsedate.c
100
ATF_CHECK_MSG(tm.tm_mday == day,
tests/lib/libutil/t_parsedate.c
102
argstr, day, (int)tm.tm_mday);
tests/lib/libutil/t_parsedate.c
104
ATF_CHECK_MSG(tm.tm_hour == hour,
tests/lib/libutil/t_parsedate.c
106
argstr, hour, (int)tm.tm_hour);
tests/lib/libutil/t_parsedate.c
108
ATF_CHECK_MSG(tm.tm_min == minute,
tests/lib/libutil/t_parsedate.c
110
argstr, minute, (int)tm.tm_min);
tests/lib/libutil/t_parsedate.c
112
ATF_CHECK_MSG(tm.tm_sec == second,
tests/lib/libutil/t_parsedate.c
114
argstr, second, (int)tm.tm_sec);
tests/lib/libutil/t_parsedate.c
245
struct tm tm;
tests/lib/libutil/t_parsedate.c
265
tm = (struct tm){
tests/lib/libutil/t_parsedate.c
269
t = mktime(&tm);
tests/lib/libutil/t_parsedate.c
288
struct tm tm;
tests/lib/libutil/t_parsedate.c
291
#define REL_CHECK(s, now, tm) do { \
tests/lib/libutil/t_parsedate.c
295
q = mktime(&tm); \
tests/lib/libutil/t_parsedate.c
320
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
321
tm.tm_mday--;
tests/lib/libutil/t_parsedate.c
323
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
324
REL_CHECK("yesterday", now, tm);
tests/lib/libutil/t_parsedate.c
326
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
327
tm.tm_mday++;
tests/lib/libutil/t_parsedate.c
329
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
330
REL_CHECK("tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
332
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
333
if (tm.tm_wday > 4)
tests/lib/libutil/t_parsedate.c
334
tm.tm_mday += 7;
tests/lib/libutil/t_parsedate.c
335
tm.tm_mday += 4 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
337
tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
tests/lib/libutil/t_parsedate.c
338
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
339
REL_CHECK("this thursday", now, tm);
tests/lib/libutil/t_parsedate.c
341
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
342
tm.tm_mday += 14 - (tm.tm_wday ? tm.tm_wday : 7);
tests/lib/libutil/t_parsedate.c
343
tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
tests/lib/libutil/t_parsedate.c
344
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
345
REL_CHECK("next sunday", now, tm);
tests/lib/libutil/t_parsedate.c
347
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
348
if (tm.tm_wday <= 5)
tests/lib/libutil/t_parsedate.c
349
tm.tm_mday -= 7;
tests/lib/libutil/t_parsedate.c
350
tm.tm_mday += 5 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
351
tm.tm_sec = tm.tm_min = 0;
tests/lib/libutil/t_parsedate.c
352
tm.tm_hour = 16;
tests/lib/libutil/t_parsedate.c
353
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
354
REL_CHECK("last friday 4 p.m.", now, tm);
tests/lib/libutil/t_parsedate.c
356
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
357
tm.tm_mday += 14;
tests/lib/libutil/t_parsedate.c
358
if (tm.tm_wday > 3)
tests/lib/libutil/t_parsedate.c
359
tm.tm_mday += 7;
tests/lib/libutil/t_parsedate.c
360
tm.tm_mday += 3 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
361
tm.tm_sec = tm.tm_min = 0;
tests/lib/libutil/t_parsedate.c
362
tm.tm_hour = 3;
tests/lib/libutil/t_parsedate.c
363
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
364
REL_CHECK("we fortnight 3 a.m.", now, tm);
tests/lib/libutil/t_parsedate.c
366
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
367
tm.tm_min -= 5;
tests/lib/libutil/t_parsedate.c
368
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
369
REL_CHECK("5 minutes ago", now, tm);
tests/lib/libutil/t_parsedate.c
371
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
372
tm.tm_hour++;
tests/lib/libutil/t_parsedate.c
373
tm.tm_min += 37;
tests/lib/libutil/t_parsedate.c
374
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
375
REL_CHECK("97 minutes", now, tm);
tests/lib/libutil/t_parsedate.c
377
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
378
tm.tm_mon++;
tests/lib/libutil/t_parsedate.c
379
if (tm.tm_mon == 1 &&
tests/lib/libutil/t_parsedate.c
380
tm.tm_mday > 28 + isleap(tm.tm_year))
tests/lib/libutil/t_parsedate.c
381
tm.tm_mday = 28 + isleap(tm.tm_year);
tests/lib/libutil/t_parsedate.c
382
else if ((tm.tm_mon == 3 || tm.tm_mon == 5 ||
tests/lib/libutil/t_parsedate.c
383
tm.tm_mon == 8 || tm.tm_mon == 10) && tm.tm_mday == 31)
tests/lib/libutil/t_parsedate.c
384
tm.tm_mday = 30;
tests/lib/libutil/t_parsedate.c
385
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
386
REL_CHECK("month", now, tm);
tests/lib/libutil/t_parsedate.c
388
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
389
tm.tm_mon += 2; /* "next" means add 2 ... */
tests/lib/libutil/t_parsedate.c
390
if (tm.tm_mon == 13 &&
tests/lib/libutil/t_parsedate.c
391
tm.tm_mday > 28 + isleap(tm.tm_year + 1))
tests/lib/libutil/t_parsedate.c
392
tm.tm_mday = 28 + isleap(tm.tm_year + 1);
tests/lib/libutil/t_parsedate.c
393
else if (tm.tm_mon == 8 && tm.tm_mday == 31)
tests/lib/libutil/t_parsedate.c
394
tm.tm_mday = 30;
tests/lib/libutil/t_parsedate.c
395
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
396
REL_CHECK("next month", now, tm);
tests/lib/libutil/t_parsedate.c
398
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
399
tm.tm_mon--;
tests/lib/libutil/t_parsedate.c
400
if (tm.tm_mon == 1 &&
tests/lib/libutil/t_parsedate.c
401
tm.tm_mday > 28 + isleap(tm.tm_year))
tests/lib/libutil/t_parsedate.c
402
tm.tm_mday = 28 + isleap(tm.tm_year);
tests/lib/libutil/t_parsedate.c
403
else if ((tm.tm_mon == 3 || tm.tm_mon == 5 ||
tests/lib/libutil/t_parsedate.c
404
tm.tm_mon == 8 || tm.tm_mon == 10) && tm.tm_mday == 31)
tests/lib/libutil/t_parsedate.c
405
tm.tm_mday = 30;
tests/lib/libutil/t_parsedate.c
406
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
407
REL_CHECK("last month", now, tm);
tests/lib/libutil/t_parsedate.c
409
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
410
tm.tm_mon += 6;
tests/lib/libutil/t_parsedate.c
411
if (tm.tm_mon == 13 &&
tests/lib/libutil/t_parsedate.c
412
tm.tm_mday > 28 + isleap(tm.tm_year + 1))
tests/lib/libutil/t_parsedate.c
413
tm.tm_mday = 28 + isleap(tm.tm_year + 1);
tests/lib/libutil/t_parsedate.c
414
else if ((tm.tm_mon == 15 || tm.tm_mon == 17 ||
tests/lib/libutil/t_parsedate.c
415
tm.tm_mon == 8 || tm.tm_mon == 10) && tm.tm_mday == 31)
tests/lib/libutil/t_parsedate.c
416
tm.tm_mday = 30;
tests/lib/libutil/t_parsedate.c
417
tm.tm_mday += 2;
tests/lib/libutil/t_parsedate.c
418
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
419
REL_CHECK("+6 months 2 days", now, tm);
tests/lib/libutil/t_parsedate.c
421
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
422
tm.tm_mon -= 9;
tests/lib/libutil/t_parsedate.c
423
if (tm.tm_mon == 1 && tm.tm_mday > 28 + isleap(tm.tm_year))
tests/lib/libutil/t_parsedate.c
424
tm.tm_mday = 28 + isleap(tm.tm_year);
tests/lib/libutil/t_parsedate.c
425
else if ((tm.tm_mon == -9 || tm.tm_mon == -7 ||
tests/lib/libutil/t_parsedate.c
426
tm.tm_mon == -2) && tm.tm_mday == 31)
tests/lib/libutil/t_parsedate.c
427
tm.tm_mday = 30;
tests/lib/libutil/t_parsedate.c
428
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
429
REL_CHECK("9 months ago", now, tm);
tests/lib/libutil/t_parsedate.c
431
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
432
if (tm.tm_wday <= 2)
tests/lib/libutil/t_parsedate.c
433
tm.tm_mday -= 7;
tests/lib/libutil/t_parsedate.c
434
tm.tm_mday += 2 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
435
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
436
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
tests/lib/libutil/t_parsedate.c
437
REL_CHECK("1 week ago Tu", now, tm);
tests/lib/libutil/t_parsedate.c
439
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
440
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
441
tm.tm_mday++;
tests/lib/libutil/t_parsedate.c
442
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
tests/lib/libutil/t_parsedate.c
443
REL_CHECK("midnight tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
445
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
446
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
447
tm.tm_mday++;
tests/lib/libutil/t_parsedate.c
448
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
tests/lib/libutil/t_parsedate.c
449
REL_CHECK("tomorrow midnight", now, tm);
tests/lib/libutil/t_parsedate.c
451
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
452
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
453
tm.tm_mday++;
tests/lib/libutil/t_parsedate.c
454
tm.tm_hour = 12;
tests/lib/libutil/t_parsedate.c
455
tm.tm_min = tm.tm_sec = 0;
tests/lib/libutil/t_parsedate.c
456
REL_CHECK("noon tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
458
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
459
if (tm.tm_wday > 2)
tests/lib/libutil/t_parsedate.c
460
tm.tm_mday += 7;
tests/lib/libutil/t_parsedate.c
461
tm.tm_mday += 2 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
462
tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
tests/lib/libutil/t_parsedate.c
463
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
464
REL_CHECK("midnight Tuesday", now, tm);
tests/lib/libutil/t_parsedate.c
466
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
467
if (tm.tm_wday > 2 + 1)
tests/lib/libutil/t_parsedate.c
468
tm.tm_mday += 7;
tests/lib/libutil/t_parsedate.c
469
tm.tm_mday += 2 - tm.tm_wday;
tests/lib/libutil/t_parsedate.c
470
tm.tm_mday++; /* xxx midnight --> the next day */
tests/lib/libutil/t_parsedate.c
471
tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
tests/lib/libutil/t_parsedate.c
472
tm.tm_isdst = -1;
tests/lib/libutil/t_parsedate.c
473
REL_CHECK("Tuesday midnight", now, tm);
tests/lib/libutil/t_parsedate.c
58
struct tm * time_to_tm(const time_t *, struct tm *),
tests/lib/libutil/t_parsedate.c
62
struct tm tm;
tests/lib/libutil/t_parsedate.c
90
ATF_CHECK(time_to_tm(&t, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
92
ATF_CHECK_MSG(tm.tm_year + 1900 == year,
tests/lib/libutil/t_parsedate.c
94
argstr, year, (int)tm.tm_year);
tests/lib/libutil/t_parsedate.c
96
ATF_CHECK_MSG(tm.tm_mon + 1 == month,
tests/lib/libutil/t_parsedate.c
98
argstr, month, (int)tm.tm_mon);
usr.bin/at/at.c
430
struct tm runtime;
usr.bin/at/at.c
721
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
722
(void)fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/at.c
746
struct tm *tm = localtime(&timer);
usr.bin/at/at.c
747
(void)fprintf(stderr, "%s\n", asctime(tm));
usr.bin/at/parsetime.c
168
static void assign_date(struct tm *, int, int, int);
usr.bin/at/parsetime.c
171
static void month(struct tm *);
usr.bin/at/parsetime.c
174
static void plus(struct tm *);
usr.bin/at/parsetime.c
175
static void tod(struct tm *);
usr.bin/at/parsetime.c
313
plus(struct tm *tm)
usr.bin/at/parsetime.c
325
tm->tm_year += delay;
usr.bin/at/parsetime.c
328
tm->tm_mon += delay;
usr.bin/at/parsetime.c
334
tm->tm_mday += delay;
usr.bin/at/parsetime.c
337
tm->tm_hour += delay;
usr.bin/at/parsetime.c
340
tm->tm_min += delay;
usr.bin/at/parsetime.c
350
tm->tm_isdst = -1;
usr.bin/at/parsetime.c
351
if (mktime(tm) == -1)
usr.bin/at/parsetime.c
360
tod(struct tm *tm)
usr.bin/at/parsetime.c
408
if ((sc_tokid == TOKEOF || sc_tokid == PLUS) && (tm->tm_hour > hour ||
usr.bin/at/parsetime.c
409
(tm->tm_hour == hour && tm->tm_min > minute))) {
usr.bin/at/parsetime.c
410
tm->tm_mday++;
usr.bin/at/parsetime.c
411
tm->tm_wday++;
usr.bin/at/parsetime.c
414
tm->tm_hour = hour;
usr.bin/at/parsetime.c
415
tm->tm_min = minute;
usr.bin/at/parsetime.c
423
assign_date(struct tm *tm, int mday, int mon, int year)
usr.bin/at/parsetime.c
428
tm->tm_year = year - TM_YEAR_BASE;
usr.bin/at/parsetime.c
433
tm->tm_year = conv_2dig_year(year) - TM_YEAR_BASE;
usr.bin/at/parsetime.c
437
if (tm->tm_mon > mon ||
usr.bin/at/parsetime.c
438
(tm->tm_mon == mon && tm->tm_mday > mday))
usr.bin/at/parsetime.c
439
tm->tm_year++;
usr.bin/at/parsetime.c
444
tm->tm_mday = mday;
usr.bin/at/parsetime.c
445
tm->tm_mon = mon;
usr.bin/at/parsetime.c
458
month(struct tm *tm)
usr.bin/at/parsetime.c
468
plus(tm);
usr.bin/at/parsetime.c
473
tm->tm_mday++;
usr.bin/at/parsetime.c
474
tm->tm_wday++;
usr.bin/at/parsetime.c
493
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
502
mday = tm->tm_mday;
usr.bin/at/parsetime.c
505
if (wday < tm->tm_wday)
usr.bin/at/parsetime.c
506
mday += 7 - (tm->tm_wday - wday);
usr.bin/at/parsetime.c
508
mday += (wday - tm->tm_wday);
usr.bin/at/parsetime.c
510
tm->tm_wday = wday;
usr.bin/at/parsetime.c
512
assign_date(tm, mday, tm->tm_mon, tm->tm_year + TM_YEAR_BASE);
usr.bin/at/parsetime.c
560
assign_date(tm, mday, mon, year);
usr.bin/at/parsetime.c
579
struct tm nowtime, runtime;
usr.bin/at/stime.c
58
struct tm *t;
usr.bin/cal/cal.c
219
struct tm *local_time;
usr.bin/cal/cal.c
496
struct tm *tm;
usr.bin/cal/cal.c
499
tm = localtime(&t);
usr.bin/cal/cal.c
500
tm->tm_year += TM_YEAR_BASE;
usr.bin/cal/cal.c
501
tm->tm_mon++;
usr.bin/cal/cal.c
502
tm->tm_yday++; /* jan 1 is 1 for us, not 0 */
usr.bin/cal/cal.c
517
if (hilite && year == tm->tm_year &&
usr.bin/cal/cal.c
518
(julian ? (day == tm->tm_yday) :
usr.bin/cal/cal.c
519
(month == tm->tm_mon && day == tm->tm_mday)))
usr.bin/calendar/calendar.c
122
static void getmmdd(struct tm *, char *);
usr.bin/calendar/calendar.c
685
getmmdd(struct tm *ptm, char *ds)
usr.bin/calendar/calendar.c
688
struct tm ttm;
usr.bin/calendar/calendar.c
92
static struct tm *tp;
usr.bin/cdplay/cdplay.c
645
u_int n, tr1, tr2, m1, m2, s1, s2, f1, f2, tm, ts, tf;
usr.bin/cdplay/cdplay.c
771
toc2msf(tr1-1, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
772
addmsf(&m1, &s1, &f1, tm, ts, tf);
usr.bin/cdplay/cdplay.c
774
toc2msf(tr1, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
776
if ((m1 > tm) || ((m1 == tm) && ((s1 > ts) || ((s1 == ts) &&
usr.bin/cdplay/cdplay.c
802
toc2msf(tr2, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
803
addmsf(&m2, &s2, &f2, tm, ts, tf);
usr.bin/cdplay/cdplay.c
807
toc2msf(n, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
809
if ((tr2 < n) && ((m2 > tm) || ((m2 == tm) && ((s2 > ts) ||
usr.bin/cdplay/cdplay.c
835
lba2msf(toc_buffer[n].addr.lba, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
836
m2 = tm;
usr.bin/chpass/util.c
60
struct tm *tp = localtime(&tval);
usr.bin/chpass/util.c
73
static struct tm *lt;
usr.bin/chpass/util.c
74
struct tm tm;
usr.bin/chpass/util.c
87
(void) memset(&tm, 0, sizeof(tm));
usr.bin/chpass/util.c
90
t = strptime(p, "%B %d %Y", &tm);
usr.bin/chpass/util.c
93
if ((*store = mktime(&tm)) == (time_t) -1)
usr.bin/config/mkheaders.c
429
struct tm *tm;
usr.bin/config/mkheaders.c
433
tm = gmtime(&t);
usr.bin/config/mkheaders.c
438
if (strftime(buf, sizeof(buf), "%c %Z", tm) == 0)
usr.bin/config/mkheaders.c
450
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
usr.bin/config/mkheaders.c
451
tm->tm_hour, tm->tm_min, tm->tm_sec);
usr.bin/cvslatest/cvslatest.c
109
struct tm tm;
usr.bin/cvslatest/cvslatest.c
143
if ((p = strptime(dt, fmt, &tm)) == NULL || *p) {
usr.bin/cvslatest/cvslatest.c
149
tm.tm_isdst = 0; // We are in GMT anyway
usr.bin/cvslatest/cvslatest.c
150
if ((t = mktime(&tm)) == (time_t)-1)
usr.bin/diff/diffreg.c
1608
struct tm tm1, tm2, *tm_ptr1, *tm_ptr2;
usr.bin/finger/lprint.c
128
struct tm *tp = localtime(&ti);
usr.bin/finger/lprint.c
150
struct tm *delta = gmtime(&t);
usr.bin/finger/sprint.c
159
struct tm *delta;
usr.bin/flock/flock.c
164
timer_t tm;
usr.bin/flock/flock.c
273
if (timer_create(CLOCK_REALTIME, &ev, &tm) == -1)
usr.bin/flock/flock.c
276
if (timer_settime(tm, TIMER_RELTIME, &it, NULL) == -1)
usr.bin/flock/flock.c
300
timer_delete(tm);
usr.bin/ftp/extern.h
166
const char *parse_rfc2616time(struct tm *, const char *);
usr.bin/ftp/extern.h
189
const char *rfc2822time(const struct tm *);
usr.bin/ftp/extern.h
93
struct tm;
usr.bin/ftp/fetch.c
905
struct tm parsed;
usr.bin/ftp/util.c
712
struct tm timebuf;
usr.bin/ftp/util.c
785
rfc2822time(const struct tm *tm)
usr.bin/ftp/util.c
790
"%a, %d %b %Y %H:%M:%S %z\n", tm) == 0)
usr.bin/ftp/util.c
801
parse_rfc2616time(struct tm *parsed, const char *httpdate)
usr.bin/gzip/gzip.c
228
#define gz_compress(if, of, sz, fn, tm) gz_compress(if, of, sz)
usr.bin/ipcs/ipcs.c
156
struct tm *tm;
usr.bin/ipcs/ipcs.c
161
tm = localtime(&t);
usr.bin/ipcs/ipcs.c
163
tm->tm_hour, tm->tm_min, tm->tm_sec);
usr.bin/last/last.c
359
struct tm *tm;
usr.bin/last/last.c
362
tm = (flags & GMT) ? gmtime(&t) : localtime(&t);
usr.bin/last/last.c
363
if (tm == NULL) {
usr.bin/last/last.c
371
tm);
usr.bin/leave/leave.c
76
struct tm *t = NULL;
usr.bin/lock/lock.c
102
struct tm *timp;
usr.bin/mail/format.c
1005
fp = subformat(&p, mp, addr, user, subj, tm->tm_isdst);
usr.bin/mail/format.c
1036
struct tm tm;
usr.bin/mail/format.c
1050
newfmt = preformat(&tm, fmtstr, mp, use_hl_date);
usr.bin/mail/format.c
1051
(void)strftime(buf, bufsize, newfmt, &tm);
usr.bin/mail/format.c
528
date_to_tm(char *date, struct tm *tm)
usr.bin/mail/format.c
566
struct tm tmp_tm;
usr.bin/mail/format.c
578
tm->tm_wday = tmp_tm.tm_wday;
usr.bin/mail/format.c
584
tm->tm_mday = tmp_tm.tm_mday;
usr.bin/mail/format.c
585
tm->tm_mon = tmp_tm.tm_mon;
usr.bin/mail/format.c
596
tm->tm_year = tmp_tm.tm_year;
usr.bin/mail/format.c
602
tm->tm_hour = tmp_tm.tm_hour;
usr.bin/mail/format.c
603
tm->tm_min = tmp_tm.tm_min;
usr.bin/mail/format.c
608
tm->tm_sec = tmp_tm.tm_sec;
usr.bin/mail/format.c
620
tm->tm_zone = get_comments(p);
usr.bin/mail/format.c
622
tm->tm_zone = NULL;
usr.bin/mail/format.c
636
hl_date_to_tm(const char *buf, struct tm *tm)
usr.bin/mail/format.c
653
struct tm tmp_tm; /* see comment in date_to_tm() */
usr.bin/mail/format.c
660
tm->tm_wday = tmp_tm.tm_wday;
usr.bin/mail/format.c
661
tm->tm_mday = tmp_tm.tm_mday;
usr.bin/mail/format.c
662
tm->tm_mon = tmp_tm.tm_mon;
usr.bin/mail/format.c
663
tm->tm_hour = tmp_tm.tm_hour;
usr.bin/mail/format.c
664
tm->tm_min = tmp_tm.tm_min;
usr.bin/mail/format.c
669
tm->tm_sec = tmp_tm.tm_sec;
usr.bin/mail/format.c
678
tm->tm_zone = savestr(zone);
usr.bin/mail/format.c
684
tm->tm_year = tmp_tm.tm_year; /* save this even if it failed */
usr.bin/mail/format.c
697
dateof(struct tm *tm, struct message *mp, int use_hl_date)
usr.bin/mail/format.c
703
(void)memset(tm, 0, sizeof(*tm));
usr.bin/mail/format.c
713
(void)localtime_r(&now, tm);
usr.bin/mail/format.c
733
(gmtoff = date_to_tm(date, tm)) != NULL) {
usr.bin/mail/format.c
737
struct tm save_tm;
usr.bin/mail/format.c
749
tm->tm_isdst = -1; /* let timegm(3) determine tm_isdst */
usr.bin/mail/format.c
750
save_tm = *tm; /* use this if we fail */
usr.bin/mail/format.c
757
tm->tm_hour += hour;
usr.bin/mail/format.c
758
tm->tm_min += min;
usr.bin/mail/format.c
761
tm->tm_hour -= hour;
usr.bin/mail/format.c
762
tm->tm_min -= min;
usr.bin/mail/format.c
764
if ((otime = timegm(tm)) == (time_t)-1 ||
usr.bin/mail/format.c
765
localtime_r(&otime, tm) == NULL) {
usr.bin/mail/format.c
768
*tm = save_tm;
usr.bin/mail/format.c
772
*tm = save_tm;
usr.bin/mail/format.c
774
tm->tm_gmtoff = 0;
usr.bin/mail/format.c
775
tm->tm_zone = NULL;
usr.bin/mail/format.c
790
tm->tm_isdst = -1; /* let mktime(3) determine tm_isdst */
usr.bin/mail/format.c
797
else if (hl_date_to_tm(hl.l_date, tm) == NULL ||
usr.bin/mail/format.c
798
mktime(tm) == -1)
usr.bin/mail/format.c
981
preformat(struct tm *tm, const char *oldfmt, struct message *mp, int use_hl_date)
usr.bin/mail/format.c
997
dateof(tm, mp, use_hl_date);
usr.bin/mail/format.h
38
void dateof(struct tm *, struct message *, int);
usr.bin/mail/thread.c
1562
struct tm tm;
usr.bin/mail/thread.c
1563
(void)dateof(&tm, mp, use_hl_date);
usr.bin/mail/thread.c
1565
tm.tm_sec = 0;
usr.bin/mail/thread.c
1566
tm.tm_min = 0;
usr.bin/mail/thread.c
1567
tm.tm_hour = 0;
usr.bin/mail/thread.c
1570
marray[i].key.time = mktime(&tm);
usr.bin/make/targ.c
374
Targ_FmtTime(time_t tm)
usr.bin/make/targ.c
378
struct tm *parts = localtime(&tm);
usr.bin/mkubootimage/mkubootimage.c
279
time_t tm = be32toh(hdr->ih_time);
usr.bin/mkubootimage/mkubootimage.c
282
printf(" time: %s", ctime(&tm));
usr.bin/moduli/qsieve/qfile.c
52
struct tm *gtm;
usr.bin/newsyslog/newsyslog.c
1000
save = 6 - tm.tm_wday;
usr.bin/newsyslog/newsyslog.c
1003
save = ul - tm.tm_wday;
usr.bin/newsyslog/newsyslog.c
1004
tm.tm_mday += save;
usr.bin/newsyslog/newsyslog.c
1006
if (tm.tm_mday > nd) {
usr.bin/newsyslog/newsyslog.c
1007
tm.tm_mon++;
usr.bin/newsyslog/newsyslog.c
1008
tm.tm_mday = tm.tm_mday - nd;
usr.bin/newsyslog/newsyslog.c
1019
tm.tm_mday = nd;
usr.bin/newsyslog/newsyslog.c
1029
tm.tm_mday = ul;
usr.bin/newsyslog/newsyslog.c
1043
return mktime(&tm);
usr.bin/newsyslog/newsyslog.c
1058
struct tm tm, *tmp;
usr.bin/newsyslog/newsyslog.c
1064
tm = *tmp;
usr.bin/newsyslog/newsyslog.c
1066
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
usr.bin/newsyslog/newsyslog.c
1079
tm.tm_year = ((ul / 1000000) - 19) * 100;
usr.bin/newsyslog/newsyslog.c
1083
tm.tm_year = tm.tm_year - (tm.tm_year % 100);
usr.bin/newsyslog/newsyslog.c
1084
tm.tm_year += ul / 10000;
usr.bin/newsyslog/newsyslog.c
1088
tm.tm_mon = (ul / 100) - 1;
usr.bin/newsyslog/newsyslog.c
1092
tm.tm_mday = ul;
usr.bin/newsyslog/newsyslog.c
1101
if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12 ||
usr.bin/newsyslog/newsyslog.c
1102
tm.tm_mday < 1 || tm.tm_mday > 31)
usr.bin/newsyslog/newsyslog.c
1113
tm.tm_sec = ul % 100;
usr.bin/newsyslog/newsyslog.c
1117
tm.tm_min = ul % 100;
usr.bin/newsyslog/newsyslog.c
1121
tm.tm_hour = ul;
usr.bin/newsyslog/newsyslog.c
1130
if (tm.tm_sec < 0 || tm.tm_sec > 60 || tm.tm_min < 0 ||
usr.bin/newsyslog/newsyslog.c
1131
tm.tm_min > 59 || tm.tm_hour < 0 || tm.tm_hour > 23)
usr.bin/newsyslog/newsyslog.c
1135
return mktime(&tm);
usr.bin/newsyslog/newsyslog.c
713
struct tm *tmnow;
usr.bin/newsyslog/newsyslog.c
954
struct tm tm, *tmp;
usr.bin/newsyslog/newsyslog.c
965
tm = *tmp;
usr.bin/newsyslog/newsyslog.c
968
nd = mtab[tm.tm_mon];
usr.bin/newsyslog/newsyslog.c
970
if (tm.tm_mon == 1 &&
usr.bin/newsyslog/newsyslog.c
971
((tm.tm_year + 1900) % 4 == 0) &&
usr.bin/newsyslog/newsyslog.c
972
((tm.tm_year + 1900) % 100 != 0) &&
usr.bin/newsyslog/newsyslog.c
973
((tm.tm_year + 1900) % 400 == 0))
usr.bin/newsyslog/newsyslog.c
975
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
usr.bin/newsyslog/newsyslog.c
987
tm.tm_hour = ul;
usr.bin/newsyslog/newsyslog.c
998
if (ul != tm.tm_wday) {
usr.bin/newsyslog/newsyslog.c
999
if (ul < tm.tm_wday) {
usr.bin/pr/pr.c
1303
struct tm *timeptr = NULL;
usr.bin/rup/rup.c
230
struct tm *tmp_time;
usr.bin/rup/rup.c
231
struct tm host_time;
usr.bin/rwall/rwall.c
152
struct tm *lt;
usr.bin/skeyinit/skeyinit.c
336
tm = localtime(&now);
usr.bin/skeyinit/skeyinit.c
337
(void)strftime(tbuf, sizeof(tbuf), " %b %d,%Y %T", tm);
usr.bin/skeyinit/skeyinit.c
59
struct tm *tm;
usr.bin/stat/stat.c
585
struct tm tm;
usr.bin/stat/stat.c
594
if (localtime_r(&secs, &tm) == NULL) {
usr.bin/stat/stat.c
596
(void)localtime_r(&secs, &tm);
usr.bin/stat/stat.c
645
(void)strftime(buf, len, fmt, &tm);
usr.bin/systat/ps.c
331
struct tm *tp;
usr.bin/touch/touch.c
250
struct tm *t, tm;
usr.bin/touch/touch.c
307
tm = *t;
usr.bin/touch/touch.c
309
if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
usr.bin/touch/touch.c
319
struct tm *t, tm;
usr.bin/touch/touch.c
341
tm = *t;
usr.bin/touch/touch.c
343
if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
usr.bin/touch/touch.c
365
struct tm tm, tms;
usr.bin/touch/touch.c
381
(void)memset(&tm, 0, sizeof tm);
usr.bin/touch/touch.c
389
tm.tm_year = (int)val - 1900;
usr.bin/touch/touch.c
400
tm.tm_mon = (int)val - 1;
usr.bin/touch/touch.c
411
tm.tm_mday = (int)val;
usr.bin/touch/touch.c
422
tm.tm_hour = (int)val;
usr.bin/touch/touch.c
433
tm.tm_min = (int)val;
usr.bin/touch/touch.c
445
tm.tm_sec = (int)val;
usr.bin/touch/touch.c
493
tm.tm_isdst = -1;
usr.bin/touch/touch.c
494
tms = tm;
usr.bin/touch/touch.c
496
tsp[0].tv_sec = tsp[1].tv_sec = timegm(&tm);
usr.bin/touch/touch.c
498
tsp[0].tv_sec = tsp[1].tv_sec = mktime(&tm);
usr.bin/touch/touch.c
500
if ((errno != 0 && tsp[1].tv_sec == NO_TIME) || difftm(&tm, &tms))
usr.bin/touch/touch.c
516
difftm(const struct tm *t1, const struct tm *t2)
usr.bin/touch/touch.c
71
static int difftm(const struct tm *, const struct tm *);
usr.bin/unzip/unzip.c
810
struct tm *tm;
usr.bin/unzip/unzip.c
813
tm = localtime(&mtime);
usr.bin/unzip/unzip.c
815
strftime(buf, sizeof(buf), "%m-%d-%G %R", tm);
usr.bin/unzip/unzip.c
817
strftime(buf, sizeof(buf), "%m-%d-%g %R", tm);
usr.bin/utoppya/utoppya.c
192
struct tm *tm;
usr.bin/utoppya/utoppya.c
230
tm = localtime(&ud.ud_mtime);
usr.bin/utoppya/utoppya.c
231
strftime(tmbuf, sizeof(tmbuf), "%b %e %G %R", tm);
usr.bin/w/pr_time.c
60
struct tm *tp;
usr.bin/wall/wall.c
193
struct tm *lt;
usr.sbin/ac/ac.c
464
struct tm *ltm;
usr.sbin/makefs/cd9660/cd9660_conversion.c
156
struct tm t, gm;
usr.sbin/makefs/cd9660/cd9660_conversion.c
176
struct tm t;
usr.sbin/makefs/cd9660/cd9660_conversion.c
199
struct tm t;
usr.sbin/makefs/udf.c
162
struct tm tm;
usr.sbin/makefs/udf.c
165
(void)localtime_r(&now, &tm);
usr.sbin/makefs/udf.c
166
context.gmtoff = tm.tm_gmtoff;
usr.sbin/mopd/common/put.c
80
struct tm *timenow;
usr.sbin/mrouted/main.c
635
struct tm *thyme;
usr.sbin/mrouted/snmp.c
1315
time_t tm;
usr.sbin/mrouted/snmp.c
1317
time(&tm);
usr.sbin/mrouted/snmp.c
1318
return lasttimer-tm;
usr.sbin/ndp/ndp.c
986
struct tm *gmt, *loc;
usr.sbin/ndp/ndp.c
987
struct tm sgmt;
usr.sbin/rbootd/utils.c
86
struct tm *tmp;
usr.sbin/route6d/route6d.c
3100
struct tm *tm;
usr.sbin/route6d/route6d.c
3103
if ((tm = localtime(&t)) == 0) {
usr.sbin/route6d/route6d.c
3106
snprintf(buf, sizeof(buf), "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
usr.sbin/route6d/route6d.c
3107
tm->tm_sec);
usr.sbin/rtadvd/config.c
752
ra_timer_update((void *)rai, &rai->timer->tm);
usr.sbin/rtadvd/config.c
753
rtadvd_set_timer(&rai->timer->tm, rai->timer);
usr.sbin/rtadvd/dump.c
121
ctime(&rai->timer->tm.tv_sec));
usr.sbin/rtadvd/rtadvd.c
1764
ra_timer_update(void *data, struct timespec *tm)
usr.sbin/rtadvd/rtadvd.c
1790
tm->tv_sec = interval;
usr.sbin/rtadvd/rtadvd.c
1791
tm->tv_nsec = 0;
usr.sbin/rtadvd/rtadvd.c
1796
(intmax_t)tm->tv_sec, (intmax_t)tm->tv_nsec);
usr.sbin/rtadvd/rtadvd.c
442
ra_timer_update(rai, &rai->timer->tm);
usr.sbin/rtadvd/rtadvd.c
443
rtadvd_set_timer(&rai->timer->tm, rai->timer);
usr.sbin/rtadvd/rtadvd.c
454
ra_timer_update(rai, &rai->timer->tm);
usr.sbin/rtadvd/rtadvd.c
455
rtadvd_set_timer(&rai->timer->tm, rai->timer);
usr.sbin/rtadvd/timer.c
100
rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer)
usr.sbin/rtadvd/timer.c
106
timespecadd(&now, tm, &timer->tm);
usr.sbin/rtadvd/timer.c
109
if (timespeccmp(&timer->tm, &tm_max, <))
usr.sbin/rtadvd/timer.c
110
tm_max = timer->tm;
usr.sbin/rtadvd/timer.c
126
struct rtadvd_timer *tm, *tmn;
usr.sbin/rtadvd/timer.c
131
TAILQ_FOREACH_SAFE(tm, &ra_timer, next, tmn) {
usr.sbin/rtadvd/timer.c
132
if (!tm->enabled)
usr.sbin/rtadvd/timer.c
134
if (timespeccmp(&tm->tm, &now, <=)) {
usr.sbin/rtadvd/timer.c
135
if ((*tm->expire)(tm->expire_data) == NULL)
usr.sbin/rtadvd/timer.c
137
if (tm->update)
usr.sbin/rtadvd/timer.c
138
(*tm->update)(tm->update_data, &tm->tm);
usr.sbin/rtadvd/timer.c
139
timespecadd(&tm->tm, &now, &tm->tm);
usr.sbin/rtadvd/timer.c
141
if (timespeccmp(&tm->tm, &tm_max, <))
usr.sbin/rtadvd/timer.c
142
tm_max = tm->tm;
usr.sbin/rtadvd/timer.c
162
if (timespeccmp(&timer->tm, &now, <=)) {
usr.sbin/rtadvd/timer.c
171
timespecsub(&timer->tm, &now, &returnval);
usr.sbin/rtadvd/timer.c
80
newtimer->tm = tm_max;
usr.sbin/rtadvd/timer.h
37
struct timespec tm;
usr.sbin/rwhod/rwhod.c
429
struct timespec tm;
usr.sbin/rwhod/rwhod.c
433
size = sizeof(tm);
usr.sbin/rwhod/rwhod.c
434
if (sysctl(mib, 2, &tm, &size, NULL, 0) == -1) {
usr.sbin/rwhod/rwhod.c
438
mywd.wd_boottime = htonl(tm.tv_sec);
usr.sbin/sysinst/configmenu.c
140
struct tm *lt = localtime(&now);
usr.sbin/sysinst/configmenu.c
589
struct tm new_time;
usr.sbin/sysinst/configmenu.c
644
struct tm saved_time;
usr.sbin/sysinst/util.c
1749
struct tm *tm;
usr.sbin/sysinst/util.c
1753
tm = localtime(&t);
usr.sbin/sysinst/util.c
1761
tz_default, tz_selected, cur_time, tm ? tm->tm_zone : "?");
usr.sbin/syslogd/syslogd.c
1840
struct tm parsed;
usr.sbin/syslogd/syslogd.c
1871
struct tm parsed;
usr.sbin/syslogd/syslogd.c
1872
struct tm *current;
usr.sbin/syslogd/syslogd.c
4774
struct tm ltime;
usr.sbin/timed/timed/master.c
499
struct tms tm;
usr.sbin/timed/timed/master.c
507
this_time = times(&tm);
usr.sbin/timed/timed/readmsg.c
452
char tm[26];
usr.sbin/timed/timed/readmsg.c
477
strlcpy(tm, ctime(&msgtime)+3+1, sizeof(tm));
usr.sbin/timed/timed/readmsg.c
478
tm[15] = '\0'; /* ugh */
usr.sbin/timed/timed/readmsg.c
483
tm,
usr.sbin/timed/timed/timed.c
715
struct tms tm;
usr.sbin/timed/timed/timed.c
728
new_update = times(&tm);
usr.sbin/tpctl/main.c
386
struct termios tm, raw;
usr.sbin/tpctl/main.c
388
if (tcgetattr(fd, &tm) < 0)
usr.sbin/tpctl/main.c
390
raw = tm;
usr.sbin/tpctl/main.c
401
tcsetattr(fd, TCSANOW, &tm);
usr.sbin/user/user.c
1036
struct tm tm;
usr.sbin/user/user.c
1042
(void)memset(&tm, 0, sizeof(tm));
usr.sbin/user/user.c
1043
if (strptime(s, "%c", &tm) != NULL) {
usr.sbin/user/user.c
1044
*tp = mktime(&tm);
usr.sbin/user/user.c
1046
} else if (strptime(s, "%B %d %Y", &tm) != NULL) {
usr.sbin/user/user.c
1047
*tp = mktime(&tm);