mkstemp: mention clean-temp module
[gnulib.git] / doc / posix-functions / mkstemp.texi
1 @node mkstemp
2 @section @code{mkstemp}
3 @findex mkstemp
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html}
6
7 Gnulib module: mkstemp
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 mingw.
14 @item
15 On some platforms (HP-UX 10.20, SunOS 4.1.4, Solaris 2.5.1), mkstemp has a silly
16 limit that it can create no more than 26 files from a given template.  On
17 OSF/1 4.0f, it can create only 32 files per process.
18 @end itemize
19
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 On platforms other than glibc 2.0.7 or newer, @code{mkstemp} can create a
24 world or group writable or readable file, if you haven't set the process
25 umask to 077.  This is a security risk.
26 @end itemize
27
28 The gnulib module clean-temp can create temporary files that are less
29 likely to be left behind on signals such as SIGINT.