Lines Matching refs:r
39 int r, namelen; in TEST_IMPL() local
43 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET); in TEST_IMPL()
44 ASSERT_OK(r); in TEST_IMPL()
46 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL()
47 ASSERT_OK(r); in TEST_IMPL()
53 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
54 ASSERT_OK(r); in TEST_IMPL()
60 r = uv_udp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
61 ASSERT_OK(r); in TEST_IMPL()
64 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
65 ASSERT_OK(r); in TEST_IMPL()
82 int r; in TEST_IMPL() local
89 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET6); in TEST_IMPL()
90 ASSERT_OK(r); in TEST_IMPL()
92 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL()
93 ASSERT_OK(r); in TEST_IMPL()
102 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
103 ASSERT_OK(r); in TEST_IMPL()
110 r = uv_udp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
112 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
114 ASSERT_EQ(r, UV_EFAULT); in TEST_IMPL()
127 int r; in TEST_IMPL() local
129 r = uv_udp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
130 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
132 r = uv_udp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
133 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()