Lines Matching refs:rv
183 int rv; in check_gzip() local
187 rv = spdylay_gzip_inflate_new(&req->inflater); in check_gzip()
188 if(rv != 0) { in check_gzip()
208 ssize_t rv; in send_callback() local
212 rv = write(connection->fd, in send_callback()
216 if (rv < 0) in send_callback()
225 rv = SPDYLAY_ERR_WOULDBLOCK; in send_callback()
229 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in send_callback()
232 return rv; in send_callback()
249 ssize_t rv; in recv_callback() local
253 rv = read(connection->fd, in recv_callback()
257 if (rv < 0) in recv_callback()
266 rv = SPDYLAY_ERR_WOULDBLOCK; in recv_callback()
270 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in recv_callback()
273 else if(rv == 0) in recv_callback()
274 rv = SPDYLAY_ERR_EOF; in recv_callback()
275 return rv; in recv_callback()
384 int rv; in on_stream_close_callback() local
385 rv = spdylay_submit_goaway(session, SPDYLAY_GOAWAY_OK); in on_stream_close_callback()
386 if(rv != 0) { in on_stream_close_callback()
387 diec("spdylay_submit_goaway", rv); in on_stream_close_callback()
416 int rv; in on_data_chunk_recv_callback() local
417 rv = spdylay_gzip_inflate(req->inflater, out, &outlen, data, &tlen); in on_data_chunk_recv_callback()
418 if(rv == -1) { in on_data_chunk_recv_callback()
470 int rv; in connect_to() local
477 rv = getaddrinfo(host, service, &hints, &res); in connect_to()
478 if(rv != 0) { in connect_to()
479 dief("getaddrinfo", gai_strerror(rv)); in connect_to()
486 while((rv = connect(fd, rp->ai_addr, rp->ai_addrlen)) == -1 && in connect_to()
488 if(rv == 0) { in connect_to()
501 int flags, rv; in make_non_block() local
506 while((rv = fcntl(fd, F_SETFL, flags | O_NONBLOCK)) == -1 && errno == EINTR); in make_non_block()
507 if(rv == -1) { in make_non_block()
518 int rv; in set_tcp_nodelay() local
519 rv = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)sizeof(val)); in set_tcp_nodelay()
520 if(rv == -1) { in set_tcp_nodelay()
549 int rv; in submit_request() local
562 rv = spdylay_submit_request(connection->session, pri, nv, NULL, req); in submit_request()
563 if(rv != 0) { in submit_request()
564 diec("spdylay_submit_request", rv); in submit_request()
573 int rv; in exec_io() local
574 rv = spdylay_session_recv(connection->session); in exec_io()
575 if(rv != 0) { in exec_io()
576 diec("spdylay_session_recv", rv); in exec_io()
578 rv = spdylay_session_send(connection->session); in exec_io()
579 if(rv != 0) { in exec_io()
580 diec("spdylay_session_send", rv); in exec_io()
611 int rv; in fetch_uri() local
633 rv = spdylay_session_client_new(&connection.session, spdy_proto_version, in fetch_uri()
635 if(rv != 0) { in fetch_uri()
636 diec("spdylay_session_client_new", rv); in fetch_uri()
844 int rv; in childproc() local
856 rv = parse_uri(&uri, uristr); in childproc()
857 if(rv != 0) { in childproc()