summaryrefslogtreecommitdiffstats
path: root/include/fileutils.h
diff options
context:
space:
mode:
authorSami Kerola2012-02-29 15:58:51 +0100
committerSami Kerola2012-03-18 14:28:04 +0100
commit6b79eb38ba46a7635a635623b91c2e3aa9326c7d (patch)
treeb0e41bc4dd28196b6008329a5be83d7a976f1118 /include/fileutils.h
parentchsh: use pathnames.h for paths (diff)
downloadkernel-qcow2-util-linux-6b79eb38ba46a7635a635623b91c2e3aa9326c7d.tar.gz
kernel-qcow2-util-linux-6b79eb38ba46a7635a635623b91c2e3aa9326c7d.tar.xz
kernel-qcow2-util-linux-6b79eb38ba46a7635a635623b91c2e3aa9326c7d.zip
lib: add fileutils function collection
The fileutils contains xmkstemp function will create temporary file safe and reusable manner. Reference: http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO.html#TEMPORARY-FILES CC: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/fileutils.h')
-rw-r--r--include/fileutils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fileutils.h b/include/fileutils.h
new file mode 100644
index 000000000..27b566190
--- /dev/null
+++ b/include/fileutils.h
@@ -0,0 +1,6 @@
+#ifndef UTIL_LINUX_FILEUTILS
+#define UTIL_LINUX_FILEUTILS
+
+extern FILE * xmkstemp(char **tmpname);
+
+#endif