Searched refs:rpos (Results 1 – 1 of 1) sorted by relevance
141 int rpos = 0, wpos = 0; in readProcessedDataInStream() local184 if (rpos >= wpos) { in readProcessedDataInStream()185 amt = ::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos); in readProcessedDataInStream()187 amt = ::read(fd, cirBuf + rpos, wpos - rpos); in readProcessedDataInStream()198 rpos += amt; in readProcessedDataInStream()206 if (rpos > wpos) { in readProcessedDataInStream()207 amt = ::write(toFd.get(), cirBuf + wpos, rpos - wpos); in readProcessedDataInStream()230 if (rpos >= BUFFER_SIZE) { in readProcessedDataInStream()231 rpos = 0; in readProcessedDataInStream()