Lines Matching refs:timeout
36 ** 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)
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. */
140 if (timeout != SM_TIME_FOREVER)
147 evt = sm_seteventm(timeout, openalrm, 0);
157 /* We're back. So undo our timeout and handler */
209 ** timeout -- time to complete the reopen
223 sm_io_reopen(type, timeout, info, flags, rpool, fp)
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)
256 /* Okay, this is where we set the timeout. */
257 if (timeout != SM_TIME_FOREVER)
265 evt = sm_seteventm(timeout, reopenalrm, 0);
292 /* We're back. So undo our timeout and handler */