aboutsummaryrefslogtreecommitdiffstats
path: root/man7/socket.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-08-08 16:47:53 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-08-08 16:47:53 +0000
commitd4c8c97c312455631c0c22151ad19b98c2eee3fd (patch)
tree783a3dd69217af76d40f61c3858ab676e0ab71ce /man7/socket.7
parent77117f4fc55addbb657d1c87e2f86911d7e432c9 (diff)
downloadman-pages-d4c8c97c312455631c0c22151ad19b98c2eee3fd.tar.gz
s/PF_/AF_/ for socket family constants. Reasons: the AF_ and
PF_ constants have always had the same values; there never has been a protocol family that had more than one address family, and POSIX.1-2001 only specifies the AF_* constants.
Diffstat (limited to 'man7/socket.7')
-rw-r--r--man7/socket.715
1 files changed, 6 insertions, 9 deletions
diff --git a/man7/socket.7 b/man7/socket.7
index 41b37f1b44..947bdd7771 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -14,10 +14,7 @@
.\" Added notes on capability requirements
.\" A few small grammar fixes
.\"
-.\" FIXME probably all PF_* should be AF_* in this page, since
-.\" POSIX only specifies the latter values.
-.\"
-.TH SOCKET 7 2007-12-28 Linux "Linux Programmer's Manual"
+.TH SOCKET 7 2008-08-08 Linux "Linux Programmer's Manual"
.SH NAME
socket \- Linux socket interface
.SH SYNOPSIS
@@ -33,7 +30,7 @@ between the user process and the network protocol stacks in the kernel.
The protocol modules are grouped into
.I protocol families
like
-.BR PF_INET ", " PF_IPX ", " PF_PACKET
+.BR AF_INET ", " AF_IPX ", " AF_PACKET
and
.I socket types
like
@@ -62,7 +59,7 @@ is used to get a new socket with a new incoming connection.
.BR socketpair (2)
returns two connected anonymous sockets (only implemented for a few
local families like
-.BR PF_UNIX )
+.BR AF_UNIX )
.PP
.BR send (2),
.BR sendto (2),
@@ -327,9 +324,9 @@ For more information see
.B SO_PEERCRED
Return the credentials of the foreign process connected to this socket.
This is only possible for connected
-.B PF_UNIX
+.B AF_UNIX
stream sockets and
-.B PF_UNIX
+.B AF_UNIX
stream and datagram socket pairs created using
.BR socketpair (2);
see
@@ -447,7 +444,7 @@ Indicates that the rules used in validating addresses supplied in a
.BR bind (2)
call should allow reuse of local addresses.
For
-.B PF_INET
+.B AF_INET
sockets this
means that a socket may bind, except when there
is an active listening socket bound to the address.