Lines Matching refs:unix_addr
553 static inline int parse_unix_address(php_stream_xport_param *xparam, struct sockaddr_un *unix_addr) in parse_unix_address() argument
555 memset(unix_addr, 0, sizeof(*unix_addr)); in parse_unix_address()
556 unix_addr->sun_family = AF_UNIX; in parse_unix_address()
560 if (xparam->inputs.namelen >= sizeof(unix_addr->sun_path)) { in parse_unix_address()
566 xparam->inputs.namelen = sizeof(unix_addr->sun_path) - 1; in parse_unix_address()
569 "and was truncated", (unsigned long)sizeof(unix_addr->sun_path)); in parse_unix_address()
572 memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen); in parse_unix_address()
632 struct sockaddr_un unix_addr; in php_tcp_sockop_bind() local
645 parse_unix_address(xparam, &unix_addr); in php_tcp_sockop_bind()
647 return bind(sock->socket, (const struct sockaddr *)&unix_addr, in php_tcp_sockop_bind()
713 struct sockaddr_un unix_addr; in php_tcp_sockop_connect() local
724 parse_unix_address(xparam, &unix_addr); in php_tcp_sockop_connect()
727 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()