system/fd_util: export fd_set_cloexec()

This commit is contained in:
Max Kellermann 2014-03-15 14:54:02 +01:00
parent f660d30138
commit f68d2f7c7f
2 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@ fd_mask_flags(int fd, int and_mask, int xor_mask)
#endif /* !WIN32 */ #endif /* !WIN32 */
static int int
fd_set_cloexec(int fd, bool enable) fd_set_cloexec(int fd, bool enable)
{ {
#ifndef WIN32 #ifndef WIN32

View File

@ -51,6 +51,9 @@ struct sockaddr;
extern "C" { extern "C" {
#endif #endif
int
fd_set_cloexec(int fd, bool enable);
/** /**
* Wrapper for dup(), which sets the CLOEXEC flag on the new * Wrapper for dup(), which sets the CLOEXEC flag on the new
* descriptor. * descriptor.