doc: use ASCII in .texi files where UTF-8 isn't needed
[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, MSVC 9.
14 @item
15 This function is declared in @code{<unistd.h>} instead of @code{<stdlib.h>}
16 on some platforms:
17 Mac OS 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 platforms where @code{off_t} is a 32-bit type, @code{mkstemp} may not work
24 correctly to create files larger than 2 GB.  (Cf. @code{AC_SYS_LARGEFILE}.)
25 @item
26 On some older platforms, @code{mkstemp} can create a world or group
27 writable or readable file, if you haven't set the process umask to
28 077.  This is a security risk.
29 @end itemize
30
31 Portability problems not fixed by Gnulib:
32 @itemize
33 @end itemize
34
35 The gnulib module @code{clean-temp} can create temporary files that will not
36 be left behind after signals such as SIGINT.