Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 1679) sorted by relevance

12345678910>>...68

/freebsd/lib/libthr/thread/
H A Dthr_umtx.c112 struct _umtx_time *tm_p, timeout; in __thr_umutex_timedlock() local
121 timeout._clockid = CLOCK_REALTIME; in __thr_umutex_timedlock()
122 timeout._flags = UMTX_ABSTIME; in __thr_umutex_timedlock()
123 timeout._timeout = *abstime; in __thr_umutex_timedlock()
124 tm_p = &timeout; in __thr_umutex_timedlock()
125 tm_size = sizeof(timeout); in __thr_umutex_timedlock()
182 _thr_umtx_wait(volatile long *mtx, long id, const struct timespec *timeout) in _thr_umtx_wait() argument
185 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait()
186 timeout->tv_nsec <= 0))) in _thr_umtx_wait()
189 __DECONST(void*, timeout))); in _thr_umtx_wait()
[all …]
/freebsd/sbin/pfctl/tests/files/
H A Dpf0055.ok1 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 …]
H A Dpf0055.in1 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/contrib/wpa/src/utils/
H A Deloop_win.c55 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 …]
H A Deloop.c105 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/bin/pwait/tests/
H A Dpwait_test.sh23 timeout --preserve-status 15 pwait $p1 $p5 $p10
65 timeout --preserve-status 2 pwait -t 1d $init
71 timeout --preserve-status 2 pwait -t 1d $init
77 timeout --preserve-status 2 pwait -t -1 $init
83 timeout --preserve-status 2 pwait -t 100000001 $init
91 timeout --preserve-status 2 pwait -t 100000000 $init
97 timeout --preserve-status 2 pwait -t 1h $init
103 timeout --preserve-status 2 pwait -t 1.5h $init
109 timeout --preserve-status 2 pwait -t 1m $init
115 timeout --preserve-status 2 pwait -t 1.5m $init
[all …]
/freebsd/contrib/sendmail/libsm/
H A Drefill.c59 #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 …]
H A Dfopen.c107 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 …]
H A Dsem.c113 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 …]
/freebsd/sys/arm/freescale/imx/
H A Dimx_wdog.c101 imx_wdog_enable(struct imx_wdog_softc *sc, u_int timeout) in imx_wdog_enable() argument
105 if (timeout < 1 || timeout > 128) in imx_wdog_enable()
109 if (timeout != sc->sc_timeout) { in imx_wdog_enable()
110 sc->sc_timeout = timeout; in imx_wdog_enable()
113 reg |= ((2 * timeout - 1) << WDOG_CR_WT_SHIFT); in imx_wdog_enable()
134 u_int timeout; in imx_watchdog() local
142 timeout = (u_int)((1ULL << (cmd & WD_INTERVAL)) / 1000000000U); in imx_watchdog()
143 if (imx_wdog_enable(sc, timeout) == 0) in imx_watchdog()
187 pcell_t timeout; in imx_wdog_attach() local
224 &timeout, sizeof(timeout)) == sizeof(timeout)) { in imx_wdog_attach()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_schedule.c43 const char *wmesg, int timeout, int state) in linux_add_to_sleepqueue() argument
53 if (timeout != 0) in linux_add_to_sleepqueue()
54 sleepq_set_timeout(wchan, timeout); in linux_add_to_sleepqueue()
58 if (timeout == 0) in linux_add_to_sleepqueue()
63 if (timeout == 0) { in linux_add_to_sleepqueue()
252 linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout,
261 /* range check timeout */ in linux_wait_event_common()
262 if (timeout < 1) in linux_wait_event_common()
263 timeout = 1; in linux_wait_event_common()
264 else if (timeout in linux_wait_event_common()
254 linux_wait_event_common(wait_queue_head_t * wqh,wait_queue_t * wq,int timeout,unsigned int state,spinlock_t * lock) linux_wait_event_common() argument
292 linux_schedule_timeout(int timeout) linux_schedule_timeout() argument
359 linux_wait_on_bit_timeout(unsigned long * word,int bit,unsigned int state,int timeout) linux_wait_on_bit_timeout() argument
[all...]
/freebsd/sbin/camcontrol/
H A Dcamcontrol.h62 int ata_do_identify(struct cam_device *device, int retry_count, int timeout,
65 int timeout, int verbosemode);
66 int get_device_type(struct cam_device *dev, int retry_count, int timeout,
73 size_t cdb_storage_len, uint8_t sense_len, uint32_t timeout,
81 int retry_count, int timeout);
83 int task_attr, int retry_count, int timeout, int verbosemode);
85 int retry_count, int timeout, int verbosemode);
87 char *combinedopt, int task_attr, int retry_count, int timeout,
90 char *combinedopt, int task_attr, int retry_count, int timeout,
94 int timeout, uint8_t *data, int datalen);
[all …]
H A Ddepop.c80 int timeout, int verbosemode __unused) in depop_list() argument
87 hdr = scsi_wrap_get_physical_element_status(device, task_attr, retry_count, timeout, in depop_list()
117 int timeout, int verbosemode __unused, uint32_t elem, uint64_t capacity) in depop_remove() argument
134 timeout); in depop_remove()
156 int timeout, int verbosemode __unused) in depop_restore() argument
171 timeout); in depop_restore()
201 int task_attr, int retry_count, int timeout, int verbosemode) in depop() argument
252 if (timeout == 0 && action != DEPOP_NONE) { in depop()
254 timeout = 5 * 1000; in depop()
258 timeout = 24 * 60 * 60 * 1000; /* 1 day */ in depop()
[all …]
H A Dtimestamp.c64 int timeout);
66 int task_attr, int retry_count, int timeout);
69 int timeout);
73 int task_attr, int retry_count, int timeout) in set_restore_flags() argument
107 /*timeout*/ timeout ? timeout : 5000); in set_restore_flags()
158 /*timeout*/ timeout ? timeout : 5000); in set_restore_flags()
186 int retry_count, int timeout) in report_timestamp() argument
211 /*timeout*/ timeout ? timeout : 5000); in report_timestamp()
245 int timeout) in set_timestamp() argument
257 retry_count, timeout); in set_timestamp()
[all …]
/freebsd/contrib/ofed/libibmad/
H A Dsmp.c61 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/contrib/ldns/ldns/
H A Dnet.h42 …qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout, size_t *answersi…
53 …nd2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
66 …end(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
77 …nd2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
90 …end(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
103 …qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout, size_t *answersi…
135 int ldns_tcp_connect2(const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
146 int ldns_tcp_connect(const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
154 int ldns_udp_connect2(const struct sockaddr_storage *to, struct timeval timeout);
164 int ldns_udp_connect(const struct sockaddr_storage *to, struct timeval timeout);
[all …]
/freebsd/contrib/sendmail/libmilter/
H A Dsmfi.c49 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/bin/timeout/tests/
H A Dtimeout_test.sh14 timeout 5 true
29 timeout 1d true
35 timeout 1h true
41 timeout 1m true
47 timeout 1s true
62 timeout 0 true
77 -x timeout 5 sh -c \'exit 2\'
102 -x sh -c 'trap "" CHLD; exec timeout 10 true'
/freebsd/tests/sys/cddl/zfs/tests/zfsd/
H A Dzfsd.kshlib33 typeset -i timeout=$1
42 log_note "Waiting up to $timeout seconds for $disk to become $state ..."
43 for ((; $timeout > 0; timeout=$timeout-1)); do
54 typeset -i timeout=$1
55 wait_for_pool_dev_state_change $timeout $REMOVAL_DISK "REMOVED|UNAVAIL|FAULTED"
75 typeset -li timeout=60
84 while (( "$now" - "$start" < "$timeout" )); do
/freebsd/sys/sys/
H A Dtimepps.h108 struct timespec timeout; member
114 struct timespec timeout; member
215 pps_info_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch() argument
221 if (timeout == NULL) { in time_pps_fetch()
222 arg.timeout.tv_sec = -1; in time_pps_fetch()
223 arg.timeout.tv_nsec = -1; in time_pps_fetch()
225 arg.timeout = *timeout; in time_pps_fetch()
233 pps_info_ffc_t *ppsinfobuf, const struct timespec *timeout) in time_pps_fetch_ffc() argument
239 if (timeout == NULL) { in time_pps_fetch_ffc()
240 arg.timeout.tv_sec = -1; in time_pps_fetch_ffc()
[all …]
/freebsd/usr.sbin/bluetooth/btpand/
H A Devent.h55 struct timeval timeout; member
82 #define event_add(ev, timeout) \ argument
83 _event_add(__FILE__, __LINE__, ev, timeout)
89 #define evtimer_add(ev, timeout) \ argument
90 _event_add(__FILE__, __LINE__, ev, timeout)
107 struct timeval const *timeout) { in _event_add() argument
110 ev->cbarg, timeout); in _event_add()
115 return (__event_add(ev, timeout)); in _event_add()
137 #define event_add(ev, timeout) \ argument
138 __event_add(ev, timeout)
[all …]
/freebsd/contrib/ldns/
H A Dnet.c153 ldns_sock_wait(int sockfd, struct timeval timeout, int write) in ldns_sock_wait() argument
162 ret = select(sockfd+1, NULL, &fds, NULL, &timeout); in ldns_sock_wait()
164 ret = select(sockfd+1, &fds, NULL, NULL, &timeout); in ldns_sock_wait()
178 ret = poll(pfds, 1, (int)(timeout.tv_sec * 1000 in ldns_sock_wait()
179 + timeout.tv_usec / 1000)); in ldns_sock_wait()
194 struct timeval timeout) argument
236 if(!ldns_sock_wait(sockfd, timeout, 1)) {
284 struct timeval timeout) argument
286 int s = ldns_tcp_connect_from(to, tolen, NULL, 0, timeout);
292 struct timeval timeout) argument
[all …]
/freebsd/sys/dev/viawd/
H A Dviawd.c72 viawd_tmr_set(struct viawd_softc *sc, unsigned int timeout) in viawd_tmr_set() argument
76 if (timeout < VIAWD_MEM_COUNT_MIN) in viawd_tmr_set()
77 timeout = VIAWD_MEM_COUNT_MIN; in viawd_tmr_set()
78 else if (timeout > VIAWD_MEM_COUNT_MAX) in viawd_tmr_set()
79 timeout = VIAWD_MEM_COUNT_MAX; in viawd_tmr_set()
81 viawd_write_4(sc, VIAWD_MEM_COUNT, timeout); in viawd_tmr_set()
82 sc->timeout = timeout; in viawd_tmr_set()
93 unsigned int timeout; in viawd_event() local
97 timeout = ((uint64_t)1 << cmd) / 1000000000; in viawd_event()
99 if (timeout != sc->timeout) in viawd_event()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c249 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/crypto/openssl/doc/man3/
H A DSSL_CTX_set_timeout.pod5 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 …]

12345678910>>...68