Lines Matching refs:rfd
84 * if rfd<0 && st_size>0 then input from bread()
356 register int rfd;
366 if ((rfd = openin(state.out, f)) >= 0)
377 if ((hole = lseek(rfd, data, SEEK_HOLE)) < data)
379 hole = lseek(rfd, 0, SEEK_END);
386 if (lseek(rfd, data, SEEK_SET) != data || (n = read(rfd, state.tmp.buffer, (size_t)c)) <= 0)
403 if ((data = lseek(rfd, hole, SEEK_DATA)) < hole)
405 if ((data = lseek(rfd, -1, SEEK_END)) < 0 || lseek(wfd, data, SEEK_SET) != data || write(wfd, "", 1) != 1)
415 if ((n = read(rfd, state.tmp.buffer, (size_t)((c > state.buffersize) ? state.buffersize : c))) <= 0)
430 closein(state.out, f, rfd);