Lines Matching refs:nleft
315 register size_t nleft = count; in Nread() local
317 while (nleft > 0) { in Nread()
318 r = read(fd, buf, nleft); in Nread()
327 nleft -= r; in Nread()
330 return count - nleft; in Nread()
342 register size_t nleft = count; in Nwrite() local
344 while (nleft > 0) { in Nwrite()
345 r = write(fd, buf, nleft); in Nwrite()
353 return count - nleft; in Nwrite()
363 nleft -= r; in Nwrite()
394 register size_t nleft; in Nsendfile() local
397 nleft = count; in Nsendfile()
398 while (nleft > 0) { in Nsendfile()
399 offset = count - nleft; in Nsendfile()
401 r = sendfile(tofd, fromfd, &offset, nleft); in Nsendfile()
403 nleft -= r; in Nsendfile()
405 r = sendfile(fromfd, tofd, offset, nleft, NULL, &sent, 0); in Nsendfile()
406 nleft -= sent; in Nsendfile()
408 sent = nleft; in Nsendfile()
410 nleft -= sent; in Nsendfile()
423 if (count == nleft) in Nsendfile()
425 return count - nleft; in Nsendfile()