Add mkstemp replacement function.

--HG--
branch : HEAD
4 files changed