X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fmkstemp.texi;h=49f6849441aee1c3c7d44b749b33c85e6a7fbe96;hb=49c136f53f6b22e91f2bb4c636e81e5930613d04;hp=b31bd07bc9a9ff0d7831f677be9e3b3fc59768c1;hpb=bac964725a412c590498aba68f6b9a8e723ae474;p=gnulib.git diff --git a/doc/posix-functions/mkstemp.texi b/doc/posix-functions/mkstemp.texi index b31bd07bc..49f684944 100644 --- a/doc/posix-functions/mkstemp.texi +++ b/doc/posix-functions/mkstemp.texi @@ -10,7 +10,7 @@ Portability problems fixed by Gnulib: @itemize @item This function is missing on some platforms: -mingw. +mingw, MSVC 9. @item This function is declared in @code{} instead of @code{} on some platforms: @@ -20,6 +20,9 @@ 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. @item +On platforms where @code{off_t} is a 32-bit type, @code{mkstemp} may not work +correctly to create files larger than 2 GB. (Cf. @code{AC_SYS_LARGEFILE}.) +@item On some older platforms, @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. @@ -27,10 +30,6 @@ writable or readable file, if you haven't set the process umask to Portability problems not fixed by Gnulib: @itemize -@item -On platforms where @code{off_t} is a 32-bit type, @code{mkstemp} may not work -correctly to create files larger than 2 GB. The fix is to use the -@code{AC_SYS_LARGEFILE} macro. @end itemize The gnulib module @code{clean-temp} can create temporary files that will not