Home
last modified time | relevance | path

Searched refs:sunaddr (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c505 struct sockaddr_un sunaddr; in unix_connect() local
511 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un)); in unix_connect()
512 sunaddr.sun_family = AF_UNIX; in unix_connect()
514 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >= in unix_connect()
515 sizeof (sunaddr.sun_path)) { in unix_connect()
520 if (connect(s, (struct sockaddr *)&sunaddr, SUN_LEN(&sunaddr)) < 0) { in unix_connect()
534 struct sockaddr_un sunaddr; in unix_listen() local
541 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un)); in unix_listen()
542 sunaddr.sun_family = AF_UNIX; in unix_listen()
544 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >= in unix_listen()
[all …]