From 6b79eb38ba46a7635a635623b91c2e3aa9326c7d Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 29 Feb 2012 15:58:51 +0100 Subject: 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 Signed-off-by: Sami Kerola --- include/fileutils.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/fileutils.h (limited to 'include/fileutils.h') 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 -- cgit v1.2.3-55-g7522