aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-07-28 11:08:03 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-07-28 12:30:44 +0200
commit94950b9a685443299409fe82b0464d4982667f33 (patch)
tree150b2f25ec67204690a3990ce5f490f7f8506dbc /man7
parentffab8460c6d25fc1eb5a004a2ccacea67ca7a718 (diff)
downloadman-pages-94950b9a685443299409fe82b0464d4982667f33.tar.gz
socket.7, unix.7: Move text describing SO_PEERCRED from socket(7) to unix(7)
This is, AFAIK, an option specific to UNIX domain sockets, so place it in unix(7). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/socket.722
-rw-r--r--man7/unix.721
2 files changed, 23 insertions, 20 deletions
diff --git a/man7/socket.7 b/man7/socket.7
index d99d12ca59..f0d53a81ee 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -696,27 +696,9 @@ recv(fd, buf, 2, MSG_PEEK); // Peeks "ee"; offset set to 8
.in
.TP
.B SO_PEERCRED
-Return the credentials of the foreign process connected to this socket.
-This is possible only for connected
-.B AF_UNIX
-stream sockets and
-.B AF_UNIX
-stream and datagram socket pairs created using
-.BR socketpair (2);
-see
+Return the credentials of the peer process connected to this socket.
+For further details, see
.BR unix (7).
-The returned credentials are those that were in effect at the time
-of the call to
-.BR connect (2)
-or
-.BR socketpair (2).
-The argument is a
-.I ucred
-structure; define the
-.B _GNU_SOURCE
-feature test macro to obtain the definition of that structure from
-.IR <sys/socket.h> .
-This socket option is read-only.
.TP
.B SO_PRIORITY
Set the protocol-defined priority for all packets to be sent on
diff --git a/man7/unix.7 b/man7/unix.7
index 2eb56e1994..742b6bac18 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -302,6 +302,27 @@ in Linux 4.2.
.BR SO_PEEK_OFF
See
.BR socket (7).
+.TP
+.B SO_PEERCRED
+Return the credentials of the foreign process connected to this socket.
+This is possible only for connected
+.B AF_UNIX
+stream sockets and
+.B AF_UNIX
+stream and datagram socket pairs created using
+.BR socketpair (2).
+The returned credentials are those that were in effect at the time
+of the call to
+.BR connect (2)
+or
+.BR socketpair (2).
+The argument is a
+.I ucred
+structure; define the
+.B _GNU_SOURCE
+feature test macro to obtain the definition of that structure from
+.IR <sys/socket.h> .
+This socket option is read-only.
.\"
.SS Autobind feature
If a