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