From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 5 18:00: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 C29331065676 for ; Tue, 5 Aug 2008 18:00: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 AB6428FC08 for ; Tue, 5 Aug 2008 18:00: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 m75I0663088198 for ; Tue, 5 Aug 2008 18:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m75I068u088197; Tue, 5 Aug 2008 18:00:06 GMT (envelope-from gnats) Date: Tue, 5 Aug 2008 18:00:06 GMT Message-Id: <200808051800.m75I068u088197@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 18:00:09 -0000 The following reply was made to PR ports/126232; it has been noted by GNATS. From: Chagin Dmitry To: Yuri Cc: Chagin Dmitry , bug-followup@freebsd.org, dchagin@freebsd.org Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) Date: Tue, 5 Aug 2008 21:52:26 +0400 (MSD) On Tue, 5 Aug 2008, Yuri wrote: > Chagin Dmitry wrote: >> Actually it not absolutelly so, tcgetattr() it is a glibc function >> which uses ioctl TCGETS inside. >> > > Actually on FreeBSD tcgetattr() is typedefed to ioctl TCGETA. > > In short this PR asks to implement TCGETS in Linux emulator. > It is already implemented, see sys/compat/linux/linux_ioctl.c from line 670 tcgetattr fails if file descriptor is not a tty, may be problem here? >> >> I think that the author should give more information, at least explain >> on what specifies a file descriptor. > > Which author? > certainly, author ot the PR -- Have fun! chd