Unix Domain Sockets: How to create a secure temp file name that doesn't exist as a file yet?

I would go with that if it were my problem. But I do know that many users of SWI-Prolog like to use Macs and that I have no info on, I am not a Mac person.

If someone comes along who needs the non-Linux solution odds are they will have some technical experience in that area and can help.

One of super nice facts about SWI-Prolog is that Jan W. is awesome at typically getting such changes into the GitHub repository within a day or two once the problem can be reproduced or the technical documentation can be supplied, e.g. my Docker API example, Jan W. had it working correctly and in the GitHub repository before I could finish comprehending the technical specs.