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
SENDFD(3) FreeBSD Library Functions Manual SENDFD(3)

sendfd, recvfd - pass file descriptors along Unix domain sockets

#include <u.h>

#include <libc.h>

int sendfd(int socket, int fd)

int recvfd(int socket)

Recvfd and sendfd can be used to pass an open file descriptor over a Unix domain socket from one process to another. Since is implemented with instead of socket can be a file descriptor obtained from

Sendfd sends the file descriptor fd along the socket to a process calling recvfd on the other end.

It is assumed that the two sides have coordinated and agreed to transfer a file descriptor already, so that the sendfd is met with a recvfd instead of an ordinary read.

The file descriptor number may change on its way between processes, but the kernel structure it represents will not.

/src/lib9/sendfd.c

sendmsg in

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

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