From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 8 11:26:03 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 87C6210656C5 for ; Wed, 8 Apr 2009 11:26:03 +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 13B6D8FC29 for ; Wed, 8 Apr 2009 11:26:02 +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 n38BPgYX004277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Apr 2009 13:25:42 +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 n38BPdVR081316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Apr 2009 13:25:39 +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 n38BPdRn074890; Wed, 8 Apr 2009 13:25:39 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id n38BPdf9074889; Wed, 8 Apr 2009 13:25:39 +0200 (CEST) (envelope-from ticso) Date: Wed, 8 Apr 2009 13:25:39 +0200 From: Bernd Walter To: Ed Schouten Message-ID: <20090408112538.GA68699@cicely7.cicely.de> References: <20090401205306.GO13393@hoeg.nl> <20090401205703.GX31897@deviant.kiev.zoral.com.ua> <20090401210835.GP13393@hoeg.nl> <20090401215308.GA91493@psconsult.nl> <20090402061003.GR13393@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090402061003.GR13393@hoeg.nl> 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 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 11:26:04 -0000 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. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.