Lines Matching refs:addrlen
69 socklen_t addrlen; in uv_pipe_bind2() local
110 addrlen = offsetof(struct sockaddr_un, sun_path) + namelen; in uv_pipe_bind2()
117 addrlen = sizeof saddr; in uv_pipe_bind2()
129 if (bind(sockfd, (struct sockaddr*)&saddr, addrlen)) { in uv_pipe_bind2()
263 socklen_t addrlen; in uv_pipe_connect2() local
299 addrlen = offsetof(struct sockaddr_un, sun_path) + namelen; in uv_pipe_connect2()
301 addrlen = sizeof saddr; in uv_pipe_connect2()
304 r = connect(uv__stream_fd(handle), (struct sockaddr*)&saddr, addrlen); in uv_pipe_connect2()
358 socklen_t addrlen; in uv__pipe_getsockpeername() local
366 addrlen = sizeof(sa); in uv__pipe_getsockpeername()
367 memset(&sa, 0, addrlen); in uv__pipe_getsockpeername()
371 (int*) &addrlen); in uv__pipe_getsockpeername()
381 addrlen -= offsetof(struct sockaddr_un, sun_path); in uv__pipe_getsockpeername()
386 addrlen = p - sa.sun_path; in uv__pipe_getsockpeername()
389 if ((size_t)addrlen + slop > *size) { in uv__pipe_getsockpeername()
390 *size = addrlen + slop; in uv__pipe_getsockpeername()
394 memcpy(buffer, sa.sun_path, addrlen); in uv__pipe_getsockpeername()
395 *size = addrlen; in uv__pipe_getsockpeername()
399 buffer[addrlen] = '\0'; in uv__pipe_getsockpeername()