Lines Matching defs: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
37 ** This #define uses a select() to wait for the 'fd' to become readable.
38 ** The select() can be active for up to 'To' time. The select() may not
40 ** measured to decide how much to subtract from 'To' to update it. On some
44 ** since a BSD-like system will have updated it and we don't want to
51 ** fd -- raw file descriptor (from 'fp') to use for select()
52 ** to -- struct timeval of the timeout
60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \
84 &sm_io_x_mask, (to)); \
103 timersub((to), &sm_io_to_diff, (to)); \
110 ** fp -- file pointer to flush
134 ** timeout -- time to complete filling the buffer in milliseconds
147 struct timeval to;
155 ** Filling the buffer will take time and we are wanted to
161 fp->f_r = 0; /* just to be sure */
174 SM_CONVERT_TIME(fp, fd, timeout, &to);
176 /* if not already reading, have to be reading and writing */
186 /* switch to reading */
231 ** If this file is linked to another, and we are going to hang
242 ** The do-while loop stops trying to read when something is read
244 ** something available to be read (via select()).
250 errno = 0; /* needed to ensure EOF correctly found */
260 SM_IO_RD_TIMEOUT(fp, fd, &to, timeout, ret);
285 ** fp -- file pointer to work on
286 ** timeout -- time to complete refill