2 @section @code{mkstemp}
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html}
9 Portability problems fixed by Gnulib:
12 This function is missing on some platforms:
15 This function is declared in @code{<unistd.h>} instead of @code{<stdlib.h>}
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.
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.
28 Portability problems not fixed by Gnulib:
31 On platforms where @code{off_t} is a 32-bit type, @code{mkstemp} may not work
32 correctly to create files larger than 2 GB. The fix is to use the
33 @code{AC_SYS_LARGEFILE} macro.
36 The gnulib module @code{clean-temp} can create temporary files that will not
37 be left behind after signals such as SIGINT.