As the title suggests — can I be reasonably sure that mktemp will exist on any unix-y operating system I’m likely to encounter?
As the title suggests — can I be reasonably sure that mktemp will exist
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
POSIX does not seem to specify mktemp(1).
It looks like most modern systems have it, but the available functionality and the semantics of the options vary between implementations (so particular invocations may not be portable):
So if you want a portable solution you may need to stick to functionality and options that mean the same thing on all of your platforms of interest.