summaryrefslogtreecommitdiffstats
path: root/lib/util/samba_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r--lib/util/samba_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 9a76fa9f043..3b5169d7446 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -668,6 +668,11 @@ _PUBLIC_ bool directory_create_or_exist(const char *dname, uid_t uid,
_PUBLIC_ int set_blocking(int fd, bool set);
/**
+ set close on exec on a file descriptor if available
+ **/
+_PUBLIC_ bool set_close_on_exec(int fd);
+
+/**
Sleep for a specified number of milliseconds.
**/
_PUBLIC_ void smb_msleep(unsigned int t);