view doc/posix-functions/mkstemp.texi @ 14624:e00c934ee25d

mkstemp: mention clean-temp module * lib/mkstemp.c: Add comment. * doc/posix-functions/mkstemp.texi (mkstemp): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
author Reuben Thomas <rrt@sc3d.org>
date Wed, 27 Apr 2011 14:30:31 +0100
parents bb0ceefd22dc
children 780006cfcb42
line wrap: on
line source

@node mkstemp
@section @code{mkstemp}
@findex mkstemp

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html}

Gnulib module: mkstemp

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw.
@item
On some platforms (HP-UX 10.20, SunOS 4.1.4, Solaris 2.5.1), mkstemp has a silly
limit that it can create no more than 26 files from a given template.  On
OSF/1 4.0f, it can create only 32 files per process.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
On platforms other than glibc 2.0.7 or newer, @code{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.
@end itemize

The gnulib module clean-temp can create temporary files that are less
likely to be left behind on signals such as SIGINT.