Lines Matching defs:sunaddr
484 struct sockaddr_un sunaddr;
490 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un));
491 sunaddr.sun_family = AF_UNIX;
493 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >=
494 sizeof (sunaddr.sun_path)) {
499 if (connect(s, (struct sockaddr *)&sunaddr, SUN_LEN(&sunaddr)) < 0) {
513 struct sockaddr_un sunaddr;
520 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un));
521 sunaddr.sun_family = AF_UNIX;
523 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >=
524 sizeof (sunaddr.sun_path)) {
530 if (bind(s, (struct sockaddr *)&sunaddr, SUN_LEN(&sunaddr)) < 0) {