From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 8 11:56:41 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FB2C1065674 for ; Wed, 8 Apr 2009 11:56:41 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 972A98FC27 for ; Wed, 8 Apr 2009 11:56:40 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-024-239.pools.arcor-ip.net [88.66.24.239]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1LrWCG3lYB-0001mr; Wed, 08 Apr 2009 13:44:05 +0200 Received: (qmail 41079 invoked from network); 8 Apr 2009 11:43:54 -0000 Received: from fbsd8.laiers.local (192.168.4.200) by router.laiers.local with SMTP; 8 Apr 2009 11:43:54 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org, ticso@cicely.de Date: Wed, 8 Apr 2009 12:43:53 +0100 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.1; i386; ; ) References: <20090402061003.GR13393@hoeg.nl> <20090408112538.GA68699@cicely7.cicely.de> In-Reply-To: <20090408112538.GA68699@cicely7.cicely.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904081343.53600.max@love2party.net> X-Provags-ID: V01U2FsdGVkX19NrY7o/0h2v3bqRME2EsyP4XR9mfY0jOu9aah RLHhhm0Om5IxwliqV102UIbVZ2mLlLe6fgtE88y2aazBC5uyQ/ umV19TGa/i9RVY/IALh9Q== Cc: Ed Schouten Subject: Re: How to increase the max pty's on Freebsd 7.0? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 11:56:41 -0000 On Wednesday 08 April 2009 13:25:39 Bernd Walter wrote: > On Thu, Apr 02, 2009 at 08:10:03AM +0200, Ed Schouten wrote: > > * Paul Schenkeveld wrote: > > > Or change 'pts' to, for example, 'pt' so without changing utmp and > > > related stuff we'll have space for a four digit pty number. > > > > I've noticed lots of apps already misbehave because of the pty(4) -> > > pts(4) migration. I guess using a new naming scheme would totally break > > stuff. There are lots of apps that do things like: > > > > if (strncmp(tty, "tty", 3) != 0 && strncmp(tty, "pts/", 4) != 0) > > printf("Not a valid pseudo-terminal!\n"); > > > > But those are just workarounds. Our utmp format is broken anyway. It's > > not just UT_LINESIZE that's too small. I think we received many > > complaints from people who want to increase UT_HOSTSIZE as well. > > Well, UT_HOSTSIZE can't hold a full sized IPv6 address. RFC 1924 (still needs four more, but avoids ridiculously large UT_HOSTSIZE ;) -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News