in printf, use ferror macro rather than directly inspecting flags bit
[musl] / dist /
drwxr-xr-x   ..
-rw-r--r-- 1253 config.mak