try_mkstemp
try_mkstemp(p, "", i);
try_mkstemp(p + pg - i - 1, "", i);
try_mkstemp(p, cwd, i);
try_mkstemp(p + pg - clen - i - 1, cwd, i);