misc/126232: Linux ioctl TCGETS (0x5401) always fails

Yuri yuri at tsoft.com
Mon Aug 4 07:20:04 UTC 2008


>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:


More information about the freebsd-bugs mailing list