Home | History | Annotate | Download | only in src

Lines Matching refs:amt

74                 ssize_t amt = ::read(fd, mBuffer.writeBuffer(), mBuffer.currentToWrite());
75 if (amt < 0) {
82 } else if (amt == 0) {
86 mBuffer.wp()->move(amt);
106 ssize_t amt =
108 if (amt < 0) {
111 } else if (amt == 0) {
116 mBuffer.wp()->move(amt);
183 ssize_t amt;
185 amt = ::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos);
187 amt = ::read(fd, cirBuf + rpos, wpos - rpos);
189 if (amt < 0) {
194 } else if (amt == 0) {
198 rpos += amt;
199 cirSize += amt;
205 ssize_t amt;
207 amt = ::write(toFd.get(), cirBuf + wpos, rpos - wpos);
209 amt = ::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos);
211 if (amt < 0) {
217 wpos += amt;
218 cirSize -= amt;
238 ssize_t amt = ::read(fromFd.get(), mBuffer.writeBuffer(), mBuffer.currentToWrite());
239 if (amt < 0) {
244 } else if (amt == 0) {
248 mBuffer.wp()->move(amt);