aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.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/unix.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/unix.7')
-rw-r--r--man7/unix.718
1 files changed, 9 insertions, 9 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index 3f66b37427..4fbe28ae62 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -12,23 +12,23 @@
.\" address that can appear in the sockaddr_un structure: pathname,
.\" unnamed, and abstract.
.\"
-.TH UNIX 7 2008-06-17 "Linux" "Linux Programmer's Manual"
+.TH UNIX 7 2008-08-08 "Linux" "Linux Programmer's Manual"
.SH NAME
-unix, PF_UNIX, AF_UNIX, PF_LOCAL, AF_LOCAL \- Sockets for local
+unix, AF_UNIX, AF_LOCAL \- Sockets for local
interprocess communication
.SH SYNOPSIS
.B #include <sys/socket.h>
.br
.B #include <sys/un.h>
-.IB unix_socket " = socket(PF_UNIX, type, 0);"
+.IB unix_socket " = socket(AF_UNIX, type, 0);"
.br
-.IB error " = socketpair(PF_UNIX, type, 0, int *" sv ");"
+.IB error " = socketpair(AF_UNIX, type, 0, int *" sv ");"
.SH DESCRIPTION
The
-.B PF_UNIX
+.B AF_UNIX
(also known as
-.BR PF_LOCAL )
+.BR AF_LOCAL )
socket family is used to communicate between processes on the same machine
efficiently.
Traditionally, Unix sockets can be either unnamed,
@@ -132,7 +132,7 @@ The abstract socket namespace is a non-portable Linux extension.
For historical reasons these socket options are specified with a
.B SOL_SOCKET
type even though they are
-.B PF_UNIX
+.B AF_UNIX
specific.
They can be set with
.BR setsockopt (2)
@@ -185,7 +185,7 @@ For historical reasons the ancillary message types listed below
are specified with a
.B SOL_SOCKET
type even though they are
-.B PF_UNIX
+.B AF_UNIX
specific.
To send them set the
.I cmsg_level
@@ -295,7 +295,7 @@ or
.BR recvmsg (2).
.TP
.B EPROTONOSUPPORT
-Passed protocol is not PF_UNIX.
+Passed protocol is not AF_UNIX.
.TP
.B EPROTOTYPE
Remote socket does not match the local socket type