improve error handling of ttyname_r and isatty
[musl] / arch / generic /
drwxr-xr-x   ..
drwxr-xr-x - bits