system/fd_util: export fd_set_cloexec()
This commit is contained in:
parent
f660d30138
commit
f68d2f7c7f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue