Skip to content
Tcl Source Code View Ticket
Login

View Ticket

mkdtemp() unavailable on Solaris 2.8

Open7cd721e9ead7eb5c76ffcd0bd84bed9c395c6e16Created 6 years agoUpdated 6 years ago
Descriptionplain2020-06-19 05:50:10
TclpCreateTemporaryDirectory() calls mkdtemp() which is unavailable on Solaris 2.8.  For platforms lacking this function, can we fall back to a (possibly racy) alternative rather than fail to link?
andy (claiming to be Andy Goth)plain2020-06-19 06:19:56
I see the Windows version of TclpCreateTemporaryDirectory() already does what's needed: pick a random name, try to create it, loop until success.  Maybe this logic can be factored out for use by the Unix version when mkdtemp() is missing.
Log in (anonymous is fine) to add a comment.