avoid setting errno when checking for tty
[musl] / crt / crti.c