git: Remove the legacy "utmp" API, now that our utils have been moved to utmpx.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Sep 10 13:46:22 PDT 2019


commit e2e9821d3095715dc724545a180e47d9b25f2082
Author: Sascha Wildner <saw at online.de>
Date:   Tue Sep 10 21:26:48 2019 +0200

    Remove the legacy "utmp" API, now that our utils have been moved to utmpx.
    
    As I wrote in UPGRADING, the main change for "normal" users is probably
    that /var/log/wtmp is no longer logged to, just /var/log/wtmpx.
    
    Leave the old API in libc as compat symbols that do nothing and always
    succeed for the run-time linker (i.e. old binaries still using them).
    
    dports has been kindly adjusted by zrj and new binary packages for master
    are on their way.
    
    A future commit will provide a wtmpcvt(1) utility to convert old wtmp
    files to the wtmpx format.

Summary of changes:
 Makefile_upgrade.inc       |   9 ++
 UPDATING                   |  13 +++
 include/Makefile           |   2 +-
 include/utmp.h             |  72 ------------
 include/utmpx.h            |   2 -
 lib/libc/gen/Makefile.inc  |   4 +-
 lib/libc/gen/Symbol.map    |   8 +-
 lib/libc/gen/getlastlogx.3 |  27 +----
 lib/libc/gen/utmp.c        |  64 ++---------
 lib/libc/gen/utmpx.c       |  31 +-----
 lib/libutil/Makefile       |   4 +-
 lib/libutil/libutil.h      |   3 -
 lib/libutil/login.3        |  65 -----------
 lib/libutil/login.c        |  57 ----------
 lib/libutil/logout.3       |  67 ------------
 lib/libutil/logout.c       |  67 ------------
 lib/libutil/logwtmp.3      |  71 ------------
 lib/libutil/logwtmp.c      |  98 -----------------
 share/man/man5/Makefile    |   3 -
 share/man/man5/utmp.5      | 267 ---------------------------------------------
 sys/sys/param.h            |   6 +-
 usr.sbin/adduser/adduser.8 |  10 +-
 22 files changed, 47 insertions(+), 903 deletions(-)
 delete mode 100644 include/utmp.h
 delete mode 100644 lib/libutil/login.3
 delete mode 100644 lib/libutil/login.c
 delete mode 100644 lib/libutil/logout.3
 delete mode 100644 lib/libutil/logout.c
 delete mode 100644 lib/libutil/logwtmp.3
 delete mode 100644 lib/libutil/logwtmp.c
 delete mode 100644 share/man/man5/utmp.5

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e2e9821d3095715dc724545a180e47d9b25f2082


-- 
DragonFly BSD source repository



More information about the Commits mailing list