When attempting to migrate from newlib to clib2, I hit multiple issues. The d_type field in dirent is already documented in Issue #9. The next problem I had was missing stat64. The compiler complains about incomplete type struct stat64.
It would be great if clib2 supported everything that newlib does.