utmpx - Bring in utmpx,wtmpx and lastlogx support
authorAlex Hornung <ahornung@gmail.com>
Sun, 4 Oct 2009 17:44:56 +0000 (18:44 +0100)
committerAlex Hornung <ahornung@gmail.com>
Thu, 16 Dec 2010 15:34:09 +0000 (15:34 +0000)
commit59a92d1877d6bb6c4fc9d7be5e51943661e50c2f
tree3c2794153ebbd5478f86f4d9b70a98458bdab33c
parenta58d3fde2a25088e02988cc851455adcc5d67129
utmpx - Bring in utmpx,wtmpx and lastlogx support

* This commit introduces the necessary support for utmpx, wtmpx and
  lastlogx, as well as updating many base utils to work with these
  while mostly maintaining compatibility with the old utmp, wtmp and
  lastlog.

* The new last(1) supports wtmpx but defaults to wtmp as not all wtmp
  writers have been updated for wtmpx.

* All utmp readers support both utmp and utmpx now.

* lastlogin (the only lastlog reader) supports both lastlog and
  lastlogx.

* The utils who(1) and finger have been almost directly replaced by
  their NetBSD equivalent. In case of who(1) the only custom
  modification is the behaviour of '-b' to be as it has always been.

* Partially-Obtained-from: NetBSD
54 files changed:
etc/Makefile
etc/newsyslog.conf
games/dm/Makefile
games/dm/dm.c
include/Makefile
include/utmp.h
include/utmpx.h [new file with mode: 0644]
lib/libc/gen/Makefile.inc
lib/libc/gen/utmp.c [new file with mode: 0644]
lib/libc/gen/utmpx.c [new file with mode: 0644]
lib/libutil/Makefile
lib/libutil/libutil.h
lib/libutil/loginx.3 [new file with mode: 0644]
lib/libutil/loginx.c [copied from include/utmp.h with 54% similarity]
lib/libutil/logoutx.c [copied from include/utmp.h with 54% similarity]
lib/libutil/logwtmpx.c [copied from include/utmp.h with 54% similarity]
lib/pam_module/pam_lastlog/pam_lastlog.c
libexec/Makefile
libexec/talkd/Makefile
libexec/talkd/process.c
libexec/utmp_update/Makefile [new file with mode: 0644]
libexec/utmp_update/utmp_update.8 [new file with mode: 0644]
libexec/utmp_update/utmp_update.c [new file with mode: 0644]
sbin/init/Makefile
sbin/init/init.c
share/man/man5/Makefile
share/man/man5/utmpx.5 [new file with mode: 0644]
usr.bin/finger/Makefile
usr.bin/finger/extern.h
usr.bin/finger/finger.c
usr.bin/finger/finger.h
usr.bin/finger/util.c
usr.bin/last/Makefile
usr.bin/last/last.c
usr.bin/login/login.c
usr.bin/systat/Makefile
usr.bin/systat/vmstat.c
usr.bin/users/Makefile
usr.bin/users/users.c
usr.bin/w/Makefile
usr.bin/w/w.c
usr.bin/wall/Makefile
usr.bin/wall/wall.c
usr.bin/who/Makefile
usr.bin/who/utmpentry.c [new file with mode: 0644]
usr.bin/who/utmpentry.h [new file with mode: 0644]
usr.bin/who/who.1
usr.bin/who/who.c
usr.bin/write/Makefile
usr.bin/write/write.c
usr.sbin/lastlogin/lastlogin.8
usr.sbin/lastlogin/lastlogin.c
usr.sbin/syslogd/Makefile
usr.sbin/syslogd/syslogd.c