simplify mkstemp mkostemp