3 sendfd, recvfd \- pass file descriptors along Unix domain sockets
12 int sendfd(int socket, int fd)
15 int recvfd(int socket)
20 can be used to pass an open file descriptor over
21 a Unix domain socket from one process to another.
29 can be a file descriptor obtained from
33 sends the file descriptor
35 along the socket to a process calling
39 It is assumed that the two sides have coordinated
40 and agreed to transfer a file descriptor already, so
45 instead of an ordinary
48 The file descriptor number may change on its way
49 between processes, but the kernel structure it represents
52 .B \*9/src/lib9/sendfd.c