add tmpfile2 for tmpnam(dir,prefix), though linux no this func.