From owner-freebsd-hackers Wed Nov 8 17:54:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from guardian.sftw.com (guardian.sftw.com [209.157.37.25]) by hub.freebsd.org (Postfix) with ESMTP id 2BFB537B479 for ; Wed, 8 Nov 2000 17:54:47 -0800 (PST) Received: from yoda.sftw.com (yoda.sftw.com [209.157.37.211]) by guardian.sftw.com (8.11.0/8.11.0) with ESMTP id eA91shq22046 for ; Wed, 8 Nov 2000 17:54:44 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from sftw.com (localhost [127.0.0.1]) by yoda.sftw.com (8.11.0/8.11.0) with ESMTP id eA91shR53204 for ; Wed, 8 Nov 2000 17:54:43 -0800 (PST) (envelope-from nsayer@sftw.com) Message-ID: <3A0A03E3.BA0C7A9E@sftw.com> Date: Wed, 08 Nov 2000 17:54:43 -0800 From: Nick Sayer Reply-To: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: KDE2, konsole_grantpty and FreeBSD References: <200011082303.eA8N3c193540@medusa.kfu.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have cobbled together a solution with fstat() and devname(). Interestingly enough, elsewhere in konsole, a call to ttyname() with an FD on the master side appears to actually work, so I don't know what the hell is up with that. :-/ Nick Sayer wrote: > [...] > > The problem is that ttyname() fails on all /dev/pty?? devices. This is because > the first thing ttyname does is perform a tcgetattr() to see if it's really a > terminal or not. This fails. > [...] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message