diff options
author | Sami Kerola | 2012-02-29 15:58:51 +0100 |
---|---|---|
committer | Sami Kerola | 2012-03-18 14:28:04 +0100 |
commit | 6b79eb38ba46a7635a635623b91c2e3aa9326c7d (patch) | |
tree | b0e41bc4dd28196b6008329a5be83d7a976f1118 /include/fileutils.h | |
parent | chsh: use pathnames.h for paths (diff) | |
download | kernel-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.h | 6 |
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 |