io_passfd man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

io_passfd(3)							  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  descrip‐
       tor appears not in this process but at the other end of the Unix Domain
       socket (which therefore must be a process on the same system).

       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  accord‐
       ingly).

SEE ALSO
       io_receivefd(3)

								  io_passfd(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net