From owner-cvs-all@FreeBSD.ORG Sat Aug 23 21:53:23 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96A731065684; Sat, 23 Aug 2008 21:53:23 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 5446E8FC13; Sat, 23 Aug 2008 21:53:23 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1D82E1CE1E; Sat, 23 Aug 2008 23:53:22 +0200 (CEST) Date: Sat, 23 Aug 2008 23:53:22 +0200 From: Ed Schouten To: Robert Watson Message-ID: <20080823215322.GJ99951@hoeg.nl> References: <200808231436.m7NEasMo005071@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eU5H5UOlkolEcjGi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/etc.amd64 ttys src/etc/etc.arm ttys src/etc/etc.i386 ttys src/etc/etc.ia64 ttys src/etc/etc.mips ttys src/etc/etc.powerpc ttys src/etc/etc.sparc64 ttys X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 21:53:23 -0000 --eU5H5UOlkolEcjGi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Robert, * Robert Watson wrote: > On Sat, 23 Aug 2008, Ed Schouten wrote: > >> Remove old BSD-style entries from /etc/ttys and increase pts(4) to 512. >> >> Because we now use pts(4)-style PTY's exclusively, there is no use for >> these entries in /etc/ttys. Right now the pts(4) entries only go from 0 >> to 255. Because we're going to touch these files anyway, increase the >> number to 511. > > Won't older pty-using binaries from 4.x/5.x/6.x/7.x running with compat= =20 > parts or old library versions still use old-style ptys, and hence need=20 > them in /etc/ttys? It really depends on what your definition of "need" is in this case. The reason why PTY's are listed in /etc/ttys, is to store login entries in /var/run/utmp. This means lastlog and wtmp are not affected. There is no need for an entry in /etc/ttys to be able to use a TTY and there is no guarantee an application using PTY's actually logs its usage in any logfile. The reason why I chose to remove the old devices and add some additional lines for pts(4), was because I was looking at a typical setup. The previous /etc/ttys was quite broken in two ways: - It contained 512 entries for a PTY naming scheme that (in RFC terms) SHOULD NOT be used on most common setups. - It contained 256 entries for a PTY naming scheme that we use right now. If we wanted to make everyone happy, I could have just added all pts(4) entries from 0 to 999, but that would have made /var/run/utmp at least 75 KB, which is a little big in my opinion. Rhis is why I, based on my expectations of the typical use case, decided to remove the pty(4) entries and extend the pts(4) ones. --=20 Ed Schouten WWW: http://80386.nl/ --eU5H5UOlkolEcjGi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiwhtIACgkQ52SDGA2eCwWnWACfQgca1SMpENKdOx3nK38Wj5V8 dxkAniWa7VYDOzAKDyxg1fTWt0nUA2q0 =aArv -----END PGP SIGNATURE----- --eU5H5UOlkolEcjGi--