diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 0de6091d3..c9a01e8c7 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -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) diff --git a/man7/unix.7 b/man7/unix.7 index 1253b925b..fc2834fe4 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -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),