summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2021-03-10 20:35:58 +0100
committerAndy Wingo <wingo@pobox.com>2021-03-10 20:40:10 +0100
commit85433fc2b122dc78342c3c83941949d1d9318399 (patch)
tree2fff776765468df861dc8a8c5e80f551b4905a5f /NEWS
parent89a299102ff3597a48febe1fb6d3097fddcda40e (diff)
downloadguile-85433fc2b122dc78342c3c83941949d1d9318399.tar.gz
Add mkstemp; undocument mkstemp!
* doc/ref/posix.texi (File System): Update to document mkstemp only. * libguile/filesys.c: Make a mkstemp that doesn't modify the input template. Instead the caller has to get the file name from port-filename. (scm_mkstemp): Use the new mkstemp to implement mkstemp!. Can't deprecate yet though as the replacement hasn't been there for long enough. * libguile/posix.c (scm_tempnam): Update to mention mkstemp instead. * module/system/base/compile.scm (call-with-output-file/atomic): Use mkstemp. * test-suite/tests/posix.test: * test-suite/tests/r6rs-files.test: Use mkstemp. * NEWS: Update.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3a8be50ce..b24e3d999 100644
--- a/NEWS
+++ b/NEWS
@@ -156,7 +156,9 @@ See "Environment Variables" in the manual.
See "File System" in the manual. There is still `mkstemp!' but we
recommend that new code uses `mkstemp', which does not mutate the
-contents of the "template" argument string.
+contents of the "template" argument string. Instead for `mkstemp' you
+get the name of the newly-created file by calling `port-filename' on the
+returned port.
** `(system foreign-library)' module