Lines Matching refs:err

518   int err;  in uv__udp_bind()  local
533 err = uv__socket(addr->sa_family, SOCK_DGRAM, 0); in uv__udp_bind()
534 if (err < 0) in uv__udp_bind()
535 return err; in uv__udp_bind()
536 fd = err; in uv__udp_bind()
541 err = uv__set_recverr(fd, addr->sa_family); in uv__udp_bind()
542 if (err) in uv__udp_bind()
543 return err; in uv__udp_bind()
547 err = uv__sock_reuseaddr(fd); in uv__udp_bind()
548 if (err) in uv__udp_bind()
549 return err; in uv__udp_bind()
553 err = uv__sock_reuseport(fd); in uv__udp_bind()
554 if (err) in uv__udp_bind()
555 return err; in uv__udp_bind()
562 err = UV__ERR(errno); in uv__udp_bind()
563 return err; in uv__udp_bind()
566 err = UV_ENOTSUP; in uv__udp_bind()
567 return err; in uv__udp_bind()
572 err = UV__ERR(errno); in uv__udp_bind()
576 err = UV_EINVAL; in uv__udp_bind()
577 return err; in uv__udp_bind()
628 int err; in uv__udp_connect() local
630 err = uv__udp_maybe_deferred_bind(handle, addr->sa_family, 0); in uv__udp_connect()
631 if (err) in uv__udp_connect()
632 return err; in uv__udp_connect()
636 err = connect(handle->io_watcher.fd, addr, addrlen); in uv__udp_connect()
637 } while (err == -1 && errno == EINTR); in uv__udp_connect()
639 if (err) in uv__udp_connect()
728 int err; in uv__udp_send() local
734 err = uv__udp_maybe_deferred_bind(handle, addr->sa_family, 0); in uv__udp_send()
735 if (err) in uv__udp_send()
736 return err; in uv__udp_send()
792 int err; in uv__udp_try_send() local
803 err = uv__udp_maybe_deferred_bind(handle, addr->sa_family, 0); in uv__udp_try_send()
804 if (err) in uv__udp_try_send()
805 return err; in uv__udp_try_send()
837 int err; in uv__udp_set_membership4() local
842 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4()
843 if (err) in uv__udp_set_membership4()
844 return err; in uv__udp_set_membership4()
938 int err; in uv__udp_set_source_membership4() local
940 err = uv__udp_maybe_deferred_bind(handle, AF_INET, UV_UDP_REUSEADDR); in uv__udp_set_source_membership4()
941 if (err) in uv__udp_set_source_membership4()
942 return err; in uv__udp_set_source_membership4()
947 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_source_membership4()
948 if (err) in uv__udp_set_source_membership4()
949 return err; in uv__udp_set_source_membership4()
984 int err; in uv__udp_set_source_membership6() local
986 err = uv__udp_maybe_deferred_bind(handle, AF_INET6, UV_UDP_REUSEADDR); in uv__udp_set_source_membership6()
987 if (err) in uv__udp_set_source_membership6()
988 return err; in uv__udp_set_source_membership6()
993 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6()
994 if (err) in uv__udp_set_source_membership6()
995 return err; in uv__udp_set_source_membership6()
1062 int err; in uv_udp_open() local
1071 err = uv__nonblock(sock, 1); in uv_udp_open()
1072 if (err) in uv_udp_open()
1073 return err; in uv_udp_open()
1075 err = uv__sock_reuseaddr(sock); in uv_udp_open()
1076 if (err) in uv_udp_open()
1077 return err; in uv_udp_open()
1091 int err; in uv_udp_set_membership() local
1096 err = uv__udp_maybe_deferred_bind(handle, AF_INET, UV_UDP_REUSEADDR); in uv_udp_set_membership()
1097 if (err) in uv_udp_set_membership()
1098 return err; in uv_udp_set_membership()
1101 err = uv__udp_maybe_deferred_bind(handle, AF_INET6, UV_UDP_REUSEADDR); in uv_udp_set_membership()
1102 if (err) in uv_udp_set_membership()
1103 return err; in uv_udp_set_membership()
1122 int err; in uv_udp_set_source_membership() local
1126 err = uv_ip4_addr(multicast_addr, 0, &mcast_addr.in); in uv_udp_set_source_membership()
1127 if (err) { in uv_udp_set_source_membership()
1128 err = uv_ip6_addr(multicast_addr, 0, &mcast_addr.in6); in uv_udp_set_source_membership()
1129 if (err) in uv_udp_set_source_membership()
1130 return err; in uv_udp_set_source_membership()
1131 err = uv_ip6_addr(source_addr, 0, &src_addr.in6); in uv_udp_set_source_membership()
1132 if (err) in uv_udp_set_source_membership()
1133 return err; in uv_udp_set_source_membership()
1141 err = uv_ip4_addr(source_addr, 0, &src_addr.in); in uv_udp_set_source_membership()
1142 if (err) in uv_udp_set_source_membership()
1143 return err; in uv_udp_set_source_membership()
1371 int err; in uv__udp_recv_start() local
1379 err = uv__udp_maybe_deferred_bind(handle, AF_INET, 0); in uv__udp_recv_start()
1380 if (err) in uv__udp_recv_start()
1381 return err; in uv__udp_recv_start()