Home
last modified time | relevance | path

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

12345678910>>...38

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.c93 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local
95 timeout = (struct eloop_timeout *)malloc(sizeof (*timeout)); in eloop_register_timeout()
96 if (timeout == NULL) in eloop_register_timeout()
98 (void) gettimeofday(&timeout->time, NULL); in eloop_register_timeout()
99 timeout->time.tv_sec += secs; in eloop_register_timeout()
100 timeout->time.tv_usec += usecs; in eloop_register_timeout()
101 while (timeout->time.tv_usec >= 1000000) { in eloop_register_timeout()
102 timeout->time.tv_sec++; in eloop_register_timeout()
103 timeout->time.tv_usec -= 1000000; in eloop_register_timeout()
105 timeout->eloop_data = eloop_data; in eloop_register_timeout()
[all …]
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnet.c132 int timeout; in xfer_file() local
141 timeout = seed = seed ? seed : 10; in xfer_file()
146 syslog(LOG_DEBUG, "xfer_file: timeout = %d", timeout); in xfer_file()
154 if (timeout < (seed * 4)) { in xfer_file()
155 (void) sleep(timeout); in xfer_file()
156 timeout *= 2; in xfer_file()
157 } else if (timeout == (seed * 4)) { in xfer_file()
158 (void) sleep(timeout); in xfer_file()
159 timeout *= 2; in xfer_file()
171 } else if (timeout > (seed * 4)) { in xfer_file()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Drefill.c58 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument
63 if (timeout == SM_TIME_IMMEDIATE) \
117 sm_lflush(fp, timeout) in sm_lflush() argument
119 int *timeout;
123 return sm_flush(fp, timeout);
140 sm_refill(fp, timeout) in sm_refill() argument
142 int timeout;
148 if (timeout == SM_TIME_DEFAULT)
149 timeout = fp->f_timeout;
150 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.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;
167 (timeout != SM_TIME_FOREVER ? 0 : IPC_NOWAIT);
168 if (timeout == SM_TIME_IMMEDIATE || timeout == SM_TIME_FOREVER)
[all …]
H A Dfpos.c70 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);
H A Dfclose.c75 sm_io_close(fp, timeout) in sm_io_close() argument
77 int SM_NONVOLATILE timeout;
111 if (timeout == SM_TIME_DEFAULT)
112 timeout = fp->f_timeout;
113 if (timeout == SM_TIME_IMMEDIATE)
120 r = fp->f_flags & SMWR ? sm_flush(fp, (int *) &timeout) : 0;
123 if (timeout != SM_TIME_FOREVER)
130 evt = sm_seteventm(timeout, closealrm, 0);
H A Dfflush.c45 sm_io_flush(fp, timeout)
47 int SM_NONVOLATILE timeout; variable
65 SM_CONVERT_TIME(fp, fd, timeout, &to);
68 return sm_flush(fp, (int *) &timeout);
89 sm_flush(fp, timeout) in sm_flush() argument
91 int *timeout;
140 if (IS_IO_ERROR(fd, t, *timeout))
147 SM_IO_WR_TIMEOUT(fp, fd, *timeout);
H A Dfvwrite.c56 sm_fvwrite(fp, timeout, uio)
58 int timeout; variable
80 SM_CONVERT_TIME(fp, fd, timeout, &to);
98 if (IS_IO_ERROR(fd, w, timeout))
102 SM_IO_WR_TIMEOUT(fp, fd, timeout);
173 if (sm_flush(fp, &timeout))
184 if (IS_IO_ERROR(fd, w, timeout))
188 SM_IO_WR_TIMEOUT(fp, fd, timeout);
204 if ((fp->f_flags & SMNOW) != 0 && sm_flush(fp, &timeout))
236 if (sm_flush(fp, &timeout))
[all …]
H A Dfseek.c77 sm_io_seek(fp, timeout, offset, whence) in sm_io_seek() argument
79 int SM_NONVOLATILE timeout;
104 if (timeout == SM_TIME_DEFAULT)
105 timeout = fp->f_timeout;
106 if (timeout == SM_TIME_IMMEDIATE)
118 if (timeout != SM_TIME_FOREVER) \
125 evt = sm_seteventm(timeout, seekalrm, 0); \
145 sm_flush(fp, (int *) &timeout);
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in poll_wrapper() argument
168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in poll_wrapper()
170 ret = poll(fds, nfds, timeout); in poll_wrapper()
175 fds, nfds, timeout, ret, (*elapsed)); in poll_wrapper()
181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in dppoll() argument
189 arg.dp_timeout = timeout; in dppoll()
191 debug_log("DP_POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in dppoll()
234 int timeout = 10; in poll_no_fd_test() local
237 test_start(testName, "poll for %d sec with no fds\n", timeout); in poll_no_fd_test()
239 ret = poll_wrapper(NULL, 0, timeout * 1000, &elapsed); in poll_no_fd_test()
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_timeout.c37 typedef struct timeout { struct
38 struct timeout *sip_timeout_next; argument
65 sip_timeout_t *timeout = NULL; in sip_run_to_functions() local
69 timeout = timeout_current_start; in sip_run_to_functions()
73 timeout_current_start = timeout->sip_timeout_next; in sip_run_to_functions()
75 timeout->sip_timeout_callback_func( in sip_run_to_functions()
76 timeout->sip_timeout_callback_func_arg); in sip_run_to_functions()
77 free(timeout); in sip_run_to_functions()
240 sip_timeout_t *timeout = NULL; in sip_schedule_to_functions() local
261 timeout = timeout_list; in sip_schedule_to_functions()
[all …]
/illumos-gate/usr/src/cmd/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 …]
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.c268 dhcp_ipc_recv_reply(int fd, dhcp_ipc_reply_t **reply, int32_t timeout) in dhcp_ipc_recv_reply() argument
287 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()
408 retval = dhcp_ipc_recv_reply(fd, reply, timeout); in dhcp_ipc_make_request()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_attr.c526 time_t timeout; in add_operation_attribute() local
636 if (config_info->threadCreationErrorTimeout.timeout == in add_operation_attribute()
638 if (get_time_t(buf, &timeout, in add_operation_attribute()
640 config_info->threadCreationErrorTimeout.timeout = in add_operation_attribute()
641 timeout; in add_operation_attribute()
668 if (config_info->dumpErrorTimeout.timeout == in add_operation_attribute()
670 if (get_time_t(buf, &timeout, in add_operation_attribute()
672 config_info->dumpErrorTimeout.timeout = timeout; in add_operation_attribute()
708 if (config_info->updateBatchingTimeout.timeout == in add_operation_attribute()
710 if (get_time_t(buf, &timeout, DEFAULT_BATCHING_TIME_OUT)) in add_operation_attribute()
[all …]
H A Dldap_cto.c48 int timeout = 1000 * proxyInfo.bind_timeout.tv_sec + in socket() local
63 if (ret >= 0 && timeout > 0) { in socket()
65 &timeout, sizeof (timeout)) != 0) in socket()
68 timeout, errno); in socket()
/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.c22 static int timeout = 0; variable
64 if (timeout) { in biz_dialer()
76 if (timeout) in biz_dialer()
141 timeout = 1; in sigALRM()
152 timeout = 0; in detect()
166 return (timeout == 0); in detect()
184 timeout = 0; /* guard against disconnection */ in flush()
H A Dbiz22.c20 static int timeout = 0; variable
69 if (timeout) { in biz_dialer()
77 if (timeout) in biz_dialer()
118 timeout = 1; in sigALRM()
150 timeout = 0; in detect()
164 return (timeout == 0); in detect()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c103 uint32_t timeout; /* argv[6] */ member
172 int64_t timeout; in parse_probe_param() local
232 if ((timeout = strtoll(argv[6], NULL, 10)) <= 0 || timeout > UINT_MAX) in parse_probe_param()
234 param->timeout = timeout; in parse_probe_param()
351 (void) alarm(param->timeout); in tcp_query()
644 struct itimerval timeout; in udp_query() local
681 timeout.it_interval.tv_sec = 0; in udp_query()
682 timeout.it_interval.tv_usec = 0; in udp_query()
683 tm = (param->timeout * MICROSEC >> 2) * 3; in udp_query()
685 timeout.it_value.tv_sec = tm / MICROSEC; in udp_query()
[all …]
/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>>...38