Lines Matching refs:infd
61 * infd - A file (or socket) descriptor opened for reading
65 * reading data from 'infd'. When sendfile() returns, this
69 * 'infd'; otherwise the current file offset is adjusted to
70 * reflect the number of bytes read from 'infd.'
72 * If 'offset' is NULL, then data will be read from 'infd'
87 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count)
103 startpos = lseek(infd, 0, SEEK_CUR);
111 if (lseek(infd, *offset, SEEK_SET) == (off_t)-1)
126 /* Now transfer 'count' bytes from the infd to the outfd */
134 /* Read a buffer of data from the infd */
136 nbytesread = read(infd, iobuffer, CONFIG_LIB_SENDFILE_BUFSIZE);
249 off_t curpos = lseek(infd, 0, SEEK_CUR);
261 if (lseek(infd, startpos, SEEK_SET) == (off_t)-1)