Date: Tue, 6 May 2008 00:41:08 -0700 From: "Jordan K. Hubbard" <jkh@brierdr.com> To: "Peter Wemm" <peter@wemm.org> 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" <imp@bsdimp.com> Subject: Re: cvs commit: src/etc/etc.mips ttys Message-ID: <D16ADC69-F168-4E65-BA82-A7E5C2A0FD3F@brierdr.com> In-Reply-To: <e7db6d980805060013m54f3fe77i60336688f8f987b4@mail.gmail.com> References: <5978.1209974842@critter.freebsd.dk> <200805050949.27063.jhb@freebsd.org> <20080505.080823.2086232061.imp@bsdimp.com> <20080505210616.GD48099@cicely12.cicely.de> <e7db6d980805060013m54f3fe77i60336688f8f987b4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D16ADC69-F168-4E65-BA82-A7E5C2A0FD3F>