Home
last modified time | relevance | path

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

12345678910>>...37

/titanic_51/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.c88 * Register timeout routines
95 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local
97 timeout = (struct eloop_timeout *)malloc(sizeof (*timeout)); in eloop_register_timeout()
98 if (timeout == NULL) in eloop_register_timeout()
100 (void) gettimeofday(&timeout->time, NULL); in eloop_register_timeout()
101 timeout->time.tv_sec += secs; in eloop_register_timeout()
102 timeout->time.tv_usec += usecs; in eloop_register_timeout()
103 while (timeout->time.tv_usec >= 1000000) { in eloop_register_timeout()
104 timeout in eloop_register_timeout()
146 struct eloop_timeout *timeout, *prev, *next; eloop_cancel_timeout() local
311 struct eloop_timeout *timeout, *prev; eloop_destroy() local
[all...]
/titanic_51/usr/src/cmd/lp/model/netpr/
H A Dnet.c134 int timeout; in xfer_file() local
143 timeout = seed = seed ? seed : 10; in xfer_file()
148 syslog(LOG_DEBUG, "xfer_file: timeout = %d", timeout); in xfer_file()
156 if (timeout < (seed * 4)) { in xfer_file()
157 (void) sleep(timeout); in xfer_file()
158 timeout *= 2; in xfer_file()
159 } else if (timeout == (seed * 4)) { in xfer_file()
160 (void) sleep(timeout); in xfer_file()
161 timeout * in xfer_file()
200 int timeout; xfer_cfAfile() local
322 int timeout = 1; netpr_send_message() local
[all...]
/titanic_51/usr/src/cmd/sendmail/libsm/
H A Drefill.c35 ** SM_IO_RD_TIMEOUT -- measured timeout for reads
41 ** BSD-based/like systems the timeout for a select() is updated for the
52 ** to -- struct timeval of the timeout
53 ** timeout -- the original timeout value
60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument
65 if (timeout == SM_TIME_IMMEDIATE) \
95 /* timeout */ \
111 ** timeout -- original timeout valu
119 sm_lflush(fp,timeout) sm_lflush() argument
142 sm_refill(fp,timeout) sm_refill() argument
294 sm_rget(fp,timeout) sm_rget() argument
[all...]
H A Dsem.c104 ** timeout -- how long to wait for operation to succeed.
112 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);
143 ** timeout -- how long to wait for operation to succeed.
151 sm_sem_rel(semid, semnum, timeout) in sm_sem_rel() argument
[all...]
H A Dfopen.c36 ** OPENALRM -- handler when timeout activated for sm_io_open()
62 ** REOPENALRM -- handler when timeout activated for sm_io_reopen()
93 ** timeout -- time to complete the open
109 sm_io_open(type, timeout, info, flags, rpool) in sm_io_open() argument
111 int SM_NONVOLATILE timeout; /* this is not the file type timeout */
129 if (timeout == SM_TIME_DEFAULT)
130 timeout = SM_TIME_FOREVER;
131 if (timeout == SM_TIME_IMMEDIATE)
139 /* Okay, this is where we set the timeout
223 sm_io_reopen(type,timeout,info,flags,rpool,fp) sm_io_reopen() argument
[all...]
H A Dfpos.c33 ** TELLALRM -- handler when timeout activated for sm_io_tell()
64 ** timeout -- time to complete the tell (milliseconds)
72 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);
106 /* This is where we start the timeout */
107 if (timeout !
[all...]
H A Dfclose.c35 ** CLOSEALRM -- handler when timeout activated for sm_io_close()
66 ** timeout -- maximum time allowed to perform the close (millisecs)
77 sm_io_close(fp, timeout) in sm_io_close() argument
79 int SM_NONVOLATILE timeout;
112 /* Okay, this is where we set the 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 !
[all...]
H A Dfflush.c39 ** timeout -- time to complete the flush
47 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);
80 ** timeout -- max time allowed for flush (milliseconds)
87 ** timeout will get updated with the time remaining (if any)
91 sm_flush(fp, timeout) in sm_flush() argument
93 int *timeout;
142 if (IS_IO_ERROR(fd, t, *timeout))
[all...]
H A Dfvwrite.c36 ** timeout -- time length for function to return by
58 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);
206 if ((fp->f_flags & SMNOW) != 0 && sm_flush(fp, &timeout))
[all...]
H A Dfprintf.c29 ** timeout -- time to complete print
40 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.c29 ** timeout -- time to complete scan
40 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);
/titanic_51/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c44 * but well before the specified timeout expired. The
50 * The DP_POLL ioctl arguments include a relative timeout in milliseconds,
52 * the timeout expires, or a signal was received. In this case we noticed
53 * that DP_POLL was returning before the timeout expired despite no events
70 * relative timeout rather then an absolute timeout, so we avoid the
81 * the specified timeout expires.
163 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()
181 dppoll(int pollfd,pollfd_t * fds,nfds_t nfds,int timeout,time_t * elapsed) dppoll() argument
234 int timeout = 10; poll_no_fd_test() local
262 int timeout = 10; poll_with_fds_test() local
295 int timeout = 10; dev_poll_no_fd_test() local
323 int timeout = 10; dev_poll_with_fds_test() local
[all...]
/titanic_51/usr/src/lib/libsip/common/
H A Dsip_timeout.c30 * Simple implementation of timeout functionality. The granuality is a sec
39 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()
75 timeout_current_start = timeout->sip_timeout_next; in sip_run_to_functions()
77 timeout->sip_timeout_callback_func( in sip_run_to_functions()
78 timeout->sip_timeout_callback_func_arg); in sip_run_to_functions()
79 free(timeout); in sip_run_to_functions()
169 * Add a new timeout
41 sip_timeout_valtimeout global() argument
42 sip_timeout_callback_functimeout global() argument
43 sip_timeout_callback_func_argtimeout global() argument
44 sip_timeout_idtimeout global() argument
242 sip_timeout_t *timeout = NULL; sip_schedule_to_functions() local
[all...]
/titanic_51/usr/src/cmd/sendmail/libmilter/
H A Dsmfi.c51 struct timeval timeout; local
55 timeout.tv_sec = ctx->ctx_timeout;
56 timeout.tv_usec = 0;
74 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len);
184 struct timeval timeout;
188 timeout.tv_sec = ctx->ctx_timeout;
189 timeout.tv_usec = 0;
217 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len);
249 struct timeval timeout; local
253 timeout
389 struct timeval timeout; global() local
418 struct timeval timeout; global() local
449 struct timeval timeout; global() local
493 struct timeval timeout; global() local
855 struct timeval timeout; global() local
[all...]
H A Dlibmilter.h75 time_t ctx_timeout; /* timeout */
157 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 FD_RD_READY(sd,rds,excs,timeout) global() argument
228 FD_WR_READY(sd,wrs,timeout) global() argument
230 FD_RD_READY(sd,rds,excs,timeout) global() argument
[all...]
H A Dcomm.c47 ** timeout -- maximum time to wait
59 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);
206 /* select returned 0 (timeout) or < 0 (error) */
233 ** timeout -- maximum time to wait
241 retry_writev(fd, iov, iovcnt, timeout) in retry_writev() argument
245 struct timeval *timeout;
263 ** We don't care much about the timeout her
320 mi_wr_cmd(sd,timeout,cmd,buf,len) mi_wr_cmd() argument
[all...]
/titanic_51/usr/src/cmd/scadm/sparc/mpxu/common/
H A Dmodem_setup.c65 struct timespec timeout; in ADM_Process_modem_setup() local
81 timeout.tv_nsec = 0; in ADM_Process_modem_setup()
82 timeout.tv_sec = ADM_TIMEOUT; in ADM_Process_modem_setup()
83 ADM_Recv(&msg, &timeout, DP_MODEM_CONNECT_R, in ADM_Process_modem_setup()
175 timeout.tv_nsec = 0; in ADM_Process_modem_setup()
176 timeout.tv_sec = ADM_TIMEOUT; in ADM_Process_modem_setup()
177 ADM_Recv(&msg, &timeout, DP_MODEM_DISCONNECT_R, in ADM_Process_modem_setup()
247 struct timespec timeout; in cleanup() local
261 timeout.tv_nsec = 0; in cleanup()
262 timeout in cleanup()
[all...]
/titanic_51/usr/src/lib/libnisdb/
H A Dldap_cto.c41 * Interpose socket(3SOCKET), so that we can set the connect timeout.
50 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
638 if (config_info->threadCreationErrorTimeout.timeout == in add_operation_attribute()
640 if (get_time_t(buf, &timeout, in add_operation_attribute()
642 config_info->threadCreationErrorTimeout.timeout = in add_operation_attribute()
643 timeout; in add_operation_attribute()
670 if (config_info->dumpErrorTimeout.timeout == in add_operation_attribute()
672 if (get_time_t(buf, &timeout, in add_operation_attribute()
674 config_info->dumpErrorTimeout.timeout = timeout; in add_operation_attribute()
710 if (config_info->updateBatchingTimeout.timeout in add_operation_attribute()
1075 time_t timeout = 0; get_time_t() local
[all...]
/titanic_51/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c86 * and interface, with a timeout of 0.
259 * int32_t: timeout (in seconds), or DHCP_IPC_WAIT_FOREVER,
265 dhcp_ipc_recv_reply(int fd, dhcp_ipc_reply_t **reply, int32_t timeout) in dhcp_ipc_recv_reply() argument
273 * daemon to respond within the existing timeout, as specified in the in dhcp_ipc_recv_reply()
284 if (timeout == DHCP_IPC_WAIT_DEFAULT) in dhcp_ipc_recv_reply()
285 timeout = DHCP_IPC_DEFAULT_WAIT; in dhcp_ipc_recv_reply()
286 if (timeout != DHCP_IPC_WAIT_FOREVER && timeout < INT_MAX / 1000 - 2) in dhcp_ipc_recv_reply()
287 timeout = (timeout in dhcp_ipc_recv_reply()
370 dhcp_ipc_make_request(dhcp_ipc_request_t * request,dhcp_ipc_reply_t ** reply,int32_t timeout) dhcp_ipc_make_request() argument
849 dhcp_ipc_getinfo(dhcp_optnum_t * optnum,DHCP_OPT ** result,int32_t timeout) dhcp_ipc_getinfo() argument
[all...]
/titanic_51/usr/src/cmd/tip/aculib/
H A Dbiz22.c22 static int timeout = 0; variable
71 if (timeout) { in biz_dialer()
74 (void) sprintf(line, "%d second dial 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()
H A Dbiz31.c24 static int timeout = 0; variable
66 if (timeout) { in biz_dialer()
69 (void) sprintf(line, "%d second dial timeout", in biz_dialer()
78 if (timeout) in biz_dialer()
143 timeout = 1; in sigALRM()
154 timeout = 0; in detect()
157 (void) printf("\07timeout waiting for reply\n"); in detect()
168 return (timeout == 0); in detect()
186 timeout = 0; /* guard against disconnection */ in flush()
/titanic_51/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()
205 /* Ensure the timeout is not removed in the delete */ in run_timedout()
206 rd->timeout = 0; in run_timedout()
255 printf("Run started %s (%u) (%d) \n!", r->argv[0], r->timeout, in run_request_run()
305 /* Add timeout if needed */ in run_request_run()
306 if (r->timeout > 0) in run_request_run()
307 rd->timeout = g_timeout_add(r->timeout, run_timedou in run_request_run()
[all...]
/titanic_51/usr/src/cmd/dtrace/test/tst/common/stop/
H A Dtst.stop2.d43 timeout = timestamp + 1000000000;
63 timeout = timestamp + 1000000000 / 4;
67 /timestamp > timeout && stopped == 1/
74 /timestamp > timeout/
H A Dtst.stop1.d43 timeout = timestamp + 1000000000;
63 timeout = timestamp + 1000000000 / 4;
67 /timestamp > timeout && stopped == 1/
74 /timestamp > timeout/

12345678910>>...37