From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 8 12:09:01 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 E4297106564A for ; Wed, 8 Apr 2009 12:09:01 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 517E28FC17 for ; Wed, 8 Apr 2009 12:09:00 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id n38C8iXX005938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Apr 2009 14:08:44 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id n38C8gYe082596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Apr 2009 14:08:42 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id n38C8flR075023; Wed, 8 Apr 2009 14:08:41 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id n38C8fE3075022; Wed, 8 Apr 2009 14:08:41 +0200 (CEST) (envelope-from ticso) Date: Wed, 8 Apr 2009 14:08:41 +0200 From: Bernd Walter To: Max Laier Message-ID: <20090408120841.GC68699@cicely7.cicely.de> References: <20090402061003.GR13393@hoeg.nl> <20090408112538.GA68699@cicely7.cicely.de> <200904081343.53600.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200904081343.53600.max@love2party.net> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org, ticso@cicely.de, 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 Reply-To: ticso@cicely.de 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 12:09:03 -0000 On Wed, Apr 08, 2009 at 12:43:53PM +0100, Max Laier wrote: > 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 ;) It doesn't handle scope information ;-) -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.