| /freebsd-12-stable/lib/libthr/thread/ |
| D | thr_umtx.c | 125 struct _umtx_time *tm_p, timeout; in __thr_umutex_timedlock() local 134 timeout._clockid = CLOCK_REALTIME; in __thr_umutex_timedlock() 135 timeout._flags = UMTX_ABSTIME; in __thr_umutex_timedlock() 136 timeout._timeout = *abstime; in __thr_umutex_timedlock() 137 tm_p = &timeout; in __thr_umutex_timedlock() 138 tm_size = sizeof(timeout); in __thr_umutex_timedlock() 195 _thr_umtx_wait(volatile long *mtx, long id, const struct timespec *timeout) in _thr_umtx_wait() argument 198 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait() 199 timeout->tv_nsec <= 0))) in _thr_umtx_wait() 202 __DECONST(void*, timeout))); in _thr_umtx_wait() [all …]
|
| /freebsd-12-stable/sbin/pfctl/tests/files/ |
| D | pf0055.ok | 1 set timeout interval 43 2 set timeout frag 23 3 set timeout tcp.first 423 4 set timeout tcp.opening 123 5 set timeout tcp.established 43758 6 set timeout tcp.closing 744 7 set timeout tcp.finwait 25 8 set timeout tcp.closed 38 9 set timeout udp.first 356 10 set timeout udp.single 73 [all …]
|
| D | pf0055.in | 1 set timeout { interval 43, frag 23 } 2 set timeout { tcp.first 423, tcp.opening 123, tcp.established 43758 } 3 set timeout { tcp.closing 744, tcp.finwait 25, tcp.closed 38 } 4 set timeout { udp.first 356, udp.single 73, udp.multiple 34 } 5 set timeout { icmp.first 464, icmp.error 34 } 6 set timeout { other.first 455, other.single 54, other.multiple 324 } 7 set timeout { src.track 3600 } 17 set timeout interval 344 18 set timeout frag 213
|
| /freebsd-12-stable/contrib/wpa/src/utils/ |
| D | eloop_win.c | 55 struct dl_list timeout; member 78 dl_list_init(&eloop.timeout); in eloop_init() 241 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local 244 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 245 if (timeout == NULL) in eloop_register_timeout() 247 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout() 248 os_free(timeout); in eloop_register_timeout() 251 now_sec = timeout->time.sec; in eloop_register_timeout() 252 timeout->time.sec += secs; in eloop_register_timeout() 253 if (timeout->time.sec < now_sec) { in eloop_register_timeout() [all …]
|
| D | eloop.c | 105 struct dl_list timeout; member 166 dl_list_init(&eloop.timeout); in eloop_init() 776 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local 779 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 780 if (timeout == NULL) in eloop_register_timeout() 782 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout() 783 os_free(timeout); in eloop_register_timeout() 786 now_sec = timeout->time.sec; in eloop_register_timeout() 787 timeout->time.sec += secs; in eloop_register_timeout() 788 if (timeout->time.sec < now_sec) in eloop_register_timeout() [all …]
|
| /freebsd-12-stable/contrib/sendmail/libsm/ |
| D | refill.c | 59 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument 64 if (timeout == SM_TIME_IMMEDIATE) \ 118 sm_lflush(fp, timeout) in sm_lflush() argument 120 int *timeout; 124 return sm_flush(fp, timeout); 141 sm_refill(fp, timeout) in sm_refill() argument 143 int timeout; 149 if (timeout == SM_TIME_DEFAULT) 150 timeout = fp->f_timeout; 151 if (timeout == SM_TIME_IMMEDIATE) [all …]
|
| D | fopen.c | 107 sm_io_open(type, timeout, info, flags, rpool) in sm_io_open() argument 109 int SM_NONVOLATILE timeout; /* this is not the file type timeout */ 127 if (timeout == SM_TIME_DEFAULT) 128 timeout = SM_TIME_FOREVER; 129 if (timeout == SM_TIME_IMMEDIATE) 138 if (timeout != SM_TIME_FOREVER) 145 evt = sm_seteventm(timeout, openalrm, 0); 221 sm_io_reopen(type, timeout, info, flags, rpool, fp) in sm_io_reopen() argument 223 int SM_NONVOLATILE timeout; 235 (void) sm_io_close(fp, timeout); [all …]
|
| D | sem.c | 113 sm_sem_acq(semid, semnum, timeout) in sm_sem_acq() argument 116 int timeout; 124 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT); 125 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER) 133 --timeout; 134 } while (timeout > 0); 152 sm_sem_rel(semid, semnum, timeout) in sm_sem_rel() argument 155 int timeout; 168 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT); 169 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER) [all …]
|
| D | fpos.c | 70 sm_io_tell(fp, timeout) in sm_io_tell() argument 72 int SM_NONVOLATILE timeout; 84 if (timeout == SM_TIME_DEFAULT) 85 timeout = fp->f_timeout; 86 if (timeout == SM_TIME_IMMEDIATE) 102 (void) sm_flush(fp, (int *) &timeout); 105 if (timeout != SM_TIME_FOREVER) 113 evt = sm_seteventm(timeout, tellalrm, 0);
|
| /freebsd-12-stable/sys/arm/freescale/imx/ |
| D | imx_wdog.c | 102 imx_wdog_enable(struct imx_wdog_softc *sc, u_int timeout) in imx_wdog_enable() argument 106 if (timeout < 1 || timeout > 128) in imx_wdog_enable() 110 if (timeout != sc->sc_timeout) { in imx_wdog_enable() 111 sc->sc_timeout = timeout; in imx_wdog_enable() 114 reg |= ((2 * timeout - 1) << WDOG_CR_WT_SHIFT); in imx_wdog_enable() 135 u_int timeout; in imx_watchdog() local 143 timeout = (u_int)((1ULL << (cmd & WD_INTERVAL)) / 1000000000U); in imx_watchdog() 144 if (imx_wdog_enable(sc, timeout) == 0) in imx_watchdog() 188 pcell_t timeout; in imx_wdog_attach() local 225 &timeout, sizeof(timeout)) == sizeof(timeout)) { in imx_wdog_attach() [all …]
|
| /freebsd-12-stable/bin/pwait/tests/ |
| D | pwait_test.sh | 24 timeout --preserve-status 15 pwait $p1 $p5 $p10 66 timeout --preserve-status 2 pwait -t 1d $init 72 timeout --preserve-status 2 pwait -t 1d $init 78 timeout --preserve-status 2 pwait -t -1 $init 84 timeout --preserve-status 2 pwait -t 100000001 $init 92 timeout --preserve-status 2 pwait -t 100000000 $init 98 timeout --preserve-status 2 pwait -t 1h $init 104 timeout --preserve-status 2 pwait -t 1.5h $init 110 timeout --preserve-status 2 pwait -t 1m $init 116 timeout --preserve-status 2 pwait -t 1.5m $init [all …]
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/src/ |
| D | linux_schedule.c | 46 const char *wmesg, int timeout, int state) in linux_add_to_sleepqueue() argument 56 if (timeout != 0) in linux_add_to_sleepqueue() 57 sleepq_set_timeout(wchan, timeout); in linux_add_to_sleepqueue() 61 if (timeout == 0) in linux_add_to_sleepqueue() 66 if (timeout == 0) { in linux_add_to_sleepqueue() 257 linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout, in linux_wait_event_common() argument 267 if (timeout < 1) in linux_wait_event_common() 268 timeout = 1; in linux_wait_event_common() 269 else if (timeout == MAX_SCHEDULE_TIMEOUT) in linux_wait_event_common() 270 timeout = 0; in linux_wait_event_common() [all …]
|
| /freebsd-12-stable/sbin/camcontrol/ |
| D | camcontrol.h | 64 int ata_do_identify(struct cam_device *device, int retry_count, int timeout, 67 int timeout, int verbosemode); 68 int get_device_type(struct cam_device *dev, int retry_count, int timeout, 75 size_t cdb_storage_len, uint8_t sense_len, uint32_t timeout, 83 int retry_count, int timeout); 85 int task_attr, int retry_count, int timeout, int verbosemode); 87 int retry_count, int timeout, int verbosemode); 89 char *combinedopt, int task_attr, int retry_count, int timeout, 93 int timeout, uint8_t *data, int datalen); 95 int task_attr, int retry_count, int timeout, u_int8_t *data, [all …]
|
| D | timestamp.c | 67 int timeout); 69 int task_attr, int retry_count, int timeout); 72 int timeout); 76 int task_attr, int retry_count, int timeout) in set_restore_flags() argument 110 /*timeout*/ timeout ? timeout : 5000); in set_restore_flags() 161 /*timeout*/ timeout ? timeout : 5000); in set_restore_flags() 189 int retry_count, int timeout) in report_timestamp() argument 214 /*timeout*/ timeout ? timeout : 5000); in report_timestamp() 248 int timeout) in set_timestamp() argument 260 retry_count, timeout); in set_timestamp() [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | ser-unix.c | 70 static int wait_for (struct serial *scb, int timeout); 71 static int hardwire_readchar (struct serial *scb, int timeout); 72 static int do_hardwire_readchar (struct serial *scb, int timeout); 73 static int generic_readchar (struct serial *scb, int timeout, 75 int timeout)); 95 static int do_unix_readchar (struct serial *scb, int timeout); 369 struct timeval timeout; in hardwire_send_break() local 376 timeout.tv_sec = 0; in hardwire_send_break() 377 timeout.tv_usec = 250000; in hardwire_send_break() 378 select (0, 0, 0, 0, &timeout); in hardwire_send_break() [all …]
|
| /freebsd-12-stable/contrib/ofed/libibmad/ |
| D | smp.c | 61 unsigned mod, unsigned timeout, int *rstatus, in smp_set_status_via() argument 78 rpc.timeout = timeout; in smp_set_status_via() 93 unsigned mod, unsigned timeout, in smp_set_via() argument 96 return smp_set_status_via(data, portid, attrid, mod, timeout, NULL, in smp_set_via() 101 unsigned mod, unsigned timeout) in smp_set() argument 103 return smp_set_via(data, portid, attrid, mod, timeout, ibmp); in smp_set() 107 unsigned attrid, unsigned mod, unsigned timeout, in smp_query_status_via() argument 117 rpc.timeout = timeout; in smp_query_status_via() 139 unsigned mod, unsigned timeout, in smp_query_via() argument 142 return smp_query_status_via(rcvbuf, portid, attrid, mod, timeout, NULL, in smp_query_via() [all …]
|
| /freebsd-12-stable/contrib/apr/support/unix/ |
| D | waitio.c | 44 int rc, timeout; in apr_wait_for_io_or_timeout() local 46 timeout = f ? f->timeout / 1000 : s->timeout / 1000; in apr_wait_for_io_or_timeout() 51 rc = poll(&pfd, 1, timeout); in apr_wait_for_io_or_timeout() 69 apr_interval_time_t timeout; in apr_wait_for_io_or_timeout() local 88 timeout = f->timeout; in apr_wait_for_io_or_timeout() 95 timeout = s->timeout; in apr_wait_for_io_or_timeout() 112 status = apr_pollset_poll(pollset, timeout, &numdesc, &pdesc); in apr_wait_for_io_or_timeout()
|
| /freebsd-12-stable/contrib/sendmail/libmilter/ |
| D | smfi.c | 49 struct timeval timeout; local 53 timeout.tv_sec = ctx->ctx_timeout; 54 timeout.tv_usec = 0; 72 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len); 182 struct timeval timeout; 186 timeout.tv_sec = ctx->ctx_timeout; 187 timeout.tv_usec = 0; 215 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len); 247 struct timeval timeout; local 251 timeout.tv_sec = ctx->ctx_timeout; [all …]
|
| /freebsd-12-stable/usr.bin/timeout/tests/ |
| D | timeout_test.sh | 15 timeout 5 true 30 timeout 1d true 36 timeout 1h true 42 timeout 1m true 48 timeout 1s true 63 timeout 0 true 78 -x timeout 5 sh -c \'exit 2\' 103 -x sh -c 'trap "" CHLD; exec timeout 10 true'
|
| /freebsd-12-stable/sys/sys/ |
| D | timepps.h | 112 struct timespec timeout; member 118 struct timespec timeout; member 219 pps_info_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch() argument 225 if (timeout == NULL) { in time_pps_fetch() 226 arg.timeout.tv_sec = -1; in time_pps_fetch() 227 arg.timeout.tv_nsec = -1; in time_pps_fetch() 229 arg.timeout = *timeout; in time_pps_fetch() 237 pps_info_ffc_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch_ffc() argument 243 if (timeout == NULL) { in time_pps_fetch_ffc() 244 arg.timeout.tv_sec = -1; in time_pps_fetch_ffc() [all …]
|
| /freebsd-12-stable/usr.sbin/bluetooth/btpand/ |
| D | event.h | 56 struct timeval timeout; member 83 #define event_add(ev, timeout) \ argument 84 _event_add(__FILE__, __LINE__, ev, timeout) 90 #define evtimer_add(ev, timeout) \ argument 91 _event_add(__FILE__, __LINE__, ev, timeout) 108 struct timeval const *timeout) { in _event_add() argument 111 ev->cbarg, timeout); in _event_add() 116 return (__event_add(ev, timeout)); in _event_add() 138 #define event_add(ev, timeout) \ argument 139 __event_add(ev, timeout) [all …]
|
| /freebsd-12-stable/contrib/apr/poll/unix/ |
| D | poll.c | 73 apr_interval_time_t timeout) in apr_poll() argument 116 if (timeout > 0) { in apr_poll() 117 timeout /= 1000; /* convert microseconds to milliseconds */ in apr_poll() 120 i = poll(pollset, num_to_poll, timeout); in apr_poll() 237 apr_interval_time_t timeout, in impl_pollset_poll() argument 249 if (timeout > 0) { in impl_pollset_poll() 250 apr_sleep(timeout); in impl_pollset_poll() 255 if (timeout > 0) { in impl_pollset_poll() 256 timeout /= 1000; in impl_pollset_poll() 258 ret = WSAPoll(pollset->p->pollset, pollset->nelts, (int)timeout); in impl_pollset_poll() [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
| D | t_poll.c | 249 struct timespec timeout; in ATF_TC_BODY() local 260 timeout.tv_sec = 1; in ATF_TC_BODY() 261 timeout.tv_nsec = 0; in ATF_TC_BODY() 269 ATF_REQUIRE_EQ_MSG(ret = pollts(&pfds[0], 1, &timeout, NULL), 0, in ATF_TC_BODY() 277 ATF_REQUIRE_EQ_MSG(ret = pollts(&pfds[1], 1, &timeout, NULL), 1, in ATF_TC_BODY() 286 ATF_REQUIRE_EQ_MSG(ret = pollts(pfds, 2, &timeout, NULL), 1, in ATF_TC_BODY() 298 ATF_REQUIRE_EQ_MSG(ret = pollts(pfds, 2, &timeout, NULL), 2, in ATF_TC_BODY() 317 struct timespec timeout; in ATF_TC_BODY() local 324 timeout.tv_sec = 1; in ATF_TC_BODY() 325 timeout.tv_nsec = 0; in ATF_TC_BODY() [all …]
|
| /freebsd-12-stable/crypto/openssl/doc/man3/ |
| D | SSL_CTX_set_timeout.pod | 5 SSL_CTX_set_timeout, SSL_CTX_get_timeout - manipulate timeout values for session caching 16 SSL_CTX_set_timeout() sets the timeout for newly created sessions for 17 B<ctx> to B<t>. The timeout value B<t> must be given in seconds. 19 SSL_CTX_get_timeout() returns the currently set timeout value for B<ctx>. 25 timeout value valid at this time. If the actual time is later than creation 26 time plus timeout, the session is not reused. 28 Due to this realization, all sessions behave according to the timeout value 29 valid at the time of the session negotiation. Changes of the timeout value 40 The default value for session timeout is decided on a per protocol 42 All currently supported protocols have the same default timeout value [all …]
|
| /freebsd-12-stable/sys/dev/viawd/ |
| D | viawd.c | 76 viawd_tmr_set(struct viawd_softc *sc, unsigned int timeout) in viawd_tmr_set() argument 80 if (timeout < VIAWD_MEM_COUNT_MIN) in viawd_tmr_set() 81 timeout = VIAWD_MEM_COUNT_MIN; in viawd_tmr_set() 82 else if (timeout > VIAWD_MEM_COUNT_MAX) in viawd_tmr_set() 83 timeout = VIAWD_MEM_COUNT_MAX; in viawd_tmr_set() 85 viawd_write_4(sc, VIAWD_MEM_COUNT, timeout); in viawd_tmr_set() 86 sc->timeout = timeout; in viawd_tmr_set() 97 unsigned int timeout; in viawd_event() local 101 timeout = ((uint64_t)1 << cmd) / 1000000000; in viawd_event() 103 if (timeout != sc->timeout) in viawd_event() [all …]
|