Hi,

I ran into a problem with uClibc's implementation of tcsetattr when
porting an application from Debian (glibc 2.13) to OpenWrt (uClibc
0.9.33.2) [1]. tcsetattr [2] tries to check whether all attributes have
been set successfully. That check failed in my case for a USB device and
I ended up ignoring the error reported by uClibc.

This topic has been discussed recently for Fedora [3], with Linus
Torvalds strongly opposing the approach take by its C library.

The implementation in uClibc has been the same for years [4]. So I'm not
necessarily suggesting to change it. But I'd like to bring this issue to
your attention.

Thanks,
Malte


[1] https://forum.openwrt.org/viewtopic.php?id=51312
[2] http://git.uclibc.org/uClibc/tree/libc/termios/tcsetattr.c
[3] http://libdivecomputer.org/pipermail/devel/2014-March/000260.html
[4]
http://git.uclibc.org/uClibc/commit/libc/termios/tcsetattr.c?id=6fce1235bea41b65a0b7a978c65b908c736365d4


_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to