Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVOXc-00086M-LO for qemu-devel@nongnu.org; Tue, 19 Aug 2008 06:34:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVOXb-00085L-6k for qemu-devel@nongnu.org; Tue, 19 Aug 2008 06:34:19 -0400 Received: from [199.232.76.173] (port=33642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVOXa-00084m-7K for qemu-devel@nongnu.org; Tue, 19 Aug 2008 06:34:18 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:44670) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVOXZ-0002eD-Pk for qemu-devel@nongnu.org; Tue, 19 Aug 2008 06:34:18 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1946704fgb.8 for ; Tue, 19 Aug 2008 03:34:16 -0700 (PDT) Date: Tue, 19 Aug 2008 12:33:37 +0200 From: Bernhard Reutner-Fischer Subject: Re: [Qemu-devel] pty/tty functions for BSD too Message-ID: <20080819103337.GB2484@mx.loc> References: <20080818105912.GF4686@implementation.uk.xensource.com> <48A981F1.6070606@codemonkey.ws> <20080818142333.GQ4686@implementation.uk.xensource.com> <20080818162618.GA20089@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Aug 18, 2008 at 09:08:50PM +0300, Blue Swirl wrote: >Glibc uses an internal PATH_MAX buffer. If the name does not fit, the >buffer will be doubled in size: >http://sourceware.org/cgi-bin/cvsweb.cgi/libc/login/openpty.c?rev=1.8&content-type=text/x-cvsweb-markup&cvsroot=glibc > >But in practice the pty will be allocated using getpt(), which uses They, too, should switch to posix_openpt(), fwiw.