Lines Matching refs:n
662 static ssize_t uv__writev(int fd, struct iovec* vec, size_t n) { in uv__writev() argument
663 if (n == 1) in uv__writev()
666 return writev(fd, vec, n); in uv__writev()
690 size_t n) { in uv__write_req_update() argument
694 assert(n <= stream->write_queue_size); in uv__write_req_update()
695 stream->write_queue_size -= n; in uv__write_req_update()
700 len = n < buf->len ? n : buf->len; in uv__write_req_update()
705 n -= len; in uv__write_req_update()
706 } while (n > 0); in uv__write_req_update()
761 ssize_t n; in uv__try_write() local
809 n = sendmsg(uv__stream_fd(stream), &msg, 0); in uv__try_write()
810 while (n == -1 && errno == EINTR); in uv__try_write()
813 n = uv__writev(uv__stream_fd(stream), iov, iovcnt); in uv__try_write()
814 while (n == -1 && errno == EINTR); in uv__try_write()
817 if (n >= 0) in uv__try_write()
818 return n; in uv__try_write()
843 ssize_t n; in uv__write() local
862 n = uv__try_write(stream, in uv__write()
868 if (n >= 0) { in uv__write()
870 if (uv__write_req_update(stream, req, n)) { in uv__write()
877 } else if (n != UV_EAGAIN) in uv__write()
894 req->error = n; in uv__write()