| sendfd, recvfd \- pass file descriptors along Unix domain sockets |
| int sendfd(int socket, int fd) |
| can be used to pass an open file descriptor over |
| a Unix domain socket from one process to another. |
| can be a file descriptor obtained from |
| sends the file descriptor |
| along the socket to a process calling |
| It is assumed that the two sides have coordinated |
| and agreed to transfer a file descriptor already, so |
| The file descriptor number may change on its way |
| between processes, but the kernel structure it represents |
| .B /usr/local/plan9/src/lib9/sendfd.c |