Lines Matching refs:len

51   size_t len;  in pipe_client_connect_cb()  local
57 len = sizeof buf; in pipe_client_connect_cb()
58 r = uv_pipe_getpeername(&pipe_client, buf, &len); in pipe_client_connect_cb()
63 ASSERT_EQ(len, sizeof(expected) - 1); in pipe_client_connect_cb()
64 ASSERT_MEM_EQ(buf, expected, len); in pipe_client_connect_cb()
66 ASSERT_NE(0, buf[len - 1]); in pipe_client_connect_cb()
67 ASSERT_MEM_EQ(buf, TEST_PIPENAME, len); in pipe_client_connect_cb()
70 len = sizeof buf; in pipe_client_connect_cb()
71 r = uv_pipe_getsockname(&pipe_client, buf, &len); in pipe_client_connect_cb()
72 ASSERT(r == 0 && len == 0); in pipe_client_connect_cb()
83 static void check_is_autobind_abstract_socket_name(const char *p, size_t len) { in check_is_autobind_abstract_socket_name() argument
84 ASSERT_EQ(len, 6); in check_is_autobind_abstract_socket_name()
96 size_t len; in pipe_client_autobind_connect_cb() local
99 len = 5; in pipe_client_autobind_connect_cb()
100 ASSERT_EQ(UV_ENOBUFS, uv_pipe_getpeername(&pipe_client, buf, &len)); in pipe_client_autobind_connect_cb()
101 len = 6; in pipe_client_autobind_connect_cb()
102 ASSERT_OK(uv_pipe_getpeername(&pipe_client, buf, &len)); in pipe_client_autobind_connect_cb()
103 check_is_autobind_abstract_socket_name(buf, len); in pipe_client_autobind_connect_cb()
127 size_t len; in TEST_IMPL() local
142 len = sizeof buf; in TEST_IMPL()
143 r = uv_pipe_getsockname(&pipe_server, buf, &len); in TEST_IMPL()
146 len = sizeof buf; in TEST_IMPL()
147 r = uv_pipe_getpeername(&pipe_server, buf, &len); in TEST_IMPL()
157 r = uv_pipe_getsockname(&pipe_server, NULL, &len); in TEST_IMPL()
166 len = sizeof(TEST_PIPENAME) - 1; in TEST_IMPL()
167 ASSERT_EQ(UV_ENOBUFS, uv_pipe_getsockname(&pipe_server, buf, &len)); in TEST_IMPL()
169 len = sizeof(TEST_PIPENAME); in TEST_IMPL()
170 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &len)); in TEST_IMPL()
172 ASSERT_NE(0, buf[len - 1]); in TEST_IMPL()
173 ASSERT_EQ(buf[len], '\0'); in TEST_IMPL()
174 ASSERT_OK(memcmp(buf, TEST_PIPENAME, len)); in TEST_IMPL()
176 len = sizeof buf; in TEST_IMPL()
177 r = uv_pipe_getpeername(&pipe_server, buf, &len); in TEST_IMPL()
186 len = sizeof buf; in TEST_IMPL()
187 r = uv_pipe_getsockname(&pipe_client, buf, &len); in TEST_IMPL()
190 len = sizeof buf; in TEST_IMPL()
191 r = uv_pipe_getpeername(&pipe_client, buf, &len); in TEST_IMPL()
202 len = sizeof buf; in TEST_IMPL()
203 r = uv_pipe_getsockname(&pipe_client, buf, &len); in TEST_IMPL()
205 ASSERT_EQ(len, 0); in TEST_IMPL()
207 len = sizeof buf; in TEST_IMPL()
208 r = uv_pipe_getpeername(&pipe_client, buf, &len); in TEST_IMPL()
211 ASSERT_NE(0, buf[len - 1]); in TEST_IMPL()
212 ASSERT_OK(memcmp(buf, TEST_PIPENAME, len)); in TEST_IMPL()