Date: Wed, 13 Jan 2010 18:06:31 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/last last.c Message-ID: <201001131806.o0DI6jnJ098874@repoman.freebsd.org>
index | next in thread | raw e-mail
ed 2010-01-13 18:06:31 UTC
FreeBSD src repository
Modified files:
usr.bin/last last.c
Log:
SVN rev 202197 on 2010-01-13 18:06:31Z by ed
Port last(1) to use utmpx.
Basically there are three major things I changed about last(1):
- It should use ut_type instead of determining by hand what type of
record was given.
- It should now keep track of ut_id's instead of TTYs. This means the
ttylist has been renamed to the idlist, storing all the ut_id's it has
processed until the next reboot.
- I've removed the signal handler. Because our wtmp is rotated so often,
it makes little sense. Even on a simple piece of hardware it should be
capable of grinding through megabytes of logs in a second.
Revision Changes Path
1.35 +83 -102 src/usr.bin/last/last.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001131806.o0DI6jnJ098874>
