Lines Matching defs:sun
612 struct sockaddr_un *sun;
644 sun = nbuf->buf;
645 if (asprintf(&ret, "%.*s", (int)(sun->sun_len -
647 sun->sun_path) < 0)
667 struct sockaddr_un *sun;
734 sun = (struct sockaddr_un *)malloc(sizeof *sun);
735 if (sun == NULL)
737 memset(sun, 0, sizeof *sun);
738 sun->sun_family = AF_LOCAL;
739 strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
740 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
741 ret->buf = sun;