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()
158 ASSERT_EQ(UV_ENOBUFS, uv_pipe_getsockname(&pipe_server, buf, &len)); in TEST_IMPL()
161 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &len)); in TEST_IMPL()
163 ASSERT_NE(0, buf[len - 1]); in TEST_IMPL()
164 ASSERT_EQ(buf[len], '\0'); in TEST_IMPL()
165 ASSERT_OK(memcmp(buf, TEST_PIPENAME, len)); in TEST_IMPL()
167 len = sizeof buf; in TEST_IMPL()
168 r = uv_pipe_getpeername(&pipe_server, buf, &len); in TEST_IMPL()
177 len = sizeof buf; in TEST_IMPL()
178 r = uv_pipe_getsockname(&pipe_client, buf, &len); in TEST_IMPL()
181 len = sizeof buf; in TEST_IMPL()
182 r = uv_pipe_getpeername(&pipe_client, buf, &len); in TEST_IMPL()
193 len = sizeof buf; in TEST_IMPL()
194 r = uv_pipe_getsockname(&pipe_client, buf, &len); in TEST_IMPL()
198 len = sizeof buf; in TEST_IMPL()
199 r = uv_pipe_getpeername(&pipe_client, buf, &len); in TEST_IMPL()
202 ASSERT_NE(0, buf[len - 1]); in TEST_IMPL()
203 ASSERT_OK(memcmp(buf, TEST_PIPENAME, len)); in TEST_IMPL()
219 char buf[256]; in TEST_IMPL() local
222 buflen = sizeof(buf); in TEST_IMPL()
223 memset(buf, 0, sizeof(buf)); in TEST_IMPL()
226 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &buflen)); in TEST_IMPL()
228 ASSERT_MEM_EQ(name, buf, buflen); in TEST_IMPL()
267 char buf[256]; in TEST_IMPL() local
270 buflen = sizeof(buf); in TEST_IMPL()
271 memset(buf, 0, sizeof(buf)); in TEST_IMPL()
274 ASSERT_OK(uv_pipe_getsockname(&pipe_server, buf, &buflen)); in TEST_IMPL()
275 check_is_autobind_abstract_socket_name(buf, buflen); in TEST_IMPL()
280 buf, in TEST_IMPL()
281 1 + strlen(&buf[1]), in TEST_IMPL()