/freebsd/lib/libthr/thread/ |
H A D | thr_umtx.c | 124 tm_p = &timeout; in __thr_umutex_timedlock() 125 tm_size = sizeof(timeout); in __thr_umutex_timedlock() 185 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait() 197 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait_uint() 219 tm_p = &timeout; in _thr_umtx_timedwait_uint() 220 tm_size = sizeof(timeout); in _thr_umtx_timedwait_uint() 249 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_ucond_wait() 288 timeout._timeout = *tsp; in __thr_rwlock_rdlock() 291 tm_p = &timeout; in __thr_rwlock_rdlock() 308 timeout._timeout = *tsp; in __thr_rwlock_wrlock() [all …]
|
/freebsd/sbin/pfctl/tests/files/ |
H A 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 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 13 set timeout icmp.error 34 [all …]
|
H A 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/contrib/wpa/src/utils/ |
H A D | eloop_win.c | 244 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 279 dl_list_add_tail(&eloop.timeout, &timeout->list); in eloop_register_timeout() 288 os_free(timeout); in eloop_remove_timeout() 298 dl_list_for_each_safe(timeout, prev, &eloop.timeout, in eloop_cancel_timeout() 325 dl_list_for_each_safe(timeout, prev, &eloop.timeout, in eloop_cancel_timeout_one() 544 timeout = dl_list_first(&eloop.timeout, struct eloop_timeout, in eloop_run() 546 if (timeout) { in eloop_run() 562 if (timeout) in eloop_run() 585 timeout = dl_list_first(&eloop.timeout, struct eloop_timeout, in eloop_run() 587 if (timeout) { in eloop_run() [all …]
|
H A D | eloop.c | 779 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 811 dl_list_add_tail(&eloop.timeout, &timeout->list); in eloop_register_timeout() 831 wpa_trace_remove_ref(timeout, eloop, timeout->eloop_data); in eloop_remove_timeout() 832 wpa_trace_remove_ref(timeout, user, timeout->user_data); in eloop_remove_timeout() 843 dl_list_for_each_safe(timeout, prev, &eloop.timeout, in eloop_cancel_timeout() 870 dl_list_for_each_safe(timeout, prev, &eloop.timeout, in eloop_cancel_timeout_one() 1116 timeout = dl_list_first(&eloop.timeout, struct eloop_timeout, in eloop_run() 1118 if (timeout) { in eloop_run() 1198 if (timeout) { in eloop_run() 1268 dl_list_for_each_safe(timeout, prev, &eloop.timeout, in eloop_destroy() [all …]
|
/freebsd/bin/pwait/tests/ |
H A D | pwait_test.sh | 23 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 97 timeout --preserve-status 2 pwait -t 1h $init 109 timeout --preserve-status 2 pwait -t 1m $init 121 timeout --preserve-status 2 pwait -t 0 $init 129 timeout --preserve-status 2 pwait -t 1s $init 141 timeout --preserve-status 2 pwait -t 1 $init 171 timeout --preserve-status 6.5 pwait -t 5 $p10 [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | refill.c | 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) 188 if (sm_flush(fp, &timeout)) 293 sm_rget(fp, timeout) in sm_rget() argument [all …]
|
H A D | fopen.c | 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); 223 int SM_NONVOLATILE timeout; 235 (void) sm_io_close(fp, timeout); 242 if (timeout == SM_TIME_DEFAULT) 243 timeout = SM_TIME_FOREVER; 244 if (timeout == SM_TIME_IMMEDIATE) [all …]
|
H A 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; 169 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER) 177 --timeout; [all …]
|
H A 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/sys/arm/freescale/imx/ |
H A D | imx_wdog.c | 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 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() 225 if (timeout < 1 || timeout > 128) { in imx_wdog_attach() 228 timeout = 128; in imx_wdog_attach() [all …]
|
/freebsd/sbin/camcontrol/ |
H A D | camcontrol.h | 65 int timeout, int verbosemode); 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); 94 int timeout, uint8_t *data, int datalen); 96 int task_attr, int retry_count, int timeout, uint8_t *data, 100 int task_attr, int retry_count, int timeout); 105 int timeout); 109 int timeout, int verbosemode, uint32_t *fill_len, [all …]
|
H A D | depop.c | 80 int timeout, int verbosemode __unused) in depop_list() argument 134 timeout); in depop_remove() 156 int timeout, int verbosemode __unused) in depop_restore() argument 171 timeout); in depop_restore() 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() 261 timeout = scsi_4btoul(bdc->depopulation_time); in depop() 278 error = depop_remove(device, task_attr, retry_count, timeout, in depop() 282 error = depop_restore(device, task_attr, retry_count, timeout, in depop() [all …]
|
H A D | timestamp.c | 64 int timeout); 69 int timeout); 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() 296 /*timeout*/ timeout ? timeout : 5000); in set_timestamp() 455 timeout); in timestamp() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_schedule.c | 53 if (timeout != 0) in linux_add_to_sleepqueue() 58 if (timeout == 0) in linux_add_to_sleepqueue() 264 if (timeout < 1) in linux_wait_event_common() 265 timeout = 1; in linux_wait_event_common() 267 timeout = 0; in linux_wait_event_common() 302 if (timeout < 1) in linux_schedule_timeout() 303 timeout = 1; in linux_schedule_timeout() 305 timeout = 0; in linux_schedule_timeout() 359 int timeout) in linux_wait_on_bit_timeout() argument 367 timeout = 1; in linux_wait_on_bit_timeout() [all …]
|
/freebsd/contrib/ofed/libibmad/ |
H A 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 147 unsigned mod, unsigned timeout) in smp_query() argument [all …]
|
/freebsd/bin/timeout/tests/ |
H A D | timeout_test.sh | 14 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/contrib/ldns/ldns/ |
H A D | net.h | 42 …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/tests/sys/cddl/zfs/tests/zfsd/ |
H A D | zfsd.kshlib | 33 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" 75 typeset -li timeout=60 84 while (( "$now" - "$start" < "$timeout" )); do
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | smfi.c | 49 struct timeval timeout; local 54 timeout.tv_usec = 0; 182 struct timeval timeout; 187 timeout.tv_usec = 0; 247 struct timeval timeout; local 252 timeout.tv_usec = 0; 393 timeout.tv_usec = 0; 422 timeout.tv_usec = 0; 454 timeout.tv_usec = 0; 497 timeout.tv_usec = 0; [all …]
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | event.h | 55 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 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) 144 #define evtimer_add(ev, timeout) \ argument [all …]
|
/freebsd/sys/sys/ |
H A D | timepps.h | 108 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() 239 if (timeout == NULL) { in time_pps_fetch_ffc() 240 arg.timeout.tv_sec = -1; in time_pps_fetch_ffc() 241 arg.timeout.tv_nsec = -1; in time_pps_fetch_ffc() [all …]
|
/freebsd/sys/dev/viawd/ |
H A D | viawd.c | 72 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/ldns/ |
H A D | net.c | 179 + timeout.tv_usec / 1000)); in ldns_sock_wait() 194 struct timeval timeout) argument 284 struct timeval timeout) argument 292 struct timeval timeout) argument 301 struct timeval timeout) argument 318 struct timeval timeout) argument 327 struct timeval timeout) argument 405 struct timeval timeout) argument 430 struct timeval timeout) argument 439 struct timeval timeout) argument [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A 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() 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() 330 timeout.tv_sec = -1; in ATF_TC_BODY() 331 timeout.tv_nsec = -1; in ATF_TC_BODY() 349 struct timespec timeout; in ATF_TC_BODY() local 360 timeout.tv_sec = 1; in ATF_TC_BODY() [all …]
|