Home
last modified time | relevance | path

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

1234567

/glibc-2.36/sysdeps/unix/sysv/linux/
Dselect.c33 struct __timeval64 *timeout) in __select64() argument
35 __time64_t s = timeout != NULL ? timeout->tv_sec : 0; in __select64()
36 int32_t us = timeout != NULL ? timeout->tv_usec : 0; in __select64()
57 if (timeout != NULL) in __select64()
71 if (timeout != NULL) in __select64()
72 TIMESPEC_TO_TIMEVAL (timeout, pts64); in __select64()
75 bool need_time64 = timeout != NULL && !in_time_t_range (timeout->tv_sec); in __select64()
80 if ((r >= 0 || errno != ENOSYS) && timeout != NULL) in __select64()
82 TIMESPEC_TO_TIMEVAL (timeout, &ts64); in __select64()
100 if (timeout != NULL) in __select64()
[all …]
Dppoll.c25 __ppoll64 (struct pollfd *fds, nfds_t nfds, const struct __timespec64 *timeout, in __ppoll64() argument
31 if (timeout != NULL) in __ppoll64()
33 tval = *timeout; in __ppoll64()
34 timeout = &tval; in __ppoll64()
42 return SYSCALL_CANCEL (ppoll_time64, fds, nfds, timeout, sigmask, in __ppoll64()
46 bool need_time64 = timeout != NULL && !in_time_t_range (timeout->tv_sec); in __ppoll64()
49 ret = SYSCALL_CANCEL (ppoll_time64, fds, nfds, timeout, sigmask, in __ppoll64()
58 if (timeout != NULL) in __ppoll64()
59 ts32 = valid_timespec64_to_timespec (*timeout); in __ppoll64()
61 return SYSCALL_CANCEL (ppoll, fds, nfds, timeout ? &ts32 : NULL, sigmask, in __ppoll64()
[all …]
Dpselect.c23 fd_set *exceptfds, const struct __timespec64 *timeout, in pselect64_syscall() argument
35 timeout, data); in pselect64_syscall()
40 const struct __timespec64 *timeout, const sigset_t *sigmask) in __pselect64() argument
45 if (timeout != NULL) in __pselect64()
47 tval = *timeout; in __pselect64()
48 timeout = &tval; in __pselect64()
56 return pselect64_syscall (nfds, readfds, writefds, exceptfds, timeout, in __pselect64()
59 bool need_time64 = timeout != NULL && !in_time_t_range (timeout->tv_sec); in __pselect64()
62 int r = pselect64_syscall (nfds, readfds, writefds, exceptfds, timeout, in __pselect64()
70 return __pselect32 (nfds, readfds, writefds, exceptfds, timeout, sigmask); in __pselect64()
[all …]
Dsemtimedop.c25 const struct __timespec64 *timeout) in semtimedop_syscall() argument
28 return INLINE_SYSCALL_CALL (semtimedop_time64, semid, sops, nsops, timeout); in semtimedop_syscall()
30 return INLINE_SYSCALL_CALL (semtimedop, semid, sops, nsops, timeout); in semtimedop_syscall()
33 SEMTIMEDOP_IPC_ARGS (nsops, sops, timeout)); in semtimedop_syscall()
40 const struct __timespec64 *timeout) in __semtimedop64() argument
43 return semtimedop_syscall (semid, sops, nsops, timeout); in __semtimedop64()
45 bool need_time64 = timeout != NULL && !in_time_t_range (timeout->tv_sec); in __semtimedop64()
48 int r = semtimedop_syscall (semid, sops, nsops, timeout); in __semtimedop64()
56 if (timeout != NULL) in __semtimedop64()
58 ts32 = valid_timespec64_to_timespec (*timeout); in __semtimedop64()
[all …]
Drecvmmsg.c24 int flags, struct __timespec64 *timeout) in recvmmsg_syscall() argument
30 timeout); in recvmmsg_syscall()
36 if (timeout != NULL) in recvmmsg_syscall()
38 if (! in_time_t_range (timeout->tv_sec)) in recvmmsg_syscall()
43 ts32 = valid_timespec64_to_timespec (*timeout); in recvmmsg_syscall()
54 if (timeout != NULL) in recvmmsg_syscall()
55 *timeout = valid_timespec_to_timespec64 (ts32); in recvmmsg_syscall()
63 struct __timespec64 *timeout) in __recvmmsg64() argument
73 int r = recvmmsg_syscall (fd, vmessages, vlen, flags, timeout); in __recvmmsg64()
88 struct timespec *timeout) in libc_hidden_def()
[all …]
Dsigtimedwait.c23 const struct __timespec64 *timeout) in __sigtimedwait64() argument
31 result = SYSCALL_CANCEL (rt_sigtimedwait_time64, set, info, timeout, in __sigtimedwait64()
34 bool need_time64 = timeout != NULL && !in_time_t_range (timeout->tv_sec); in __sigtimedwait64()
37 result = SYSCALL_CANCEL (rt_sigtimedwait_time64, set, info, timeout, in __sigtimedwait64()
47 if (timeout != NULL) in __sigtimedwait64()
49 ts32 = valid_timespec64_to_timespec (*timeout); in __sigtimedwait64()
71 const struct timespec *timeout) in libc_hidden_def()
74 if (timeout != NULL) in libc_hidden_def()
76 ts64 = valid_timespec_to_timespec64 (*timeout); in libc_hidden_def()
Dpoll.c26 __poll (struct pollfd *fds, nfds_t nfds, int timeout) in __poll() argument
29 return SYSCALL_CANCEL (poll, fds, nfds, timeout); in __poll()
34 if (timeout >= 0) in __poll()
36 timeout_ts.tv_sec = timeout / 1000; in __poll()
37 timeout_ts.tv_nsec = (timeout % 1000) * 1000000; in __poll()
/glibc-2.36/io/
Dppoll.c28 ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, in ppoll() argument
34 if (timeout != NULL) in ppoll()
36 if (timeout->tv_sec < 0 || ! valid_nanoseconds (timeout->tv_nsec)) in ppoll()
42 if (timeout->tv_sec > INT_MAX / 1000 in ppoll()
43 || (timeout->tv_sec == INT_MAX / 1000 in ppoll()
44 && ((timeout->tv_nsec + 999999) / 1000000 > INT_MAX % 1000))) in ppoll()
49 tval = (timeout->tv_sec * 1000 in ppoll()
50 + (timeout->tv_nsec + 999999) / 1000000); in ppoll()
/glibc-2.36/mach/
Dmsg.c39 mach_msg_timeout_t timeout, in __mach_msg_trap() argument
43 rcv_size, rcv_name, timeout, notify, in __mach_msg_trap()
55 mach_msg_timeout_t timeout, in weak_alias()
71 rcv_size, rcv_name, timeout, notify, in weak_alias()
79 rcv_size, rcv_name, timeout, notify, in weak_alias()
85 0, rcv_size, rcv_name, timeout, notify, in weak_alias()
99 mach_msg_timeout_t timeout, in weak_alias()
112 rcv_size, rcv_name, timeout, notify); in weak_alias()
119 rcv_size, rcv_name, timeout, notify); in weak_alias()
124 0, rcv_size, rcv_name, timeout, notify); in weak_alias()
/glibc-2.36/rt/
Daio_suspend.c98 do_aio_misc_wait (unsigned int *cntr, const struct __timespec64 *timeout) in do_aio_misc_wait() argument
102 AIO_MISC_WAIT (result, *cntr, timeout, 1); in do_aio_misc_wait()
110 const struct __timespec64 *timeout) in ___aio_suspend_time64() argument
162 if (timeout != NULL) in ___aio_suspend_time64()
165 ts.tv_sec += timeout->tv_sec; in ___aio_suspend_time64()
166 ts.tv_nsec += timeout->tv_nsec; in ___aio_suspend_time64()
195 result = do_aio_misc_wait (&cntr, timeout == NULL ? NULL : &ts); in ___aio_suspend_time64()
199 timeout == NULL ? NULL : &ts32); in ___aio_suspend_time64()
270 const struct timespec *timeout)
274 if (timeout != NULL)
[all …]
Dtst-aio6.c35 struct timespec timeout; in do_test() local
72 timeout.tv_sec = 3; in do_test()
73 timeout.tv_nsec = 0; in do_test()
74 if (aio_suspend ((const struct aiocb *const*) arr, 1, &timeout) != -1) in do_test()
/glibc-2.36/resolv/
Dgai_suspend.c28 const struct __timespec64 *timeout) in ___gai_suspend_time64() argument
65 if (timeout != NULL) in ___gai_suspend_time64()
68 ts.tv_sec += timeout->tv_sec; in ___gai_suspend_time64()
69 ts.tv_nsec += timeout->tv_nsec; in ___gai_suspend_time64()
97 GAI_MISC_WAIT (result, cntr, timeout == NULL ? NULL : &ts, 1); in ___gai_suspend_time64()
101 timeout == NULL ? NULL : &ts32); in ___gai_suspend_time64()
173 const struct timespec *timeout) in hidden_ver()
177 if (timeout != NULL) in hidden_ver()
178 ts64 = valid_timespec_to_timespec64 (*timeout); in hidden_ver()
180 return __gai_suspend_time64 (list, ent, timeout != NULL ? &ts64 : NULL); in hidden_ver()
/glibc-2.36/nscd/
Dnetgroupcache.c80 time_t timeout; in do_notfound() local
84 timeout = time (NULL) + db->negtimeout; in do_notfound()
93 timeout = datahead_init_neg (&dataset->head, in do_notfound()
106 *timeoutp = timeout; in do_notfound()
127 time_t timeout; in addgetnetgrentX() local
148 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX()
349 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX()
358 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addgetnetgrentX()
386 dh->timeout = dataset->head.timeout; in addgetnetgrentX()
446 return timeout; in addgetnetgrentX()
[all …]
Dservicescache.c83 time_t timeout = MAX_TIMEOUT_VALUE; in cache_addserv() local
96 timeout = dh->timeout = t + db->postimeout; in cache_addserv()
122 timeout = datahead_init_neg (&dataset->head, in cache_addserv()
205 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in cache_addserv()
248 dh->timeout = dataset->head.timeout; in cache_addserv()
313 return timeout; in cache_addserv()
378 time_t timeout = cache_addserv (db, fd, req, key, serv, uid, he, dh, errval); in addservbyX() local
380 return timeout; in addservbyX()
Dinitgrcache.c170 time_t timeout; in addinitgroupsX() local
173 timeout = MAX_TIMEOUT_VALUE; in addinitgroupsX()
189 timeout = dh->timeout = time (NULL) + db->postimeout; in addinitgroupsX()
211 timeout = datahead_init_neg (&dataset->head, in addinitgroupsX()
270 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addinitgroupsX()
315 dh->timeout = dataset->head.timeout; in addinitgroupsX()
381 return timeout; in addinitgroupsX()
Dpwdcache.c95 time_t timeout = MAX_TIMEOUT_VALUE; in cache_addpw() local
108 timeout = dh->timeout = t + db->postimeout; in cache_addpw()
134 timeout = datahead_init_neg (&dataset->head, in cache_addpw()
219 timeout = datahead_init_pos (&dataset->head, total + n, in cache_addpw()
265 dh->timeout = dataset->head.timeout; in cache_addpw()
366 return timeout; in cache_addpw()
428 time_t timeout = cache_addpw (db, fd, req, keystr, pwd, c_uid, he, dh, in addpwbyX() local
431 return timeout; in addpwbyX()
/glibc-2.36/sysdeps/htl/
Dsem-timedwait.c49 const struct timespec *restrict timeout) in __sem_timedwait_internal() argument
73 if (timeout) in __sem_timedwait_internal()
76 0, timeout, flags, clock_id); in __sem_timedwait_internal()
134 if (timeout) in __sem_timedwait_internal()
136 SEM_NWAITERS_MASK, timeout, flags, clock_id); in __sem_timedwait_internal()
195 const struct timespec *restrict timeout) in __sem_clockwait() argument
197 return __sem_timedwait_internal (sem, clockid, timeout); in __sem_clockwait()
202 __sem_timedwait (sem_t *restrict sem, const struct timespec *restrict timeout) in __sem_timedwait() argument
204 return __sem_timedwait_internal (sem, CLOCK_REALTIME, timeout); in __sem_timedwait()
/glibc-2.36/sysdeps/pthread/
Dtst-join3.c55 struct timespec timeout = timespec_add (xclock_now (clockid_for_get), in do_test_clock() local
60 val = pthread_timedjoin_np (th, &status, &timeout); in do_test_clock()
62 val = pthread_clockjoin_np (th, &status, clockid, &timeout); in do_test_clock()
70 timeout = timespec_add (xclock_now (clockid_for_get), in do_test_clock()
74 val = pthread_timedjoin_np (th, &status, &timeout); in do_test_clock()
76 val = pthread_clockjoin_np (th, &status, clockid, &timeout); in do_test_clock()
/glibc-2.36/scripts/
Dtest_printers_common.py57 timeout = 5 variable
61 timeout = int(TIMEOUTFACTOR) variable
69 version_cmd = '{0} --version'.format(gdb_invocation, timeout=timeout)
90 timeout=timeout)
99 gdb = pexpect.spawn(gdb_invocation, echo=False, timeout=timeout,
/glibc-2.36/sysdeps/mach/htl/
Dpt-timedblock.c40 mach_msg_timeout_t timeout; in __pthread_timedblock() local
53 timeout = (abstime->tv_sec - now.tv_sec) * 1000; in __pthread_timedblock()
56 timeout += (abstime->tv_nsec - now.tv_nsec + 999999) / 1000000; in __pthread_timedblock()
59 timeout -= (now.tv_nsec - abstime->tv_nsec + 999999) / 1000000; in __pthread_timedblock()
63 timeout, MACH_PORT_NULL); in __pthread_timedblock()
/glibc-2.36/hurd/
Dintr-msg.c37 mach_msg_timeout_t timeout, in _hurd_intr_rpc_mach_msg() argument
43 const mach_msg_timeout_t user_timeout = timeout; in _hurd_intr_rpc_mach_msg()
88 timeout, notify); in _hurd_intr_rpc_mach_msg()
119 rcv_size, rcv_name, timeout, notify, in _hurd_intr_rpc_mach_msg()
311 timeout = user_timeout; in _hurd_intr_rpc_mach_msg()
342 || timeout > _hurd_interrupted_rpc_timeout) in _hurd_intr_rpc_mach_msg()
343 timeout = _hurd_interrupted_rpc_timeout; in _hurd_intr_rpc_mach_msg()
348 timeout = user_timeout; in _hurd_intr_rpc_mach_msg()
395 timeout = user_timeout; in _hurd_intr_rpc_mach_msg()
/glibc-2.36/manual/examples/
Dselect.c31 struct timeval timeout; in input_timeout() local
39 timeout.tv_sec = seconds; in input_timeout()
40 timeout.tv_usec = 0; in input_timeout()
46 &timeout)); in input_timeout()
/glibc-2.36/sysdeps/mach/hurd/
Dpoll.c31 __poll (struct pollfd *fds, nfds_t nfds, int timeout) in __poll() argument
35 if (timeout < 0) in __poll()
39 ts.tv_sec = timeout / 1000; in __poll()
40 ts.tv_nsec = (timeout % 1000) * 1000000; in __poll()
/glibc-2.36/sysdeps/unix/sysv/linux/microblaze/
Dpselect32.c30 fd_set *exceptfds, const struct __timespec64 *timeout, in __pselect32() argument
38 if (timeout != NULL) in __pselect32()
40 if (! valid_nanoseconds (timeout->tv_nsec)) in __pselect32()
46 tv32 = valid_timespec64_to_timeval (*timeout); in __pselect32()
/glibc-2.36/sysdeps/unix/sysv/linux/alpha/
Dselect.c28 struct timeval *timeout) in __new_select() argument
30 return SYSCALL_CANCEL (select, nfds, readfds, writefds, exceptfds, timeout); in __new_select()
44 struct timeval *timeout) in __select_tv32() argument
47 timeout); in __select_tv32()

1234567