Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp

2020-12-30 Thread Rob Browning
Mike Gran writes: > Since mkdtemp already returns a string of the new directory name, > it might be more scheme-like to not modify the input string, and instead > just return the new directory name. Perhaps, though I was just matching the existing semantics of guile mkstemp, i.e. figured maybe t

[PATCH] New procedure mkdtemp to create unique directory names

2020-12-30 Thread Developers list for Guile, the GNU extensibility library
* configure.ac (AC_CHECK_FUNCS): search mkdtemp * doc/ref/posix.texi: document mkdtemp * libguile/filesys.c (scm_mkdtemp) [HAVE_MKDTEMP]: new procedure * libguile/filesys.h: declaration of scm_mkdtemp * test-suite/tests/filesys.test: new tests 'mkdtemp: number arg', 'mkdtemp: directory name tem

Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp

2020-12-30 Thread Mike Gran
On Tue, Dec 29, 2020 at 07:50:05PM -0600, Rob Browning wrote: > * doc/ref/posix.texi: Document mkdtemp! and scm_mkdtemp. > * libguile/filesys.c: (mkdtemp!, scm_mkdtemp): New functions. > > Signed-off-by: Rob Browning Hi Rob, Since mkdtemp already returns a string of the new directory name, it m