/src/sbin/dump/ |
unctime.c | 55 struct tm then; local in function:unctime 57 str = strptime(str, "%a %b %e %H:%M:%S %Y", &then); 58 then.tm_isdst = -1; 61 return mktime(&then);
|
optr.c | 218 char then[STAMP_LENGTH + 1]; local in function:do_timestamp 221 if (strftime(then, STAMP_LENGTH, time_string, &tm_time) == 0) { 223 strftime(then, STAMP_LENGTH, time_string, &tm_time); 228 fprintf(stderr, message, then);
|
/src/usr.sbin/timed/timed/ |
candidate.c | 51 struct timeval then, wait; local in function:election 84 (void)gettimeofday(&then, 0); 85 then.tv_sec += 3; 88 timersub(&then, &wait, &wait);
|
/src/regress/sys/kern/kqueue/vnode/ |
vnode.c | 48 struct timeval then, now, diff; local in function:main 95 if (gettimeofday(&then, NULL) == -1) 96 err(1, "gettimeofday then"); 100 timersub(&now, &then, &diff);
|
/src/tests/kernel/kqueue/ |
t_sig.c | 107 struct timeval then, now, diff; local in function:ATF_TC_BODY 109 RL(gettimeofday(&then, NULL)); 112 timersub(&now, &then, &diff); 173 * Then, later on, the kernel will post a NOTE_EXIT
|
/src/sys/arch/mvme68k/stand/sboot/ |
le_poll.c | 262 int now, then; local in function:le_get 264 then = 0; 269 if (then != now) { 273 then = now;
|
/src/sys/arch/arm/cortex/ |
gtmr.c | 365 const uint64_t then = sc->sc_physical ? gtmr_cntp_cval_read() : gtmr_cntv_cval_read(); local in function:gtmr_intr 367 KASSERTMSG(then <= now, "%"PRId64, now - then); 368 KASSERTMSG(then + pc->pc_delta >= ci->ci_lastintr + sc->sc_autoinc, 369 "%"PRId64, then + pc->pc_delta - ci->ci_lastintr - sc->sc_autoinc);
|
/src/tests/lib/libc/sys/ |
t_timerfd.c | 260 struct timespec then, now, delta; local in function:ATF_TC_BODY 266 RL(clock_gettime(CLOCK_MONOTONIC, &then)); 267 timespecadd(&then, &its.it_value, &its.it_value); 282 timespecsub(&now, &then, &delta); 284 "then=%jd.%09lu now=%jd.%09lu delta=%jd.%09lu", 285 (intmax_t)then.tv_sec, then.tv_nsec, 301 struct timespec then, now, delta; local in function:ATF_TC_BODY 313 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); 325 timespecsub(&now, &then, &delta) 344 struct timespec then, now, delta; local in function:ATF_TC_BODY 383 struct timespec then, now, delta; local in function:ATF_TC_BODY 627 struct timespec then, now; local in function:ATF_TC_BODY 720 struct timespec then, now, delta; local in function:ATF_TC_BODY [all...] |
/src/usr.bin/vacation/ |
vacation.c | 537 time_t then, next; local in function:recent 551 (void)memmove(&then, data.data, sizeof(then)); 553 then + next > time(NULL))
|
/src/libexec/ftpd/ |
conf.c | 521 time_t now, then; local in function:show_chdir_messages 575 then = st.st_mtime; 583 t = localtime(&then); 586 ctime(&then), age, PLURAL(age));
|
ftpd.c | 860 * _NAME_FTPUSERS, and ftp account exists, set guest and pw, then just return. 2113 struct timeval *then, int isdata) 2145 timersub(&now, then, &td); 2148 (void)gettimeofday(then, NULL); 2150 *then = now; 2161 struct timeval then; local in function:send_data_with_read 2178 (void)gettimeofday(&then, NULL); 2188 else if (write_data(netfd, buf, c, &bufrem, &then, isdata)) 2203 struct timeval then; local in function:send_data_with_mmap 2241 (void)gettimeofday(&then, NULL) 2435 struct timeval then, now, td; local in function:receive_data [all...] |
/src/usr.bin/w/ |
w.c | 140 time_t then; local in function:main 425 then = (time_t)ep->tv.tv_sec; 426 pr_attime(&then, &now);
|
/src/usr.bin/make/unit-tests/ |
directive-include-guard.mk | 26 # test case and writes some lines of text to that file. That file is then 297 CASES+= variable-defined-then-undefined 298 LINES.variable-defined-then-undefined= \ 302 UNDEF_BETWEEN.variable-defined-then-undefined= \ 304 # expect: Parse_PushInput: variable-defined-then-undefined.tmp:1 305 # expect: Parse_PushInput: variable-defined-then-undefined.tmp:1 557 # the file is read once and then considered guarded. 571 # doesn't work, as the whole line is first expanded and then scanned for the
|
/src/sys/netinet/ |
tcp_vtw.c | 1488 struct timeval then, *when = _when; local in function:vtw_age 1514 then = vtw->expire; 1515 when = &then;
|
/src/usr.bin/ftp/ |
fetch.c | 1768 struct timeval then, now, td; local in function:fetch_url 1772 (void)gettimeofday(&then, NULL); 1808 timersub(&now, &then, &td); 2020 * then a path of the form `/file' (resulting from input of the 2024 * But if we are dealing with URLs like `ftp://host/path' then 2122 * (urltype is CLASSIC_URL_T) then we have a raw directory 2127 * (urltype is FTP_URL_T), then RFC 3986 says we need to 2338 * or something that was already handled, then it's 2341 * If it contains ":" but not "://" then we assume the
|