]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Port last(1) to use utmpx.
authored <ed@FreeBSD.org>
Wed, 13 Jan 2010 18:06:31 +0000 (18:06 +0000)
committered <ed@FreeBSD.org>
Wed, 13 Jan 2010 18:06:31 +0000 (18:06 +0000)
commit6d640118578b872e41214af63f644eb553348703
treec38b28bce35df205a85ee167b4e0dcc10e5afdb6
parent3ad23bc14fedcc56d917aab8b3f25e3a0393631d
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.
usr.bin/last/last.c