improve error handling of ttyname_r and isatty
[musl] / arch / generic / bits / resource.h