debian man page for io_passfd

Query: io_passfd

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

io_passfd(3)						     Library Functions Manual						      io_passfd(3)

NAME
io_passfd - pass a file descriptor over a Unix Domain socket
SYNTAX
#include <io.h> int io_passfd(int64 sock,int64 fd);
DESCRIPTION
io_passfd transfers the file descriptor fd over the Unix Domain socket sock. 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 sys- tem). The peer can then use io_receivefd(3) to receive the file descriptor. Note that the passed descriptor stays open in the sending process.
RETURN VALUE
io_passfd returns 0 on success, -1 on error (setting errno accordingly).
SEE ALSO
io_receivefd(3) io_passfd(3)
Related Man Pages
sctp_peeloff(3) - debian
sctp_peeloff(3) - centos
getpeername(2) - netbsd
sockatmark(3) - osf1
sctp_peeloff(3socket) - sunos
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Installing Dash Shell on OS X Lion
Detecting unused variables...
One instance of comparing grep and awk
How to copy a column of multiple files and paste into new excel file (next to column)?