tempname: resync from glibc