Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
633 B

.TH io_passfd 3
io_passfd \- pass a file descriptor over a Unix Domain socket
.B #include <io.h>
int \fBio_passfd\fP(int64 sock,int64 fd);
io_passfd transfers the file descriptor \fIfd\fR over the Unix Domain
socket \fIsock\fR. This works much like dup(2), only that the copy of
the descriptor appears not in this process but at the other end of the
Unix Domain socket (which therefore must be a process on the same
The peer can then use io_receivefd(3) to receive the file descriptor.
Note that the passed descriptor stays open in the sending process.