Lines Matching defs:sun
603 struct sockaddr_un *sun;
639 sun = nbuf->buf;
640 if (asprintf(&ret, "%.*s", (int)(sun->sun_len -
642 sun->sun_path) < 0)
662 struct sockaddr_un *sun;
733 sun = (struct sockaddr_un *)malloc(sizeof *sun);
734 if (sun == NULL)
736 memset(sun, 0, sizeof *sun);
737 sun->sun_family = AF_LOCAL;
738 strncpy(sun->sun_path, addrstr, sizeof(sun->sun_path) - 1);
739 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
740 ret->buf = sun;