.\" address that can appear in the sockaddr_un structure: pathname,
.\" unnamed, and abstract.
.\"
-.TH UNIX 7 2014-10-15 "Linux" "Linux Programmer's Manual"
+.TH UNIX 7 2014-12-31 "Linux" "Linux Programmer's Manual"
.SH NAME
unix \- sockets for local interprocess communication
.SH SYNOPSIS
.IR sun_path .
(See BUGS.)
.SS Socket options
-For historical reasons these socket options are specified with a
+For historical reasons, these socket options are specified with a
.B SOL_SOCKET
type even though they are
.B AF_UNIX
/* Handle error */ ;
memset(addrp, 0, addrlen + 1);
-if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) != \-1)
+if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == \-1)
/* handle error */ ;
printf("sun_path = %s\\n", ((struct sockaddr_un *) addrp)\->sun_path);
.BR credentials (7),
.BR socket (7)
.SH COLOPHON
-This page is part of release 3.75 of the Linux
+This page is part of release 3.79 of the Linux
.I man-pages
project.
A description of the project,