Lines Matching defs:sun
635 struct sockaddr_un *sun;
675 sun = nbuf->buf;
676 sun->sun_path[sizeof(sun->sun_path) - 1] = '\0'; /* safety */
677 ret = strdup(sun->sun_path);
697 struct sockaddr_un *sun;
766 sun = malloc(sizeof(*sun));
767 if (sun == NULL)
769 memset(sun, 0, sizeof *sun);
770 sun->sun_family = AF_LOCAL;
771 strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
772 len = SUN_LEN(sun);
774 ret->len = ret->maxlen = sun->sun_len = (uint8_t)len;
775 ret->buf = sun;