From owner-cvs-all@FreeBSD.ORG Mon May 5 18:27:03 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 08819106566B; Mon, 5 May 2008 18:27:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id CC0938FC17; Mon, 5 May 2008 18:27:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unknown [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id 65FC21A4D80; Mon, 5 May 2008 11:27:02 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m45IQjdp069338; Mon, 5 May 2008 14:26:49 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "M. Warner Losh" Date: Mon, 5 May 2008 11:58:30 -0400 User-Agent: KMail/1.9.7 References: <5978.1209974842@critter.freebsd.dk> <200805050949.27063.jhb@freebsd.org> <20080505.080823.2086232061.imp@bsdimp.com> In-Reply-To: <20080505.080823.2086232061.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805051158.30782.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 05 May 2008 14:26:49 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/7035/Mon May 5 13:47:07 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: src-committers@freebsd.org, kmacy@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org, phk@phk.freebsd.dk, cperciva@freebsd.org Subject: Re: cvs commit: src/etc/etc.mips 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: Mon, 05 May 2008 18:27:03 -0000 On Monday 05 May 2008 10:08:23 am M. Warner Losh wrote: > In message: <200805050949.27063.jhb@freebsd.org> > John Baldwin writes: > : On Monday 05 May 2008 04:07:22 am Poul-Henning Kamp wrote: > : > In message <481EB19B.3000201@freebsd.org>, Colin Percival writes: > : > >Poul-Henning Kamp wrote: > : > >> In message <200805050535.m455ZmI1030493@repoman.freebsd.org>, Warner > : > >> Losh write > : > >> > : > >> s: > : > >>> Added files: > : > >>> etc/etc.mips ttys > : > >>> Log: > : > >>> Mips ttys file. Copied from i386 version with removal of the vga > : > >>> entries. > : > >> > : > >> We should really replace this file with a script that generates it > : > >> from a set of sensible parameters at build-time. > : > > > : > >Yes please -- kmacy might have worked around this, but at one point this > : > >was the only non-kernel file which needed to be different for Xen builds. > : > > : > And for anyone looking at this, there is also a task to eliminate the > : > pty devices in this file, the reason why they are there has to do with > : > the introduction of the really weird notion of "remote logins" back in > : > the early 1980'ies, we really could do better. > : > : Err, I thought it was because utmp still uses the line index in /etc/ttys so > : ptys have to be listed in /etc/ttys to get an index. I haven't looked at > : utmpx, but it might be nice if we had a utmp format that 1) didn't limit > : usernames to 16 chars, and 2) stored the name of the tty rather than a dev_t. > : 2) is what I think has broken 'w -M /var/crash/vmcore.X' since 5.x. > > /var/run/utmp stores the name. However, it does appear to use the > index in /etc/ttys to write the record into /var/run/utmp. typical > entries look like: Hmm, 'w' still uses the dev_t to match entries in utmp to processes. Oh, w(1) uses stat() on the node in /dev so it always gets "live" dev_t's instead of reading them out of the core dump somehow, so that is how it breaks for core dumps. -- John Baldwin