Commit f68d2f7c authored by Max Kellermann's avatar Max Kellermann

system/fd_util: export fd_set_cloexec()

parent f660d301
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment