Lines Matching refs:sun
602 struct sockaddr_un *sun;
638 sun = nbuf->buf;
639 if (asprintf(&ret, "%.*s", (int)(sun->sun_len -
641 sun->sun_path) < 0)
661 struct sockaddr_un *sun;
732 sun = (struct sockaddr_un *)malloc(sizeof *sun);
733 if (sun == NULL)
735 memset(sun, 0, sizeof *sun);
736 sun->sun_family = AF_LOCAL;
737 strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
738 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
739 ret->buf = sun;