/src/usr.bin/chpass/ |
util.c | 60 struct tm *tp = localtime(&tval); 73 static struct tm *lt; 74 struct tm tm; local in function:atot 87 (void) memset(&tm, 0, sizeof(tm)); 90 t = strptime(p, "%B %d %Y", &tm); 93 if ((*store = mktime(&tm)) == (time_t) -1)
|
/src/usr.sbin/rtadvd/ |
timer.h | 37 struct timespec tm; member in struct:rtadvd_timer
|
timer.c | 80 newtimer->tm = tm_max; 100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer) 106 timespecadd(&now, tm, &timer->tm); 109 if (timespeccmp(&timer->tm, &tm_max, <)) 110 tm_max = timer->tm; 126 struct rtadvd_timer *tm, *tmn; local in function:rtadvd_check_timer 131 TAILQ_FOREACH_SAFE(tm, &ra_timer, next, tmn) { 132 if (!tm->enabled) 134 if (timespeccmp(&tm->tm, &now, <=)) [all...] |
/src/lib/libc/time/ |
getdate.c | 61 struct tm * 67 static struct tm rtm, tmnow; 68 struct tm *tmp, *rtmp = &rtm; 171 struct tm tm; local in function:getdate 173 memset(&tm, 0, sizeof(struct tm)); 174 tm.tm_year = rtm.tm_year; 175 tm.tm_mon = rtm.tm_mon; 176 tm.tm_mday = 1 235 struct tm tm; local in function:getdate [all...] |
/src/sbin/mount_nilfs/ |
mount_nilfs.c | 104 struct tm *tm; local in function:mount_nilfs_parseargs 142 tm = localtime(&now); 143 args->gmtoff = tm->tm_gmtoff;
|
/src/tests/lib/libutil/ |
t_parsedate.c | 58 struct tm * time_to_tm(const time_t *, struct tm *), 62 struct tm tm; local in function:parsecheck 90 ATF_CHECK(time_to_tm(&t, &tm) != NULL); 92 ATF_CHECK_MSG(tm.tm_year + 1900 == year, 94 argstr, year, (int)tm.tm_year); 96 ATF_CHECK_MSG(tm.tm_mon + 1 == month, 98 argstr, month, (int)tm.tm_mon); 100 ATF_CHECK_MSG(tm.tm_mday == day 245 struct tm tm; local in function:ATF_TC_BODY 288 struct tm tm; local in function:ATF_TC_BODY [all...] |
/src/lib/libcurses/ |
ctrace.c | 59 char *tf, *tm; local in function:__CTRACE_init 61 tm = getenv("CURSES_TRACE_MASK"); 62 if (tm == NULL) 65 tracemask = (int)strtol(tm, NULL, 0);
|
/src/sbin/mount_udf/ |
mount_udf.c | 104 struct tm *tm; local in function:mount_udf_parseargs 165 tm = localtime(&now); 166 args->gmtoff = tm->tm_gmtoff;
|
/src/sbin/newfs_udf/ |
newfs_udf.c | 142 struct tm *tm; local in function:main 174 tm = localtime(&now); 175 context.gmtoff = tm->tm_gmtoff;
|
/src/sbin/mount_msdos/ |
mount_msdos.c | 91 struct tm *tm; local in function:mount_msdos_parseargs 182 tm = localtime(&now); 183 args->gmtoff = tm->tm_gmtoff;
|
/src/usr.bin/flock/ |
flock.c | 164 timer_t tm; local in function:main 273 if (timer_create(CLOCK_REALTIME, &ev, &tm) == -1) 276 if (timer_settime(tm, TIMER_RELTIME, &it, NULL) == -1) 300 timer_delete(tm);
|
/src/tests/lib/libc/time/ |
t_strptime.c | 50 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL }; local in function:h_pass 54 ret = strptime(buf, fmt, &tm); 57 "strptime(\"%s\", \"%s\", tm): incorrect return code: " 61 ATF_CHECK_MSG(tm.field == field, \ 62 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \ 64 ___STRING(field), field, tm.field) 81 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL }; local in function:h_fail 83 ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", 166 struct tm tm; local in function:ztest1 520 struct tm tm; local in function:ATF_TC_BODY [all...] |
/src/sys/kern/ |
subr_time.c | 185 struct bintime tm = {0, 0}; local in function:clock_gettime1 194 addrulwp(l, &tm); 197 bintime2timespec(&tm, ts);
|
/src/sys/arch/hp300/stand/mkboot/ |
mkboot.c | 289 struct tm *tm; local in function:bcddate 292 tm = gmtime(&repro_epoch); 295 tm = localtime(&statb.st_ctime); 297 *toc++ = bintobcd(tm->tm_mon + 1); 298 *toc++ = bintobcd(tm->tm_mday); 299 *toc++ = bintobcd(tm->tm_year); 300 *toc++ = bintobcd(tm->tm_hour); 301 *toc++ = bintobcd(tm->tm_min); 302 *toc = bintobcd(tm->tm_sec) [all...] |
/src/include/ |
time.h | 75 struct tm { struct 90 char *asctime(const struct tm *); 95 struct tm *gmtime(const time_t *) __RENAME(__gmtime50); 96 struct tm *localtime(const time_t *) __RENAME(__locatime50); 98 time_t mktime(struct tm *) __RENAME(__mktime50); 101 const struct tm * __restrict) 131 struct tm * __restrict); 136 struct tm *getdate(const char *); 176 char *asctime_r(const struct tm * __restrict, char * __restrict); 185 struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict [all...] |
/src/bin/pax/ |
gen_subs.c | 92 struct tm tm; local in function:formattime 93 (void)localtime_r(&when, &tm); 96 error = strftime(buf, buflen, OLDFRMT, &tm); 98 error = strftime(buf, buflen, CURFRMT, &tm);
|
/src/libexec/rpc.rstatd/ |
rstat_proc.c | 183 struct timeval tm; local in function:updatestat 247 gettimeofday(&tm, (struct timezone *) 0); 248 stats_all.s3.v_intr -= hz*(tm.tv_sec - btm.tv_sec) + 249 hz*(tm.tv_usec - (suseconds_t)(btm.tv_nsec / 1000))/1000000; 277 stats_all.s3.curtime.tv_sec = tm.tv_sec; 278 stats_all.s3.curtime.tv_usec = tm.tv_usec;
|
/src/sys/arch/arm/iomd/ |
iomd_clock.c | 310 u_int tm; local in function:iomd_timecounter0_get 320 tm = bus_space_read_1(clock_sc->sc_iot, clock_sc->sc_ioh, 322 tm += (bus_space_read_1(clock_sc->sc_iot, clock_sc->sc_ioh, 327 tm = timer0_count - tm; 330 (tm < timer0_lastcount || (!timer0_ticked && false/* XXX: clkintr_pending */))) { 335 timer0_lastcount = tm; 336 tm += timer0_offset; 339 return tm;
|
/src/usr.bin/skeyinit/ |
skeyinit.c | 59 struct tm *tm; local in function:main 336 tm = localtime(&now); 337 (void)strftime(tbuf, sizeof(tbuf), " %b %d,%Y %T", tm);
|
/src/usr.sbin/timed/timed/ |
readmsg.c | 452 char tm[26]; local in function:print 477 strlcpy(tm, ctime(&msgtime)+3+1, sizeof(tm)); 478 tm[15] = '\0'; /* ugh */ 483 tm,
|
/src/usr.bin/cvslatest/ |
cvslatest.c | 109 struct tm tm; local in function:getlatest 143 if ((p = strptime(dt, fmt, &tm)) == NULL || *p) { 149 tm.tm_isdst = 0; // We are in GMT anyway 150 if ((t = mktime(&tm)) == (time_t)-1)
|
/src/usr.sbin/tpctl/ |
main.c | 386 struct termios tm, raw; local in function:check_esc 388 if (tcgetattr(fd, &tm) < 0) 390 raw = tm; 401 tcsetattr(fd, TCSANOW, &tm);
|
/src/bin/date/ |
date.c | 98 struct tm *tm; local in function:main 208 if ((tm = localtime(&tval)) == NULL) 211 while (strftime(buf, bufsiz, format, tm) == 0) 249 struct tm tm; local in function:parse_iso_datetime 252 memset(&tm, 0, sizeof tm); 256 tm.tm_year = ATOI2(string) * 100; 257 tm.tm_year += ATOI2(string) [all...] |
/src/lib/libskey/ |
skeylogin.c | 247 struct tm *tm; local in function:skeyverify 253 tm = localtime(&now); 254 strftime(tbuf, sizeof(tbuf), " %b %d,%Y %T", tm);
|
/src/sbin/dmesg/ |
dmesg.c | 354 struct tm tm; local in function:main 364 if (localtime_r(&t, &tm) != NULL) { 367 &tm);
|