Home
last modified time | relevance | path

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

12345678910>>...37

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.c97 timeout = (struct eloop_timeout *)malloc(sizeof (*timeout)); in eloop_register_timeout()
113 eloop.timeout = timeout; in eloop_register_timeout()
127 timeout->next = eloop.timeout; in eloop_register_timeout()
128 eloop.timeout = timeout; in eloop_register_timeout()
149 timeout = eloop.timeout; in eloop_cancel_timeout()
162 free(timeout); in eloop_cancel_timeout()
164 prev = timeout; in eloop_cancel_timeout()
166 timeout = next; in eloop_cancel_timeout()
273 eloop.timeout = eloop.timeout->next; in eloop_run()
313 timeout = eloop.timeout; in eloop_destroy()
[all …]
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnet.c134 int timeout; in xfer_file() local
158 timeout *= 2; in xfer_file()
161 timeout *= 2; in xfer_file()
187 timeout = seed; in xfer_file()
200 int timeout; in xfer_cfAfile() local
217 timeout = TIMEOUT; in xfer_cfAfile()
227 timeout *= 2; in xfer_cfAfile()
232 timeout *= 2; in xfer_cfAfile()
322 int timeout = 1; in netpr_send_message() local
345 timeout *= 2; in netpr_send_message()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Drefill.c119 sm_lflush(fp, timeout) in sm_lflush() argument
121 int *timeout;
125 return sm_flush(fp, timeout);
142 sm_refill(fp, timeout) in sm_refill() argument
144 int timeout;
150 if (timeout == SM_TIME_DEFAULT)
151 timeout = fp->f_timeout;
152 if (timeout == SM_TIME_IMMEDIATE)
189 if (sm_flush(fp, &timeout))
294 sm_rget(fp, timeout) in sm_rget() argument
[all …]
H A Dfopen.c129 if (timeout == SM_TIME_DEFAULT)
130 timeout = SM_TIME_FOREVER;
131 if (timeout == SM_TIME_IMMEDIATE)
140 if (timeout != SM_TIME_FOREVER)
147 evt = sm_seteventm(timeout, openalrm, 0);
225 int SM_NONVOLATILE timeout;
237 (void) sm_io_close(fp, timeout);
244 if (timeout == SM_TIME_DEFAULT)
245 timeout = SM_TIME_FOREVER;
246 if (timeout == SM_TIME_IMMEDIATE)
[all …]
H A Dsem.c112 sm_sem_acq(semid, semnum, timeout) in sm_sem_acq() argument
115 int timeout;
123 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT);
124 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER)
132 --timeout;
133 } while (timeout > 0);
151 sm_sem_rel(semid, semnum, timeout) in sm_sem_rel() argument
154 int timeout;
168 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER)
176 --timeout;
[all …]
H A Dfpos.c72 sm_io_tell(fp, timeout) in sm_io_tell() argument
74 int SM_NONVOLATILE timeout;
86 if (timeout == SM_TIME_DEFAULT)
87 timeout = fp->f_timeout;
88 if (timeout == SM_TIME_IMMEDIATE)
104 (void) sm_flush(fp, (int *) &timeout);
107 if (timeout != SM_TIME_FOREVER)
115 evt = sm_seteventm(timeout, tellalrm, 0);
H A Dfclose.c77 sm_io_close(fp, timeout) in sm_io_close() argument
79 int SM_NONVOLATILE timeout;
113 if (timeout == SM_TIME_DEFAULT)
114 timeout = fp->f_timeout;
115 if (timeout == SM_TIME_IMMEDIATE)
122 r = fp->f_flags & SMWR ? sm_flush(fp, (int *) &timeout) : 0;
125 if (timeout != SM_TIME_FOREVER)
132 evt = sm_seteventm(timeout, closealrm, 0);
H A Dfflush.c47 sm_io_flush(fp, timeout)
49 int SM_NONVOLATILE timeout; variable
67 SM_CONVERT_TIME(fp, fd, timeout, &to);
70 return sm_flush(fp, (int *) &timeout);
91 sm_flush(fp, timeout) in sm_flush() argument
93 int *timeout;
142 if (IS_IO_ERROR(fd, t, *timeout))
149 SM_IO_WR_TIMEOUT(fp, fd, *timeout);
H A Dfvwrite.c58 sm_fvwrite(fp, timeout, uio)
60 int timeout; variable
82 SM_CONVERT_TIME(fp, fd, timeout, &to);
100 if (IS_IO_ERROR(fd, w, timeout))
104 SM_IO_WR_TIMEOUT(fp, fd, timeout);
175 if (sm_flush(fp, &timeout))
186 if (IS_IO_ERROR(fd, w, timeout))
190 SM_IO_WR_TIMEOUT(fp, fd, timeout);
238 if (sm_flush(fp, &timeout))
248 if (IS_IO_ERROR(fd, w, timeout))
[all …]
H A Dfprintf.c40 sm_io_fprintf(SM_FILE_T *fp, int timeout, const char *fmt, ...) in sm_io_fprintf() argument
42 sm_io_fprintf(fp, timeout, fmt, va_alist) in sm_io_fprintf()
44 int timeout;
54 ret = sm_io_vfprintf(fp, timeout, fmt, ap);
H A Dfscanf.c40 sm_io_fscanf(SM_FILE_T *fp, int timeout, char const *fmt, ...) in sm_io_fscanf() argument
42 sm_io_fscanf(fp, timeout, fmt, va_alist) in sm_io_fscanf()
44 int timeout;
54 ret = sm_vfscanf(fp, timeout, fmt, ap);
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c170 ret = poll(fds, nfds, timeout); in poll_wrapper()
189 arg.dp_timeout = timeout; in dppoll()
234 int timeout = 10; in poll_no_fd_test() local
245 if (!check_time(elapsed, timeout)) { in poll_no_fd_test()
247 elapsed, timeout); in poll_no_fd_test()
262 int timeout = 10; in poll_with_fds_test() local
280 elapsed, timeout); in poll_with_fds_test()
295 int timeout = 10; in dev_poll_no_fd_test() local
308 elapsed, timeout); in dev_poll_no_fd_test()
323 int timeout = 10; in dev_poll_with_fds_test() local
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_timeout.c39 typedef struct timeout { struct
40 struct timeout *sip_timeout_next; argument
67 sip_timeout_t *timeout = NULL; in sip_run_to_functions() local
71 timeout = timeout_current_start; in sip_run_to_functions()
79 free(timeout); in sip_run_to_functions()
263 timeout = timeout_list; in sip_schedule_to_functions()
268 while (timeout != NULL && timeout->sip_timeout_val <= current_time) { in sip_schedule_to_functions()
269 last = timeout; in sip_schedule_to_functions()
270 timeout = timeout->sip_timeout_next; in sip_schedule_to_functions()
273 timeout = last; in sip_schedule_to_functions()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dsmfi.c51 struct timeval timeout; local
56 timeout.tv_usec = 0;
184 struct timeval timeout;
189 timeout.tv_usec = 0;
249 struct timeval timeout; local
254 timeout.tv_usec = 0;
396 timeout.tv_usec = 0;
425 timeout.tv_usec = 0;
457 timeout.tv_usec = 0;
500 timeout.tv_usec = 0;
[all …]
H A Dlibmilter.h157 struct timespec timeout; \
160 timeout.tv_sec = now.tv_sec + to; \
161 timeout.tv_nsec = now.tv_usec / 1000; \
162 r = pthread_cond_timedwait(cp,mp,&timeout); \
176 # define MI_MS(timeout) (((timeout)->tv_sec * 1000) + (timeout)->tv_usec) argument
200 # define FD_WR_READY(sd, excs, timeout) \ argument
201 poll(&(wrs), 1, MI_MS(timeout))
203 # define FD_RD_READY(sd, rds, excs, timeout) \ argument
204 poll(&(rds), 1, MI_MS(timeout))
228 # define FD_WR_READY(sd, wrs, timeout) \ argument
[all …]
H A Dcomm.c59 mi_rd_cmd(sd, timeout, cmd, rlen, name) in mi_rd_cmd() argument
61 struct timeval *timeout;
82 ret = FD_RD_READY(sd, rds, excs, timeout);
155 ret = FD_RD_READY(sd, rds, excs, timeout);
241 retry_writev(fd, iov, iovcnt, timeout) in retry_writev() argument
245 struct timeval *timeout;
271 i = FD_WR_READY(fd, wrs, timeout);
320 mi_wr_cmd(sd, timeout, cmd, buf, len) in mi_wr_cmd() argument
322 struct timeval *timeout;
353 l = retry_writev(sd, iov, iovcnt, timeout);
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Dmodem_setup.c63 struct timespec timeout; in ADM_Process_modem_setup() local
79 timeout.tv_nsec = 0; in ADM_Process_modem_setup()
80 timeout.tv_sec = ADM_TIMEOUT; in ADM_Process_modem_setup()
81 ADM_Recv(&msg, &timeout, DP_MODEM_CONNECT_R, in ADM_Process_modem_setup()
173 timeout.tv_nsec = 0; in ADM_Process_modem_setup()
174 timeout.tv_sec = ADM_TIMEOUT; in ADM_Process_modem_setup()
175 ADM_Recv(&msg, &timeout, DP_MODEM_DISCONNECT_R, in ADM_Process_modem_setup()
246 struct timespec timeout; in cleanup() local
260 timeout.tv_nsec = 0; in cleanup()
261 timeout.tv_sec = ADM_TIMEOUT; in cleanup()
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c287 if (timeout == DHCP_IPC_WAIT_DEFAULT) in dhcp_ipc_recv_reply()
288 timeout = DHCP_IPC_DEFAULT_WAIT; in dhcp_ipc_recv_reply()
289 if (timeout != DHCP_IPC_WAIT_FOREVER && timeout < INT_MAX / 1000 - 2) in dhcp_ipc_recv_reply()
290 timeout = (timeout + 2) * 1000; in dhcp_ipc_recv_reply()
292 timeout = -1; in dhcp_ipc_recv_reply()
294 timeout)); in dhcp_ipc_recv_reply()
373 int32_t timeout) in dhcp_ipc_make_request() argument
404 request->timeout = timeout; in dhcp_ipc_make_request()
860 if (timeout == DHCP_IPC_WAIT_DEFAULT) in dhcp_ipc_getinfo()
861 timeout = DHCP_IPC_DEFAULT_WAIT; in dhcp_ipc_getinfo()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c50 int timeout = 1000 * proxyInfo.bind_timeout.tv_sec + in socket() local
65 if (ret >= 0 && timeout > 0) { in socket()
67 &timeout, sizeof (timeout)) != 0) in socket()
70 timeout, errno); in socket()
H A Dnis_parse_ldap_attr.c528 time_t timeout; in add_operation_attribute() local
643 timeout; in add_operation_attribute()
674 config_info->dumpErrorTimeout.timeout = timeout; in add_operation_attribute()
713 config_info->updateBatchingTimeout.timeout = timeout; in add_operation_attribute()
783 table_info->retrieveErrorRetry.timeout = timeout; in add_operation_attribute()
832 table_info->storeErrorRetry.timeout = timeout; in add_operation_attribute()
870 table_info->refreshErrorRetry.timeout = timeout; in add_operation_attribute()
1075 time_t timeout = 0; in get_time_t() local
1082 timeout = TIME_MAX; in get_time_t()
1084 timeout = timeout * 10 + *s - '0'; in get_time_t()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_reopen/
H A Dzpool_reopen.shlib60 # Wait until specific event or timeout occur.
64 # timeout occurs.
65 # It returns 1 on timeout or 0 otherwise.
67 function wait_for_action #pool timeout function
70 typeset -i timeout=$2
73 while [ $timeout -gt 0 ]; do
74 (( --timeout ))
90 function wait_for_resilver_start #pool timeout
96 function wait_for_resilver_end #pool timeout
102 function wait_for_scrub_end #pool timeout
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Drunner.c61 guint timeout; member
81 if (rd->timeout != 0) in del_run_data()
82 g_source_remove(rd->timeout); in del_run_data()
206 rd->timeout = 0; in run_timedout()
255 printf("Run started %s (%u) (%d) \n!", r->argv[0], r->timeout, in run_request_run()
306 if (r->timeout > 0) in run_request_run()
307 rd->timeout = g_timeout_add(r->timeout, run_timedout, rd); in run_request_run()
309 rd->timeout = 0; in run_request_run()
337 if (rd->timeout != 0) { in kill_rd()
339 g_source_remove(rd->timeout); in kill_rd()
[all …]
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dbiz31.c24 static int timeout = 0; variable
66 if (timeout) { in biz_dialer()
78 if (timeout) in biz_dialer()
143 timeout = 1; in sigALRM()
154 timeout = 0; in detect()
168 return (timeout == 0); in detect()
186 timeout = 0; /* guard against disconnection */ in flush()
H A Dbiz22.c22 static int timeout = 0; variable
71 if (timeout) { in biz_dialer()
79 if (timeout) in biz_dialer()
120 timeout = 1; in sigALRM()
152 timeout = 0; in detect()
166 return (timeout == 0); in detect()
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfs2ops.c68 struct timeval timeout; in nfsread() local
98 timeout.tv_sec = NFS_REXMIT_MIN; /* Total wait for call */ in nfsread()
99 timeout.tv_usec = 0; in nfsread()
103 xdr_readres, (caddr_t)&read_res, timeout); in nfsread()
124 timeout.tv_sec = NFS_REXMIT_MIN; in nfsread()
127 if (timeout.tv_sec < NFS_REXMIT_MAX) in nfsread()
128 timeout.tv_sec++; in nfsread()
130 timeout.tv_sec = 0; in nfsread()
188 struct timeval timeout = {0, 0}; /* default */ in nfsgetattr() local
192 xdr_attrstat, (caddr_t)&getattr_res, timeout); in nfsgetattr()

12345678910>>...37