From 24ec486cf7f605b61a822e3c538f5882cda44ff9 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Fri, 7 Jan 2005 23:29:33 +0000 Subject: [PATCH] (File System): In mkstemp!, note 0600 creation mode. --- doc/ref/posix.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index e61a7eb3b..01d9dc852 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -872,9 +872,13 @@ Care should be taken if opening the file, e.g., use the @deffnx {C Function} scm_mkstemp (tmpl) Create a new unique file in the file system and returns a new buffered port open for reading and writing to the file. + @var{tmpl} is a string specifying where the file should be created: it must end with @samp{XXXXXX} and will be changed in place to return the name of the temporary file. + +The file is created with mode @code{0600}, which means read and write +for the owner only. @code{chmod} can be used to change this. @end deffn @deffn {Scheme Procedure} dirname filename