mkstemp: replace if system version uses wrong permissions
[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 @item
19 On some older platforms, @code{mkstemp} can create a world or group
20 writable or readable file, if you haven't set the process umask to
21 077.  This is a security risk.
22 @end itemize
23
24 Portability problems not fixed by Gnulib:
25 @itemize
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.