From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 5 16:30:09 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51A1E1065672 for ; Tue, 5 Aug 2008 16:30:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 40E428FC18 for ; Tue, 5 Aug 2008 16:30:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m75GU9Q1080028 for ; Tue, 5 Aug 2008 16:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m75GU9BL080025; Tue, 5 Aug 2008 16:30:09 GMT (envelope-from gnats) Date: Tue, 5 Aug 2008 16:30:09 GMT Message-Id: <200808051630.m75GU9BL080025@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Chagin Dmitry Cc: Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chagin Dmitry List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 16:30:09 -0000 The following reply was made to PR ports/126232; it has been noted by GNATS. From: Chagin Dmitry To: bug-followup@freebsd.org, yuri@tsoft.com Cc: dchagin@freebsd.org Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) Date: Tue, 5 Aug 2008 20:27:44 +0400 (MSD) > > 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() (?). Actually it not absolutelly so, tcgetattr() it is a glibc function which uses ioctl TCGETS inside. > 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. I think that the author should give more information, at least explain on what specifies a file descriptor. thnx! -- Have fun! chd