From fdb8f90b22f8d4993b5937d55f5cbffc45ae940c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 31 May 2021 07:49:38 -0700 Subject: New: mkdtemp and mkstemp functions. * configure: check for mkstemp and mkdtemp. * stream.c (stdio_set_prop): Implement setting the :name property. We need this in mkstemp_wrap in order to punch in the temporary name, so that the application can retrieve it. (mkdtemp_wrap, mkstemp_wrap): New functions. (stream_init): Register mkdtemp and mkstemp intrinsics. * stream.h (mkdtemp_wrap, mkstemp_wrap): Declared. * txr.1: Documented. * share/txr/stdlib/doc-syms.tl: Updated. --- share/txr/stdlib/doc-syms.tl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share') diff --git a/share/txr/stdlib/doc-syms.tl b/share/txr/stdlib/doc-syms.tl index 223eb987..177ac266 100644 --- a/share/txr/stdlib/doc-syms.tl +++ b/share/txr/stdlib/doc-syms.tl @@ -1222,8 +1222,10 @@ ("minusp" "D-0050") ("mismatch" "N-03164F4F") ("mkdir" "N-00C543B8") + ("mkdtemp" "N-026E4871") ("mkfifo" "N-0091FD43") ("mknod" "N-00F93A39") + ("mkstemp" "N-026E0471") ("mkstring" "N-033DD796") ("mlet" "N-008216E0") ("mmakunbound" "N-02964FC0") -- cgit v1.2.3