diff options
author | Max Kellermann <max@duempel.org> | 2014-03-15 14:54:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-15 20:03:31 +0100 |
commit | f68d2f7c7f17b3da8d946cec82c28d2767d28478 (patch) | |
tree | 062481576e7334484001992f4ef7877291785aa4 /src | |
parent | f660d30138e07afe81e6cbcedb1aab2a4fc36b41 (diff) |
system/fd_util: export fd_set_cloexec()
Diffstat (limited to 'src')
-rw-r--r-- | src/system/fd_util.c | 2 | ||||
-rw-r--r-- | src/system/fd_util.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/system/fd_util.c b/src/system/fd_util.c index 97ec5ba5e..b53ecda00 100644 --- a/src/system/fd_util.c +++ b/src/system/fd_util.c @@ -69,7 +69,7 @@ fd_mask_flags(int fd, int and_mask, int xor_mask) #endif /* !WIN32 */ -static int +int fd_set_cloexec(int fd, bool enable) { #ifndef WIN32 diff --git a/src/system/fd_util.h b/src/system/fd_util.h index 3c72890e1..f4a940e91 100644 --- a/src/system/fd_util.h +++ b/src/system/fd_util.h @@ -51,6 +51,9 @@ struct sockaddr; extern "C" { #endif +int +fd_set_cloexec(int fd, bool enable); + /** * Wrapper for dup(), which sets the CLOEXEC flag on the new * descriptor. |