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