diff options
author | Martin Schwenke <martin@meltin.net> | 2014-09-22 18:14:53 +1000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-10-04 00:11:20 +0200 |
commit | 3d6675fd1ee32ba0795f7f09f42a1b005ba5e621 (patch) | |
tree | 6327cfbc96214079e93ec2f5b5c14f1eee7404d1 /lib/util/samba_util.h | |
parent | 5496270d0f615aa39de0a083ec74fb40a988f64b (diff) | |
download | samba-3d6675fd1ee32ba0795f7f09f42a1b005ba5e621.tar.gz samba-3d6675fd1ee32ba0795f7f09f42a1b005ba5e621.tar.xz samba-3d6675fd1ee32ba0795f7f09f42a1b005ba5e621.zip |
lib/util: Clean up includes for blocking.c
Add blocking.h. Allows standalone compile without external
includes.h.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r-- | lib/util/samba_util.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index e9de6fae22..35eef421af 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -649,18 +649,7 @@ _PUBLIC_ bool directory_create_or_exist_strict(const char *dname, uid_t uid, mode_t dir_perms); -/** - Set a fd into blocking/nonblocking mode. Uses POSIX O_NONBLOCK if available, - else - if SYSV use O_NDELAY - if BSD use FNDELAY -**/ -_PUBLIC_ int set_blocking(int fd, bool set); - -/** - set close on exec on a file descriptor if available - **/ -_PUBLIC_ bool smb_set_close_on_exec(int fd); +#include "blocking.h" /** Sleep for a specified number of milliseconds. |