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