Lines Matching refs:buf

50   char buf[1024];  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()
61 if (*buf == '\0') { /* Linux abstract socket. */ 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()
95 char buf[16]; in pipe_client_autobind_connect_cb() local
100 ASSERT_EQ(UV_ENOBUFS, uv_pipe_getpeername(&pipe_client, buf, &len)); 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()
125 char buf[1024]; 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()
160 r = uv_pipe_getsockname(&pipe_server, buf, NULL); in TEST_IMPL()
167 ASSERT_EQ(UV_ENOBUFS, uv_pipe_getsockname(&pipe_server, buf, &len)); 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()
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()
228 char buf[256]; in TEST_IMPL() local
231 buflen = sizeof(buf); in TEST_IMPL()
232 memset(buf, 0, sizeof(buf)); in TEST_IMPL()
235 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &buflen)); in TEST_IMPL()
237 ASSERT_MEM_EQ(name, buf, buflen); in TEST_IMPL()
276 char buf[256]; in TEST_IMPL() local
279 buflen = sizeof(buf); in TEST_IMPL()
280 memset(buf, 0, sizeof(buf)); in TEST_IMPL()
283 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &buflen)); in TEST_IMPL()
284 check_is_autobind_abstract_socket_name(buf, buflen); in TEST_IMPL()
289 buf, in TEST_IMPL()
290 1 + strlen(&buf[1]), in TEST_IMPL()