Merge branch 'upstream' into stable
[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 This function is declared in @code{<unistd.h>} instead of @code{<stdlib.h>}
16 on some platforms:
17 MacOS X 10.3.
18 @item
19 On some platforms (HP-UX 10.20, SunOS 4.1.4, Solaris 2.5.1), mkstemp has a silly
20 limit that it can create no more than 26 files from a given template.  On
21 OSF/1 4.0f, it can create only 32 files per process.
22 @item
23 On some older platforms, @code{mkstemp} can create a world or group
24 writable or readable file, if you haven't set the process umask to
25 077.  This is a security risk.
26 @end itemize
27
28 Portability problems not fixed by Gnulib:
29 @itemize
30 @end itemize
31
32 The gnulib module @code{clean-temp} can create temporary files that will not
33 be left behind after signals such as SIGINT.