Next: mktime, Previous: mknodat, Up: Function Substitutes [Contents][Index]
mkstemp
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html
Gnulib module: mkstemp
Portability problems fixed by Gnulib:
<unistd.h>
instead of <stdlib.h>
on some platforms:
Mac OS X 10.3.
off_t
is a 32-bit type, mkstemp
may not work
correctly to create files larger than 2 GB. (Cf. AC_SYS_LARGEFILE
.)
mkstemp
can create a world or group
writable or readable file, if you haven’t set the process umask to
077. This is a security risk.
Portability problems not fixed by Gnulib:
The gnulib module clean-temp
can create temporary files that will not
be left behind after signals such as SIGINT.