summaryrefslogtreecommitdiffstats
path: root/lib/util/blocking.h
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-09-22 18:14:53 +1000
committerJeremy Allison <jra@samba.org>2014-10-04 00:11:20 +0200
commit3d6675fd1ee32ba0795f7f09f42a1b005ba5e621 (patch)
tree6327cfbc96214079e93ec2f5b5c14f1eee7404d1 /lib/util/blocking.h
parent5496270d0f615aa39de0a083ec74fb40a988f64b (diff)
downloadsamba-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/blocking.h')
-rw-r--r--lib/util/blocking.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/util/blocking.h b/lib/util/blocking.h
new file mode 100644
index 0000000000..017e424060
--- /dev/null
+++ b/lib/util/blocking.h
@@ -0,0 +1,32 @@
+/*
+ Unix SMB/CIFS implementation.
+ Samba utility functions
+ Copyright (C) Andrew Tridgell 1992-1998
+ Copyright (C) Jeremy Allison 2001-2002
+ Copyright (C) Simo Sorce 2001
+ Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003.
+ Copyright (C) James J Myers 2003
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _SAMBA_BLOCKING_H_
+#define _SAMBA_BLOCKING_H_
+
+#include <stdbool.h>
+
+int set_blocking(int fd, bool set);
+bool smb_set_close_on_exec(int fd);
+
+#endif /* _SAMBA_BLOCKING_H_ */