From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 1 21:07:30 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 C9DFA106566B for ; Wed, 1 Apr 2009 21:07:30 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 8B61C8FC15 for ; Wed, 1 Apr 2009 21:07:30 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A61921CC73; Wed, 1 Apr 2009 23:08:35 +0200 (CEST) Date: Wed, 1 Apr 2009 23:08:35 +0200 From: Ed Schouten To: Kostik Belousov Message-ID: <20090401210835.GP13393@hoeg.nl> References: <20090401205306.GO13393@hoeg.nl> <20090401205703.GX31897@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="STPqjqpCrtky8aYs" Content-Disposition: inline In-Reply-To: <20090401205703.GX31897@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: FreeBSD Hackers , Steven Hartland 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, 01 Apr 2009 21:07:31 -0000 --STPqjqpCrtky8aYs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Kostik, * Kostik Belousov wrote: > Can we switch to %x ? Or even, use some radix encoding of the number, > to allow alphabetical symbols too ? I guess that would break a lot of existing libraries. For example: older RELENG_7/CURRENT libcs might still use TIOCGPTN. This ioctl just returns a number that is just printed into a device name using "/dev/pts/%u" as a format. I also suspect a lot of Linux/Solaris-minded software expects the names to be in decimal form. I also thought about that, but the risks are probably too high. I think it's better to just redesign our utmp/wtmp/lastlog system. I guess we could do something like this: - Implement utmpx. At first utmpx should just be a set of wrappers around utmp/wtmp/lastlog. - Migrate all applications to utmpx. - Change the utmpx code to use some new fancy file format. I think I can finish the first step before 8.0 if I start working on this one of these weeks. --=20 Ed Schouten WWW: http://80386.nl/ --STPqjqpCrtky8aYs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknT19MACgkQ52SDGA2eCwUQBgCfWThoNf4HrM/Rh0GBCyNVPKR2 AYoAn2zTnithkWAZ0Me5LSGGpGh7tBxu =p8x/ -----END PGP SIGNATURE----- --STPqjqpCrtky8aYs--