summaryrefslogtreecommitdiffstats
path: root/man3/cmsg.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/cmsg.3')
-rw-r--r--man3/cmsg.318
1 files changed, 9 insertions, 9 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3
index 43fd7c176..628af9318 100644
--- a/man3/cmsg.3
+++ b/man3/cmsg.3
@@ -31,9 +31,9 @@ credentials.
For instance, control messages can be used to send
additional header fields such as IP options.
Ancillary data is sent by calling
-.BR sendmsg (2)
+.MR sendmsg 2
and received by calling
-.BR recvmsg (2).
+.MR recvmsg 2 .
See their manual pages for more information.
.P
Ancillary data is a sequence of
@@ -43,7 +43,7 @@ See the specific protocol man pages for the available control message types.
The maximum ancillary buffer size allowed per socket can be set using
.IR /proc/sys/net/core/optmem_max ;
see
-.BR socket (7).
+.MR socket 7 .
.P
The
.I cmsghdr
@@ -87,7 +87,7 @@ It returns NULL when there isn't enough space left in the buffer.
When initializing a buffer that will contain a series of
.I cmsghdr
structures (e.g., to be sent with
-.BR sendmsg (2)),
+.MR sendmsg 2 ),
that buffer should first be zero-initialized
to ensure the correct operation of
.BR CMSG_NXTHDR ().
@@ -109,7 +109,7 @@ The pointer returned cannot be assumed to be suitably aligned for
accessing arbitrary payload data types.
Applications should not cast it to a pointer type matching the payload,
but should instead use
-.BR memcpy (3)
+.MR memcpy 3
to copy data to or from a suitably declared object.
.TP
.BR CMSG_LEN ()
@@ -154,7 +154,7 @@ all control messages in the buffer.
For more information on the
.IR msghdr ,
see
-.BR recvmsg (2).
+.MR recvmsg 2 .
.SH VERSIONS
For portability, ancillary data should be accessed using only the macros
described here.
@@ -253,9 +253,9 @@ memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));
.P
For a complete code example that shows passing of file descriptors
over a UNIX domain socket, see
-.BR seccomp_unotify (2).
+.MR seccomp_unotify 2 .
.SH SEE ALSO
-.BR recvmsg (2),
-.BR sendmsg (2)
+.MR recvmsg 2 ,
+.MR sendmsg 2
.P
RFC\ 2292