diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-22 20:40:07 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-22 20:40:07 +0000 |
| commit | 097585edcb910d46ea15fd40c9753dfd9d150e97 (patch) | |
| tree | 727b421be423fff8355c22616bf7dcc58ec73e71 /man7/unix.7 | |
| parent | 2f0af33ba65b9acc67dc3fcdbb8b123af932a477 (diff) | |
| download | man-pages-097585edcb910d46ea15fd40c9753dfd9d150e97.tar.gz | |
ffix
Diffstat (limited to 'man7/unix.7')
| -rw-r--r-- | man7/unix.7 | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/man7/unix.7 b/man7/unix.7 index e6cf55d34d..23c4170b29 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -89,12 +89,17 @@ bytes in Note that names in the abstract namespace are not zero-terminated. .SS Socket Options For historical reasons these socket options are specified with a -SOL_SOCKET type even though they are PF_UNIX specific. +.B SOL_SOCKET +type even though they are +.B PF_UNIX +specific. They can be set with .BR setsockopt (2) and read with .BR getsockopt (2) -by specifying SOL_SOCKET as the socket family. +by specifying +.B SOL_SOCKET +as the socket family. .TP .B SO_PASSCRED Enables the receiving of the credentials of the sending process @@ -136,13 +141,18 @@ Ancillary data is sent and received using and .BR recvmsg (2). For historical reasons the ancillary message types listed below -are specified with a SOL_SOCKET type even though they are PF_UNIX +are specified with a +.B SOL_SOCKET +type even though they are +.B PF_UNIX specific. To send them set the .B cmsg_level field of the struct .B cmsghdr -to SOL_SOCKET and the +to +.B SOL_SOCKET +and the .B cmsg_type field to the type. For more information see @@ -216,8 +226,10 @@ Passed protocol is not PF_UNIX. Unknown socket type. .TP .B EPROTOTYPE -Remote socket does not match the local socket type (SOCK_DGRAM vs. -SOCK_STREAM) +Remote socket does not match the local socket type +.RB ( SOCK_DGRAM +vs. +.BR SOCK_STREAM ) .TP .B EADDRINUSE Selected local address is already taken or filesystem socket @@ -282,7 +294,9 @@ The usual Unix close-behind semantics apply; the socket can be unlinked at any time and will be finally removed from the file system when the last reference to it is closed. -To pass file descriptors or credentials over a SOCK_STREAM, you need +To pass file descriptors or credentials over a +.BR SOCK_STREAM , +you need to send or receive at least one byte of non-ancillary data in the same .BR sendmsg (2) or |
