Lines Matching refs:to
7 * This code is derived from software contributed to Berkeley by
10 * By using this file, you agree to the terms and conditions set
35 ** This #define uses a select() to wait for the 'fd' to become readable.
36 ** The select() can be active for up to 'To' time. The select() may not
38 ** measured to decide how much to subtract from 'To' to update it. On some
42 ** since a BSD-like system will have updated it and we don't want to
49 ** fd -- raw file descriptor (from 'fp') to use for select()
50 ** to -- struct timeval of the timeout
58 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \
82 &sm_io_x_mask, (to)); \
101 timersub((to), &sm_io_to_diff, (to)); \
108 ** fp -- file pointer to flush
132 ** timeout -- time to complete filling the buffer in milliseconds
145 struct timeval to;
153 ** Filling the buffer will take time and we are wanted to
159 fp->f_r = 0; /* just to be sure */
172 SM_CONVERT_TIME(fp, fd, timeout, &to);
174 /* if not already reading, have to be reading and writing */
184 /* switch to reading */
229 ** If this file is linked to another, and we are going to hang
240 ** The do-while loop stops trying to read when something is read
242 ** something available to be read (via select()).
248 errno = 0; /* needed to ensure EOF correctly found */
258 SM_IO_RD_TIMEOUT(fp, fd, &to, timeout, ret);
283 ** fp -- file pointer to work on
284 ** timeout -- time to complete refill