GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LIBOWFAT_IO_PASSFD (3)

NAME

io_passfd - pass a file descriptor over a Unix Domain socket

CONTENTS

Syntax
Description

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 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 accordingly).

SEE ALSO

io_receivefd(3)
Search for    or go to Top of page |  Section 3 |  Main Index


IO_PASSFD (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.