misc/126232: Linux ioctl TCGETS (0x5401) always fails
yuri at tsoft.com
Mon Aug 4 07:20:04 UTC 2008
>Synopsis: Linux ioctl TCGETS (0x5401) always fails
>Arrival-Date: Mon Aug 04 07:20:03 UTC 2008
I've ran ktrace(1) on some Linux application and noticed that it has a lot calls like this:
97754 app CALL linux_ioctl(0xf,0x5401 ,0xbfbfbc78)
97754 app RET linux_ioctl -1 errno 25 Inappropriate ioctl for device
0x5401 stands for TCGETS on Linux. As I understand this ioctl is obsolete and is replaced by tcgetattr() (?).
It's better to not return errno but to do what tcgetattr() does. This will take out one more potential point of failure for some Linux apps.
More information about the freebsd-bugs