X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fposix-functions%2Fmkstemp.texi;h=ebe8c50c8bdf83ce06fd313088cd097cf8aebc0e;hb=e57376fc224a9a5d9a30938cb9b53231d4eeaafc;hp=3b686feae0136f0821bdf61f4b2d6b32c2ed8e3f;hpb=09ef7461110822a3970aa8eebcfaa740996a82f2;p=pspp diff --git a/doc/posix-functions/mkstemp.texi b/doc/posix-functions/mkstemp.texi index 3b686feae0..ebe8c50c8b 100644 --- a/doc/posix-functions/mkstemp.texi +++ b/doc/posix-functions/mkstemp.texi @@ -2,7 +2,7 @@ @section @code{mkstemp} @findex mkstemp -POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html} +POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html} Gnulib module: mkstemp @@ -12,15 +12,22 @@ Portability problems fixed by Gnulib: This function is missing on some platforms: mingw. @item +This function is declared in @code{} instead of @code{} +on some platforms: +MacOS X 10.3. +@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. +@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. @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 @code{clean-temp} can create temporary files that will not +be left behind after signals such as SIGINT.