From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 3 07:32:14 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C4E41065671; Sun, 3 Aug 2008 07:32:14 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 0080D8FC12; Sun, 3 Aug 2008 07:32:13 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 565F068B4D1; Sun, 3 Aug 2008 09:30:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YbP4eO3q1H6X; Sun, 3 Aug 2008 09:30:44 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B2D7668B4C2; Sun, 3 Aug 2008 09:30:44 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m737UiuG004644; Sun, 3 Aug 2008 09:30:44 +0200 (CEST) (envelope-from rdivacky) Date: Sun, 3 Aug 2008 09:30:44 +0200 From: Roman Divacky To: Chagin Dmitry Message-ID: <20080803073044.GA4624@freebsd.org> References: <20080802222109.GA78151@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: [PATCH]Re: kern/122318 (CMake core dumping, chroot exiting) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 07:32:14 -0000 On Sun, Aug 03, 2008 at 02:54:53AM +0400, Chagin Dmitry wrote: > On Sun, 3 Aug 2008, Roman Divacky wrote: > > >On Sun, Aug 03, 2008 at 12:53:58AM +0400, Chagin Dmitry wrote: > >>On Wed, 23 Jul 2008, Sean C. Farley wrote: > >> > >>>I am seeing if anyone has any insight on this PR (kern/122318[1]). It > >>>would be nice to once again build using cmake within a Linux chroot. :) > >>> > >>>Basically, the bug is that not only that cmake is dumping core; it is > >>>also forcing the user out of the chroot environment. Here is the > >>>command used to start the chroot: > >>>/compat/linux/usr/sbin/chroot su - > >>> > >>>Thank you. > >>> > >>>Sean > >>>1. http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122318 > >>> > >> > >>here patches for -current and releng_7: > >>http://78.107.232.239/rt_signals-current.patch > >>http://78.107.232.239/rt_signals-releng_7.patch > >> > >>what patch do: > >>- rt sigtramp code works (this solves PR) > >>- align stack pointers > >>- remove kern_sigaltstack() at the end of rt_sigreturn(), it's a bogus. > >> Here there is some information on it: > >> http://www.ussg.iu.edu/hypermail/linux/kernel/0405.2/1283.html > > > >I quickly skimmed over it and it looks correct, but please avoid > >making gratuitous changes like moving stuff before comment after > >the comment etc. > > > > I have simply transferred a line on place where it should be :) no problem with the change itself but including it in the patch makes the patch bigger and harder to review > >I will do a little more thorough review but so far it looks good > > > > and please, test it on i386. test with the cmake? From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 3 07:38:56 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF3131065677 for ; Sun, 3 Aug 2008 07:38:56 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 3295A8FC15 for ; Sun, 3 Aug 2008 07:38:55 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2137142fgb.35 for ; Sun, 03 Aug 2008 00:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject :in-reply-to:message-id:references:user-agent:mime-version :content-type:from; bh=p+tkFfimj4MUtW/g5iLLZLvG0s3DnS/WugIj7PgyHZs=; b=SqTyBdXRMPtql5Kv03SUa2j1qxfDlxraDGj/NKYIoLYjlq59aaa/5XsOkRPlRaATgO Xp/IAvIWcxWH63xG0OKEtArBRrg/+kTM3jLvsx3H+0RFerWsH2c0nqEatqtxEXXm2iFQ MnNN/R96PVSRq7R1qJHU0qQGCs0e272v1atJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:user-agent :mime-version:content-type:from; b=VUY9LMyyJWJx268f+D7NoL2gUptRrn9b1Oj4Wg6AkDa0/f1V0jh+WTqMuE9YnZAoW5 OH5mcHmDmWMtSCuRsuWkxe3Jc6GfLV29nHxH6VhJ6hz354L6l1WmovZAB0Ld/Q2I7L5i ekPD/g0Ee0zd2cmoM5AbnS0M2ikl3pSyL1SAU= Received: by 10.86.23.17 with SMTP id 17mr9183661fgw.32.1217749134754; Sun, 03 Aug 2008 00:38:54 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id d6sm2787545fga.2.2008.08.03.00.38.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 00:38:54 -0700 (PDT) Date: Sun, 3 Aug 2008 11:38:49 +0400 (MSD) To: Roman Divacky In-Reply-To: <20080803073044.GA4624@freebsd.org> Message-ID: References: <20080802222109.GA78151@freebsd.org> <20080803073044.GA4624@freebsd.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Chagin Dmitry Cc: freebsd-emulation@freebsd.org, Chagin Dmitry Subject: Re: [PATCH]Re: kern/122318 (CMake core dumping, chroot exiting) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 07:38:56 -0000 On Sun, 3 Aug 2008, Roman Divacky wrote: > On Sun, Aug 03, 2008 at 02:54:53AM +0400, Chagin Dmitry wrote: >> On Sun, 3 Aug 2008, Roman Divacky wrote: >> >>> On Sun, Aug 03, 2008 at 12:53:58AM +0400, Chagin Dmitry wrote: >>>> On Wed, 23 Jul 2008, Sean C. Farley wrote: >>>> >>>>> I am seeing if anyone has any insight on this PR (kern/122318[1]). It >>>>> would be nice to once again build using cmake within a Linux chroot. :) >>>>> >>>>> Basically, the bug is that not only that cmake is dumping core; it is >>>>> also forcing the user out of the chroot environment. Here is the >>>>> command used to start the chroot: >>>>> /compat/linux/usr/sbin/chroot su - >>>>> >>>>> Thank you. >>>>> >>>>> Sean >>>>> 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122318 >>>>> >>>> >>>> here patches for -current and releng_7: >>>> http://78.107.232.239/rt_signals-current.patch >>>> http://78.107.232.239/rt_signals-releng_7.patch >>>> >>>> what patch do: >>>> - rt sigtramp code works (this solves PR) >>>> - align stack pointers >>>> - remove kern_sigaltstack() at the end of rt_sigreturn(), it's a bogus. >>>> Here there is some information on it: >>>> http://www.ussg.iu.edu/hypermail/linux/kernel/0405.2/1283.html >>> >>> I quickly skimmed over it and it looks correct, but please avoid >>> making gratuitous changes like moving stuff before comment after >>> the comment etc. >>> >> >> I have simply transferred a line on place where it should be :) > > no problem with the change itself but including it in the patch > makes the patch bigger and harder to review ok > >>> I will do a little more thorough review but so far it looks good >>> >> >> and please, test it on i386. > > test with the cmake? > no, with special test http://78.107.232.239/tst_rtsig.c cmake differs only that that uses select() and I sigsuspend() for sleep. -- Have fun! chd From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 3 20:33:45 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B426106567B for ; Sun, 3 Aug 2008 20:33:45 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 960258FC0C for ; Sun, 3 Aug 2008 20:33:44 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2544029fkk.11 for ; Sun, 03 Aug 2008 13:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject :in-reply-to:message-id:references:user-agent:mime-version :content-type:from; bh=95o8w1DQBUoaQ8rXNgKr1aDvtCamhE1mBD7DrwceuMg=; b=eb5yE46rk9S2sY16fovSiMV4sKozDzaBAMknWzXsx6zKirWWCpK/+7BKcLE6WG1xkp rqcYgEkAl9jIFxEqOd/MSPzJ4aI9lW82Aq1dZ8P5AcH3MZxEcxrI/HhFHpk2AuI2oRev b3SmClj4SYsBB8LLcv0Gy2YW1Kfl46Qidr1D4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:user-agent :mime-version:content-type:from; b=fLUSF83Sve2OVKyFEyqskSDJRMXe8lfrOT9WQbohvCKbOFBFESu9gkANCMHnbX+kRA dkU+uhIQOV2sLoc+3HBjCp/MQegUnKkei/Fhx5dxkoRO6QN5DXZnuwrx4vFQR/Sic8/V 9y4kDRNh3YAiSyleiARwW1GVQ9IJkKU3uzSWA= Received: by 10.180.225.16 with SMTP id x16mr4813793bkg.91.1217795623209; Sun, 03 Aug 2008 13:33:43 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id f31sm3655888fkf.0.2008.08.03.13.33.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 13:33:42 -0700 (PDT) Date: Mon, 4 Aug 2008 00:33:18 +0400 (MSD) To: Roman Divacky In-Reply-To: <20080803073044.GA4624@freebsd.org> Message-ID: References: <20080802222109.GA78151@freebsd.org> <20080803073044.GA4624@freebsd.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Chagin Dmitry Cc: freebsd-emulation@freebsd.org, Chagin Dmitry Subject: Re: [PATCH]Re: kern/122318 (CMake core dumping, chroot exiting) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 20:33:45 -0000 On Sun, 3 Aug 2008, Roman Divacky wrote: >>> >> >> and please, test it on i386. > > test with the cmake? > I have updated the test http://78.107.232.239/tst_rtsig.c in the previous version a problem with strerror(), the test hangs even in fbsd. -- Have fun! chd From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 4 08:31:29 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 415EA1065672; Mon, 4 Aug 2008 08:31:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1820E8FC0C; Mon, 4 Aug 2008 08:31:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m748VSSC067362; Mon, 4 Aug 2008 08:31:28 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m748VSVo067358; Mon, 4 Aug 2008 08:31:28 GMT (envelope-from linimon) Date: Mon, 4 Aug 2008 08:31:28 GMT Message-Id: <200808040831.m748VSVo067358@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) always fails X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 08:31:29 -0000 Synopsis: Linux ioctl TCGETS (0x5401) always fails Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation Responsible-Changed-By: linimon Responsible-Changed-When: Mon Aug 4 08:31:04 UTC 2008 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=126232 From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 4 11:06:53 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D084B106566C for ; Mon, 4 Aug 2008 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C134A8FC14 for ; Mon, 4 Aug 2008 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m74B6rAZ082031 for ; Mon, 4 Aug 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m74B6rrJ082027 for freebsd-emulation@FreeBSD.org; Mon, 4 Aug 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Aug 2008 11:06:53 GMT Message-Id: <200808041106.m74B6rrJ082027@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 11:06:53 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/97326 emulation [linux] file descriptor leakage in linux emulation o kern/117010 emulation [linux] linux_getdents() get something like buffer ove 3 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] [request] easier wine/w23 support a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/122318 emulation [linux] [cmake]: Segmentation fault when running Linux o ports/123960 emulation Port fix: archivers/linux-par2cmdline - better handlin o ports/123964 emulation Mk fix: bsd.linux-rpm.mk - Handling of NOPORTDOCS o ports/126232 emulation Linux ioctl TCGETS (0x5401) always fails 13 problems total. 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 From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 5 17:20:03 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 371801065673 for ; Tue, 5 Aug 2008 17:20:03 +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 0E92F8FC0C for ; Tue, 5 Aug 2008 17:20:03 +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 m75HK2d0085154 for ; Tue, 5 Aug 2008 17:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m75HK2Z3085153; Tue, 5 Aug 2008 17:20:02 GMT (envelope-from gnats) Date: Tue, 5 Aug 2008 17:20:02 GMT Message-Id: <200808051720.m75HK2Z3085153@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Yuri 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: Yuri 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 17:20:03 -0000 The following reply was made to PR ports/126232; it has been noted by GNATS. From: Yuri To: Chagin Dmitry Cc: bug-followup@freebsd.org, dchagin@freebsd.org Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) Date: Tue, 05 Aug 2008 09:50:18 -0700 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. > > I think that the author should give more information, at least explain > on what specifies a file descriptor. Which author? From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 5 17:30:04 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 AD30C106566C for ; Tue, 5 Aug 2008 17:30:04 +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 78FC68FC15 for ; Tue, 5 Aug 2008 17:30:04 +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 m75HU47q085612 for ; Tue, 5 Aug 2008 17:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m75HU4Lm085609; Tue, 5 Aug 2008 17:30:04 GMT (envelope-from gnats) Date: Tue, 5 Aug 2008 17:30:04 GMT Message-Id: <200808051730.m75HU4Lm085609@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Yuri 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: Yuri 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 17:30:04 -0000 The following reply was made to PR ports/126232; it has been noted by GNATS. From: Yuri To: Cc: Chagin Dmitry , bug-followup@freebsd.org, dchagin@freebsd.org Subject: Re: ports/126232: Linux ioctl TCGETS (0x5401) Date: Tue, 05 Aug 2008 10:20:55 -0700 Here is the relevant piece of information I found on usenet: << TCGETA is the predecessor to *TCGETS*. It uses the termio structure, not the termios structure. The difference is that the flag members in termio are of type unsigned short, while in termios they're tcflag_t, which is unsigned long on a Sun. >> 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