]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/network.h
lib: add and use set_cloexec()
[mirror_frr.git] / lib / network.h
index 0fcb575d1cea7af6d2ef8d21dfa4f33e8d87bb01..a9126caf7f1a9cfb4474cdb8ab75198615058537 100644 (file)
@@ -33,6 +33,8 @@ extern int writen (int, const u_char *, int);
    -1 on error. */
 extern int set_nonblocking(int fd);
 
+extern int set_cloexec(int fd);
+
 /* Does the I/O error indicate that the operation should be retried later? */
 #define ERRNO_IO_RETRY(EN) \
        (((EN) == EAGAIN) || ((EN) == EWOULDBLOCK) || ((EN) == EINTR))