Fill in termios_p data structure only if ioctl syscall doesn't fail (as glibc indeed does).
Fill in termios_p data structure only if ioctl syscall
doesn't fail (as glibc indeed does).

Signed-off-by: Carmelo Amoroso <532378793705a04edd56deb76ad8c0442834d55d@st.com>

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc