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>
6 lines
107 B
C
6 lines
107 B
C
#ifndef UTIL_LINUX_FILEUTILS
|
|
#define UTIL_LINUX_FILEUTILS
|
|
|
|
extern FILE * xmkstemp(char **tmpname);
|
|
|
|
#endif
|