Lines Matching refs:err

66   int err;  in new_socket()  local
72 err = uv__stream_open((uv_stream_t*) handle, sockfd, flags); in new_socket()
73 if (err) { in new_socket()
75 return err; in new_socket()
87 int err; in maybe_new_socket() local
102 err = maybe_bind_socket(sockfd); in maybe_new_socket()
103 if (err) in maybe_new_socket()
104 return err; in maybe_new_socket()
115 int err; in uv_tcp_init_ex() local
132 err = new_socket(tcp, domain, 0); in uv_tcp_init_ex()
133 if (err) { in uv_tcp_init_ex()
138 return err; in uv_tcp_init_ex()
155 int err; in uv__tcp_bind() local
162 err = maybe_new_socket(tcp, addr->sa_family, 0); in uv__tcp_bind()
163 if (err) in uv__tcp_bind()
164 return err; in uv__tcp_bind()
171 err = uv__sock_reuseport(tcp->io_watcher.fd); in uv__tcp_bind()
172 if (err) in uv__tcp_bind()
173 return err; in uv__tcp_bind()
196 err = bind(tcp->io_watcher.fd, addr, addrlen); in uv__tcp_bind()
197 if (err == -1 && errno != EADDRINUSE) { in uv__tcp_bind()
204 tcp->delayed_error = (err == -1) ? UV__ERR(errno) : 0; in uv__tcp_bind()
283 int err; in uv__tcp_connect() local
294 err = maybe_new_socket(handle, in uv__tcp_connect()
297 if (err) in uv__tcp_connect()
298 return err; in uv__tcp_connect()
353 int err; in uv_tcp_open() local
358 err = uv__nonblock(sock, 1); in uv_tcp_open()
359 if (err) in uv_tcp_open()
360 return err; in uv_tcp_open()
423 int err; in uv__tcp_listen() local
436 err = maybe_new_socket(tcp, AF_INET, flags); in uv__tcp_listen()
437 if (err) in uv__tcp_listen()
438 return err; in uv__tcp_listen()
581 int err; in uv_tcp_nodelay() local
584 err = uv__tcp_nodelay(uv__stream_fd(handle), on); in uv_tcp_nodelay()
585 if (err) in uv_tcp_nodelay()
586 return err; in uv_tcp_nodelay()
599 int err; in uv_tcp_keepalive() local
602 err =uv__tcp_keepalive(uv__stream_fd(handle), on, delay); in uv_tcp_keepalive()
603 if (err) in uv_tcp_keepalive()
604 return err; in uv_tcp_keepalive()
632 int err; in uv_socketpair() local
652 if ((err = uv__cloexec(temp[0], 1))) in uv_socketpair()
654 if ((err = uv__cloexec(temp[1], 1))) in uv_socketpair()
659 if ((err = uv__nonblock(temp[0], 1))) in uv_socketpair()
662 if ((err = uv__nonblock(temp[1], 1))) in uv_socketpair()
672 return err; in uv_socketpair()