mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-02 07:30:55 -08:00
MKSTEMP now accepts and returns pathnames
This commit is contained in:
parent
b35828886a
commit
3b411fbfaf
1 changed files with 2 additions and 2 deletions
|
|
@ -760,7 +760,7 @@ si_mkstemp(cl_object template)
|
|||
cl_index l;
|
||||
int fd;
|
||||
|
||||
assert_type_string(template);
|
||||
template = si_coerce_to_filename(template);
|
||||
l = template->string.fillp;
|
||||
output = cl_alloc_simple_string(l + 6);
|
||||
memcpy(output->string.self, template->string.self, l);
|
||||
|
|
@ -774,5 +774,5 @@ si_mkstemp(cl_object template)
|
|||
if (fd < 0)
|
||||
@(return Cnil)
|
||||
close(fd);
|
||||
@(return output)
|
||||
@(return cl_truename(output))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue