Home | History | Annotate | Download | only in isc

Lines Matching refs:bytes

43 static void	consume(evStream *str, size_t bytes);
227 consume(evStream *str, size_t bytes) {
228 while (bytes > 0U) {
229 if (bytes < (size_t)str->iovCur->iov_len) {
230 str->iovCur->iov_len -= bytes;
232 ((u_char *)str->iovCur->iov_base + bytes);
233 str->ioDone += bytes;
234 bytes = 0;
236 bytes -= str->iovCur->iov_len;
262 /* Dribble out some bytes on the stream. (Called by evDispatch().) */
266 int bytes;
270 bytes = writev(fd, str->iovCur, str->iovCurCount);
271 if (bytes > 0) {
274 consume(str, bytes);
276 if (bytes < 0 && errno != EINTR) {
285 /* Scoop up some bytes from the stream. (Called by evDispatch().) */
289 int bytes;
293 bytes = readv(fd, str->iovCur, str->iovCurCount);
294 if (bytes > 0) {
297 consume(str, bytes);
299 if (bytes == 0)