lib9: add mode parameter to opentemp
9 files changed