diff options
author | Andy Wingo <wingo@pobox.com> | 2021-03-10 20:35:58 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2021-03-10 20:40:10 +0100 |
commit | 85433fc2b122dc78342c3c83941949d1d9318399 (patch) | |
tree | 2fff776765468df861dc8a8c5e80f551b4905a5f /NEWS | |
parent | 89a299102ff3597a48febe1fb6d3097fddcda40e (diff) | |
download | guile-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-- | NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |