Package: manpages-dev Severity: normal Tags: patch Hello.
There's no such protocol family AF_UNIX, AF_INET etc., those are *address* families. Protocol families are PF_UNIX, PF_INET etc. as specified in socket(2) manpage. -- WBR, Andrew
--- bind.2 2008-03-14 10:43:47.000000000 +0200
+++ bind.2 2008-09-09 20:55:59.000000000 +0300
@@ -175,7 +175,7 @@
is a descriptor for a file, not a socket.
.PP
The following errors are specific to UNIX domain
-.RB ( AF_UNIX )
+.RB ( PF_UNIX )
sockets:
.TP
.B EACCES
@@ -256,7 +256,7 @@
.BR getaddrinfo (3).
The following example shows how to bind a stream socket in the Unix
-.RB ( AF_UNIX )
+.RB ( PF_UNIX )
domain, and accept connections:
.\" listen.7 refers to this example.
.\" accept.7 refers to this example.
@@ -282,7 +282,7 @@
struct sockaddr_un my_addr, peer_addr;
socklen_t peer_addr_size;
- sfd = socket(AF_UNIX, SOCK_STREAM, 0);
+ sfd = socket(PF_UNIX, SOCK_STREAM, 0);
if (sfd == \-1)
handle_error("socket");
signature.asc
Description: This is a digitally signed message part.

