Lines Matching refs:wr
2293 ssize_t rd, wr, off; in webdav_fcopyfile_sz() local
2304 wr = write(ofd, buf+off, (size_t)(rd-off)); in webdav_fcopyfile_sz()
2305 } while (wr >= 0 ? (off += wr) != rd : errno == EINTR); in webdav_fcopyfile_sz()
2306 if (wr < 0) return -1; in webdav_fcopyfile_sz()
2777 ssize_t wr; in webdav_copytmp_rename() local
2780 wr = copy_file_range(ifd, &ioff, ofd, &ooff, (size_t)ilen, 0); in webdav_copytmp_rename()
2782 wr = copy_file_range(ifd, &ioff, ofd, &ooff, in webdav_copytmp_rename()
2788 } while (wr > 0 && (ilen -= wr)); in webdav_copytmp_rename()
2792 if (-1 == wr) { in webdav_copytmp_rename()
4510 ssize_t wr = chunkqueue_write_chunk(fd, cq, r->conf.errh); in mod_webdav_write_cq() local
4511 if (__builtin_expect( (wr > 0), 1)) in mod_webdav_write_cq()
4512 chunkqueue_mark_written(cq, wr); in mod_webdav_write_cq()
4513 else if (wr < 0) { in mod_webdav_write_cq()
4830 ssize_t wr; in mod_webdav_put_range() local
4833 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff,(size_t)cqlen, 0); in mod_webdav_put_range()
4835 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff, in mod_webdav_put_range()
4841 } while (wr > 0 && (cqlen -= wr)); in mod_webdav_put_range()