OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man7 / unix.7
index ecd8f7c..9e5e78a 100644 (file)
@@ -17,7 +17,7 @@
 .\"     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
@@ -218,7 +218,7 @@ then there is no guarantee that a null terminator is present in
 .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
@@ -593,7 +593,7 @@ if (addrp == NULL)
     /* 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);
@@ -623,7 +623,7 @@ see
 .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,