Home
last modified time | relevance | path

Searched refs:timeleft (Results 1 – 21 of 21) sorted by relevance

/freebsd/sbin/shutdown/
H A Dshutdown.c62 int timeleft, timetowait; member
264 if (tp->timeleft < offset) in loop()
265 (void)sleep((u_int)(offset - tp->timeleft)); in loop()
267 while (tp->timeleft && offset < tp->timeleft) in loop()
273 if ((sltime = offset - tp->timeleft)) { in loop()
281 timewarn(tp->timeleft); in loop()
282 if (!logged && tp->timeleft <= NOLOG_TIME) { in loop()
287 if (!tp->timeleft) in loop()
301 timewarn(int timeleft) in timewarn() argument
321 timeleft ? "": "FINAL ", whom, hostname); in timewarn()
[all …]
/freebsd/crypto/openssl/ssl/
H A Dd1_lib.c304 struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) in dtls1_get_timeout() argument
320 memset(timeleft, 0, sizeof(*timeleft)); in dtls1_get_timeout()
321 return timeleft; in dtls1_get_timeout()
325 memcpy(timeleft, &(s->d1->next_timeout), sizeof(struct timeval)); in dtls1_get_timeout()
326 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout()
327 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
328 if (timeleft->tv_usec < 0) { in dtls1_get_timeout()
329 timeleft->tv_sec--; in dtls1_get_timeout()
330 timeleft->tv_usec += 1000000; in dtls1_get_timeout()
337 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) { in dtls1_get_timeout()
[all …]
H A Dssl_local.h2567 __owur struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft);
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_dgram.c201 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local
228 memcpy(&timeleft, &(data->next_timeout), sizeof(struct timeval)); in dgram_adjust_rcv_timeout()
229 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout()
230 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout()
231 timeleft.tv_sec--; in dgram_adjust_rcv_timeout()
233 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout()
235 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout()
236 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout()
237 timeleft.tv_usec = 1; in dgram_adjust_rcv_timeout()
239 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()
[all …]
/freebsd/sys/dev/watchdog/
H A Dwatchdog.c320 time_t timeleft; in wd_ioctl() local
361 error = wd_get_time_left(td, &timeleft); in wd_ioctl()
364 *(int *)data = (int)timeleft; in wd_ioctl()
/freebsd/contrib/ncurses/ncurses/tty/
H A Dlib_twait.c174 int *timeleft in _nc_timed_wait()
474 if (timeleft) in _nc_timed_wait()
475 *timeleft = milliseconds; in _nc_timed_wait()
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_getch.c722 int timeleft = forever ? 9999999 : GetEscdelay(sp); in kgetch() local
784 rc = check_mouse_activity(sp, timeleft EVENTLIST_2nd(evl)); in kgetch()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_win32con.c835 int *timeleft in _nc_console_twait()
991 if (timeleft) in _nc_console_twait()
992 *timeleft = milliseconds; in _nc_console_twait()
H A Dtinfo_driver.c1254 int *timeleft in drv_twait()
1266 timeleft EVENTLIST_2nd(evl)); in drv_twait()
1268 return _nc_timed_wait(sp, mode, milliseconds, timeleft EVENTLIST_2nd(evl)); in drv_twait()
/freebsd/contrib/ncurses/ncurses/win32con/
H A Dwin_driver.c1532 int *timeleft in console_twait()
1632 if (timeleft) in console_twait()
1633 *timeleft = milliseconds; in console_twait()
1642 int *timeleft in wcon_twait()
1655 timeleft EVENTLIST_2nd(evl)); in wcon_twait()
H A Dwin32_driver.c1072 int *timeleft in wcon_twait()
1085 timeleft EVENTLIST_2nd(evl)); in wcon_twait()
/freebsd/contrib/ncurses/ncurses/
H A Dllib-ltinfow1364 int *timeleft)
H A Dllib-ltinfo1331 int *timeleft)
H A Dllib-ltinfotw1465 int *timeleft)
H A Dllib-ltinfot1432 int *timeleft)
H A Dllib-lncursest4170 int *timeleft)
H A Dllib-lncurses4060 int *timeleft)
H A Dllib-lncursestw5142 int *timeleft)
H A Dllib-lncursesw5032 int *timeleft)
/freebsd/sys/netinet/tcp_stacks/
H A Drack.c2253 uint64_t timenow, timeleft, lenleft, lengone, calcbw; in rack_rate_cap_bw() local
2279 timeleft = rack->r_ctl.rc_last_sft->deadline - timenow; in rack_rate_cap_bw()
2280 if (timeleft < HPTS_MSEC_IN_SEC) { in rack_rate_cap_bw()
2283 0, timeleft, 0, HYBRID_LOG_OUTOFTIME, 0, ent, __LINE__); in rack_rate_cap_bw()
2299 0, timeleft, 0, HYBRID_LOG_CAPERROR, 0, ent, __LINE__); in rack_rate_cap_bw()
2318 0, timeleft, lengone, HYBRID_LOG_CAPERROR, 0, ent, __LINE__); in rack_rate_cap_bw()
2326 0, timeleft, lenleft, HYBRID_LOG_ALLSENT, 0, ent, __LINE__); in rack_rate_cap_bw()
2333 calcbw /= timeleft; in rack_rate_cap_bw()
2350 calcbw, timeleft, lenleft, HYBRID_LOG_CAP_CALC, 0, ent, __LINE__); in rack_rate_cap_bw()
/freebsd/contrib/ncurses/
H A DNEWS12858 was the assumption of !GOOD_SELECT && HAVE_GETTIMEOFDAY in *timeleft