Lines Matching defs:sockaddr

513 isc__socket_cleanunix(isc_sockaddr_t *sockaddr, isc_boolean_t active);
515 isc__socket_permunix(isc_sockaddr_t *sockaddr, isc_uint32_t perm,
518 isc__socket_bind(isc_socket_t *sock, isc_sockaddr_t *sockaddr,
4844 isc__socket_cleanunix(isc_sockaddr_t *sockaddr, isc_boolean_t active) {
4850 if (sockaddr->type.sa.sa_family != AF_UNIX)
4882 if (stat(sockaddr->type.sunix.sun_path, &sb) < 0) {
4887 sockaddr->type.sunix.sun_path, strbuf);
4894 sockaddr->type.sunix.sun_path);
4897 if (unlink(sockaddr->type.sunix.sun_path) < 0) {
4902 sockaddr->type.sunix.sun_path, strbuf);
4913 sockaddr->type.sunix.sun_path, strbuf);
4917 if (stat(sockaddr->type.sunix.sun_path, &sb) < 0) {
4926 sockaddr->type.sunix.sun_path, strbuf);
4936 sockaddr->type.sunix.sun_path);
4940 if (connect(s, (struct sockaddr *)&sockaddr->type.sunix,
4941 sizeof(sockaddr->type.sunix)) < 0) {
4945 if (unlink(sockaddr->type.sunix.sun_path) < 0) {
4952 sockaddr->type.sunix.sun_path,
4961 sockaddr->type.sunix.sun_path, strbuf);
4968 UNUSED(sockaddr);
4974 isc__socket_permunix(isc_sockaddr_t *sockaddr, isc_uint32_t perm,
4980 char path[sizeof(sockaddr->type.sunix.sun_path)];
4985 REQUIRE(sockaddr->type.sa.sa_family == AF_UNIX);
4986 INSIST(strlen(sockaddr->type.sunix.sun_path) < sizeof(path));
4987 strcpy(path, sockaddr->type.sunix.sun_path);
5019 UNUSED(sockaddr);
5028 isc__socket_bind(isc_socket_t *sock0, isc_sockaddr_t *sockaddr,
5041 if (sock->pf != sockaddr->type.sa.sa_family) {
5054 isc_sockaddr_getport(sockaddr) != (in_port_t)0 &&
5066 if (bind(sock->fd, &sockaddr->type.sa, sockaddr->length) < 0) {
5088 socket_log(sock, sockaddr, TRACE,