You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
566 B
Groff
19 lines
566 B
Groff
21 years ago
|
.TH io_receivefd 3
|
||
|
.SH NAME
|
||
|
io_receivefd \- receive a file descriptor over a Unix Domain socket
|
||
|
.SH SYNTAX
|
||
|
.B #include <io.h>
|
||
|
|
||
|
int64 \fBio_receivefd\fP(int64 sock);
|
||
|
.SH DESCRIPTION
|
||
|
io_receivefd receives a file descriptor from the Unix Domain socket
|
||
|
\fIsock\fR. You can send a descriptor using io_passfd(3).
|
||
|
|
||
|
io_receivefd returns -1 on error or the file descriptor.
|
||
|
|
||
|
The underlying Unix API can send more than one descriptor at the time.
|
||
|
This function expects only one descriptor and will return the first
|
||
|
one if more than one were sent.
|
||
|
.SH "SEE ALSO"
|
||
|
io_passfd(3)
|