cmsg.3, unix.7: Refer to seccomp_unotify(2) for an example of SCM_RIGHTS usage

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-10-25 13:54:05 +01:00
parent 730a8d48d1
commit 7a27538327
2 changed files with 9 additions and 3 deletions

View File

@ -246,6 +246,10 @@ cmsg\->cmsg_len = CMSG_LEN(sizeof(myfds));
memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));
.EE
.in
.PP
For a complete code example that shows passing of file descriptors
over a UNIX domain socket, see
.BR seccomp_unotify (2).
.SH SEE ALSO
.BR recvmsg (2),
.BR sendmsg (2)

View File

@ -1180,10 +1180,12 @@ main(int argc, char *argv[])
}
.EE
.PP
For an example of the use of
.BR SCM_RIGHTS
For examples of the use of
.BR SCM_RIGHTS ,
see
.BR cmsg (3).
.BR cmsg (3)
and
.BR seccomp_unotify (2).
.SH SEE ALSO
.BR recvmsg (2),
.BR sendmsg (2),