Date: Mon, 4 Aug 2008 07:19:14 GMT From: Yuri <yuri@tsoft.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/126232: Linux ioctl TCGETS (0x5401) always fails Message-ID: <200808040719.m747JEuO093828@www.freebsd.org> Resent-Message-ID: <200808040720.m747K4IC037397@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126232 >Category: misc >Synopsis: Linux ioctl TCGETS (0x5401) always fails >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 04 07:20:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 70-STABLE >Organization: n/a >Environment: >Description: 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. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808040719.m747JEuO093828>