From owner-cvs-src@FreeBSD.ORG Tue May 6 08:00:29 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6122B1065674; Tue, 6 May 2008 08:00:29 +0000 (UTC) (envelope-from jkh@brierdr.com) Received: from mail.brierdr.com (sfp-fw-eth1-2.razz.com [208.64.184.102]) by mx1.freebsd.org (Postfix) with ESMTP id 44B738FC1B; Tue, 6 May 2008 08:00:29 +0000 (UTC) (envelope-from jkh@brierdr.com) Received: from localhost (localhost [127.0.0.1]) by mail.brierdr.com (Postfix) with ESMTP id C743C16493C; Tue, 6 May 2008 00:41:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at brierdr.com Received: from mail.brierdr.com ([127.0.0.1]) by localhost (mail.brierdr.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YMwczSD4h6TN; Tue, 6 May 2008 00:41:08 -0700 (PDT) Received: from wowzer.queasyweasel.com (unknown [208.106.35.99]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.brierdr.com (Postfix) with ESMTP id 2AA6A164842; Tue, 6 May 2008 00:41:08 -0700 (PDT) Message-Id: From: "Jordan K. Hubbard" To: "Peter Wemm" In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Tue, 6 May 2008 00:41:08 -0700 References: <5978.1209974842@critter.freebsd.dk> <200805050949.27063.jhb@freebsd.org> <20080505.080823.2086232061.imp@bsdimp.com> <20080505210616.GD48099@cicely12.cicely.de> X-Mailer: Apple Mail (2.924) X-Mailman-Approved-At: Tue, 06 May 2008 15:53:53 +0000 Cc: src-committers@freebsd.org, kmacy@freebsd.org, jhb@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org, phk@phk.freebsd.dk, cperciva@freebsd.org, ticso@cicely.de, "M. Warner Losh" Subject: Re: cvs commit: src/etc/etc.mips ttys X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2008 08:00:29 -0000 On May 6, 2008, at 12:13 AM, Peter Wemm wrote: > If we wanted to do it right, I'd be suggesting that we make a clean > break and keep the information in one place, and in a file format > that isn't sensitive to fixed record sizes. ie: utmp.db (like > pwd.db and friends). Wrap it in a SuS/unix/linux/svr4/-ish {get| > put}utxxx() set of APIs and kill off the fixed record size utmp > file. We can get creative with wrappers or whatever, but we can > probably provide a variable length record API as well. FWIW, MacOSX went through this same process. We didn't want to keep the legacy utmp/wtmp db crap around, so we searched for another database with suitable lifetime.. Hmmm. What might we use? Where might we possibly keep track of logins and logouts on a specific tty? Some sort of log... Like... The system log file. Hey! ASL also already implemented the notion of privileged loggers, so bingo. Now login(1) just logs creation and death and the old crappy UNIX03 APIs read the logs. Having a structured log system that supports fast search is another prerequisite, but you guys already want that anyway. :-) - Jordan