summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-04 21:02:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-04 21:02:22 +0200
commit93f03c73d9cdd38abc0a4d02a2e811f1ce92262e (patch)
treeacdd31a7647429546d95b627850fb6099d3fdc59
parentdbbc6096a900093156e75cbaf1accacea6c63dad (diff)
downloadserenity-93f03c73d9cdd38abc0a4d02a2e811f1ce92262e.zip
Base: Update recvfd() man page after addition of `options` argument
-rw-r--r--Base/usr/share/man/man2/recvfd.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/Base/usr/share/man/man2/recvfd.md b/Base/usr/share/man/man2/recvfd.md
index db67e23af6..e80ca9b1cf 100644
--- a/Base/usr/share/man/man2/recvfd.md
+++ b/Base/usr/share/man/man2/recvfd.md
@@ -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
@@ -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.