Date: Wed, 08 Nov 2000 17:54:43 -0800 From: Nick Sayer <nsayer@sftw.com> To: freebsd-hackers@FreeBSD.ORG Subject: Re: KDE2, konsole_grantpty and FreeBSD Message-ID: <3A0A03E3.BA0C7A9E@sftw.com> References: <200011082303.eA8N3c193540@medusa.kfu.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A0A03E3.BA0C7A9E>