Skip to content

Commit

Permalink
Base: Update recvfd() man page after addition of options argument
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed May 4, 2021
1 parent dbbc609 commit 93f03c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Base/usr/share/man/man2/recvfd.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ recvfd - receive a file descriptor from a local socket peer
```**c++
#include <sys/socket.h>
int recvfd(int sockfd);
int recvfd(int sockfd, int options);
```

## Description
Expand All @@ -16,6 +16,10 @@ Receive an open file descriptor from a local socket peer connected via `sockfd`.

File descriptors are sent out-of-band and do not affect the regular data streams.

The *options* argument accepts a bitmask of the following flags:

* `O_CLOEXEC`: The opened fd shall be closed on [`exec`(2)](../man2/exec.md).

## Return value

If a file descriptor is successfully received, it is returned as a non-negative integer. Otherwise, -1 is returned and `errno` is set to indicate the error.
Expand Down

0 comments on commit 93f03c7

Please sign in to comment.