Home | History | Annotate | Download | only in isc

Lines Matching defs:bytes

49 static void	consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) {
234 while (bytes > 0U) {
235 if (bytes < (size_t)str->iovCur->iov_len) {
236 str->iovCur->iov_len -= bytes;
238 ((u_char *)str->iovCur->iov_base + bytes);
239 str->ioDone += bytes;
240 bytes = 0;
242 bytes -= str->iovCur->iov_len;
268 /* Dribble out some bytes on the stream. (Called by evDispatch().) */
272 int bytes;
276 bytes = writev(fd, str->iovCur, str->iovCurCount);
277 if (bytes > 0) {
280 consume(str, bytes);
282 if (bytes < 0 && errno != EINTR) {
291 /* Scoop up some bytes from the stream. (Called by evDispatch().) */
295 int bytes;
299 bytes = readv(fd, str->iovCur, str->iovCurCount);
300 if (bytes > 0) {
303 consume(str, bytes);
305 if (bytes == 0)