Lines Matching refs:wr

131 …st cq, off_t * const p_max_bytes, log_error_st * const errh, const ssize_t wr, const off_t toSend)…  in network_write_accounting()  argument
132 if (wr >= 0) { in network_write_accounting()
133 *p_max_bytes -= wr;/*(toSend > 0 if we reach this func)*/ in network_write_accounting()
134 const int rc = (wr == toSend && *p_max_bytes > 0) ? 0 : -3; in network_write_accounting()
135 chunkqueue_mark_written(cq, wr); in network_write_accounting()
155 ssize_t wr = network_write_data_len(fd, c->mem->ptr + c->offset, c_len); in network_write_mem_chunk() local
156 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, c_len); in network_write_mem_chunk()
181 ssize_t wr = network_write_data_len(fd, buf, toSend); in network_write_file_chunk_no_mmap() local
182 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, toSend); in network_write_file_chunk_no_mmap()
214 off_t wr = sys_setjmp_eval3(network_write_setjmp_write_cb, in network_write_file_chunk_mmap() local
216 return network_write_accounting(fd,cq,p_max_bytes,errh,(ssize_t)wr,toSend); in network_write_file_chunk_mmap()
274 ssize_t wr = writev(fd, chunks, num_chunks); in network_writev_mem_chunks() local
275 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, toSend); in network_writev_mem_chunks()
297 ssize_t wr; in network_write_file_chunk_sendfile() local
314 wr = sendfile(fd, c->file.fd, &offset, toSend); in network_write_file_chunk_sendfile()
315 if (wr > 0) written = (off_t)wr; in network_write_file_chunk_sendfile()
320 wr = sendfile(c->file.fd, fd, offset, &written, NULL, 0); in network_write_file_chunk_sendfile()
325 wr = sendfile(c->file.fd, fd, offset, toSend, NULL, &written, 0); in network_write_file_chunk_sendfile()
337 wr = sendfilev(fd, &fvec, 1, (size_t *)&written); in network_write_file_chunk_sendfile()
342 wr = -1; in network_write_file_chunk_sendfile()
347 if (-1 == wr) { in network_write_file_chunk_sendfile()
386 else if (0 == wr) { /*(-1 != wr && 0 == written)*/ in network_write_file_chunk_sendfile()
392 return (wr >= 0 && written == toSend) ? 0 : -3; in network_write_file_chunk_sendfile()