copy to bring these files into libc from libcompat. I will enable them and kill off the libcompat versions on the main branch soon. PR: step one toward closing misc/6763