[PATCH 1/6] tools/nolibc: add support for waitid()