From owner-freebsd-current Fri Jun 28 11:59:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ED9437B400 for ; Fri, 28 Jun 2002 11:58:57 -0700 (PDT) Received: from astro.phpwebhosting.com (astro.phpwebhosting.com [66.33.60.221]) by mx1.FreeBSD.org (Postfix) with SMTP id 5DE2843E09 for ; Fri, 28 Jun 2002 11:58:56 -0700 (PDT) (envelope-from howardjp@well.com) Received: (qmail 28200 invoked by uid 508); 28 Jun 2002 18:58:49 -0000 Received: from unknown (HELO wopr) (143.231.252.156) by astro.phpwebhosting.com with SMTP; 28 Jun 2002 18:58:49 -0000 Date: Fri, 28 Jun 2002 14:58:55 -0400 Subject: Re: changing 'struct utmp' Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: Poul-Henning Kamp , Mike Barcroft , current@FreeBSD.ORG, robert@FreeBSD.ORG To: Robert Drehmel From: James Howard In-Reply-To: <20020628203526.A8390@alpha.develop.ferrari.net> Message-Id: <18409B66-8AC9-11D6-AE66-003065BAAC62@well.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, June 28, 2002, at 02:35 , Robert Drehmel wrote: > If people want a more sophisticated solution, I could also > create a database format using the 'struct uxtmp' like Garrance > and Mike suggested, but with dynamicly sized members, and the > possibility to include only specific members in the structure. > To access members in such a structure functions like > void *utmpx_get_member(struct utmpx *, int which); > could be provided. > > That format would be used for /var/run/utmp, /var/log/wtmp and > /var/log/lastlog. It could be made configurable which members > to include in 'struct xutmp's stored in the last two. Imagine > an administrator wanting to log only remote network addresses, > another one needs resolved complete host names - so why waste > space for both? If this is being messed with, it would be great to see full support for System V utmp records, along with the assorted things they throw in. And if you do not mind breaking a lot of code, you could convert it all to using a Berkeley-style database. Or even better, PostgreSQL. I gonna get smacked, aren't I? Jamie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message