Searched refs:rpos (Results 1 – 1 of 1) sorted by relevance
163 int rpos = 0, wpos = 0; in readProcessedDataInStream() local210 if (rpos >= wpos) { in readProcessedDataInStream()211 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos)); in readProcessedDataInStream()213 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, wpos - rpos)); in readProcessedDataInStream()224 rpos += amt; in readProcessedDataInStream()232 if (rpos > wpos) { in readProcessedDataInStream()233 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, rpos - wpos)); in readProcessedDataInStream()256 if (rpos >= BUFFER_SIZE) { in readProcessedDataInStream()257 rpos = 0; in readProcessedDataInStream()