]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man7/unix.7
ffix
[thirdparty/man-pages.git] / man7 / unix.7
index d733c31ca5560eb1dac6fb38e11885058512b5eb..05b0b6affd4f59dec023ce1fc8efd33089cce6f5 100644 (file)
@@ -21,7 +21,6 @@ interprocess communication
 .IB unix_socket " = socket(PF_UNIX, type, 0);"
 .br
 .IB error " = socketpair(PF_UNIX, type, 0, int *" sv ");"
-
 .SH DESCRIPTION
 The
 .B PF_UNIX
@@ -48,7 +47,6 @@ and delivers messages in the order that they were sent.
 
 Unix sockets support passing file descriptors or process credentials 
 to other processes using ancillary data.
-
 .SH "ADDRESS FORMAT"
 A Unix address is defined as a filename in the filesystem or 
 as a unique string in the abstract namespace. Sockets created by 
@@ -86,7 +84,6 @@ The socket's address in this namespace is given by the rest of the
 bytes in
 .BR sun_path .
 Note that names in the abstract namespace are not zero-terminated.
-
 .SH "SOCKET OPTIONS"
 For historical reasons these socket options are specified with a 
 SOL_SOCKET type even though they are PF_UNIX specific.
@@ -102,7 +99,6 @@ ancillary message.
 When this option is set and the socket is not yet connected
 a unique name in the abstract namespace will be generated automatically.
 Expects an integer boolean flag. 
-
 .SH "(UN)SUPPORTED FEATURES"
 The following paragraphs describe domain-specific details and 
 unsupported features of the sockets API for Unix domain sockets on Linux.
@@ -131,7 +127,6 @@ value imposes an upper limit on the size of outgoing datagrams.
 This limit is calculated as the doubled (see
 .BR socket (7))
 option value less 32 bytes used for overhead.
-
 .SH "ANCILLARY MESSAGES"
 Ancillary data is sent and received using
 .BR sendmsg (2)
@@ -148,14 +143,12 @@ to SOL_SOCKET and the
 .B cmsg_type 
 field to the type. For more information see 
 .BR cmsg (3). 
-
 .TP
 .B SCM_RIGHTS
 Send or receive a set of open file descriptors from another process. 
 The data portion contains an integer array of the file descriptors.
 The passed file descriptors behave as though they have been created with
 .BR dup (2).
-
 .TP
 .B SCM_CREDENTIALS
 Send or receive Unix credentials.  This can be used for authentication.
@@ -188,14 +181,12 @@ To receive a
 message the
 .B SO_PASSCRED 
 option must be enabled on the socket.
-
 .SH VERSIONS
 .B SCM_CREDENTIALS 
 and the abstract namespace were introduced with Linux 2.2 and should not
 be used in portable programs.
 (Some BSD-derived systems also support credential passing,
 but the implementation details differ.)
-
 .SH NOTES
 In the Linux implementation, sockets which are visible in the
 filesystem honour the permissions of the directory they are in. Their