Lines Matching defs:sun
172 struct sockaddr_un sun;
214 sa = (struct sockaddr *)(void *)&sun;
215 sun.sun_len = sizeof(sun);
216 sun.sun_family = AF_LOCAL;
217 (void)strcpy(sun.sun_path, path);
219 if (connect(sv[0], sa, (socklen_t)sun.sun_len) == 0)
296 struct sockaddr_un *sun;
320 sun = (struct sockaddr_un *)(void *)&ss;
324 (strcmp(sun->sun_path, _PATH_FUSE) == 0)) {
326 sun->sun_len = sizeof(*sun);
327 sun->sun_family = AF_LOCAL;
328 (void)sprintf(sun->sun_path, "%s/%s-%d",
333 __func__, __LINE__, sun->sun_path);
335 sock_len = strlen(sun->sun_path) + 1;
390 (void)strcpy(cp, sun->sun_path);