As the title suggests — can I be reasonably sure that mktemp will exist on any unix-y operating system I'm likely to encounter?
mktemp
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.
1.4m articles
1.4m replys
5 comments
57.0k users