Marcus Meissner meissner@suse.de writes:
Check for mkstemp, added a port implementation if it is not present. Use mkstemp() in various places needing tmp files.
I'm not sure this is a good idea, mkstemp() is apparently buggy in old libc versions. tmpnam() is actually pretty reasonable assuming it is used correctly, which of course is not the case everywhere but that could be fixed.