git: initrd/oinit: Implement login_tty() to avoid depending on libutil

Aaron LI aly at crater.dragonflybsd.org
Mon Aug 3 17:10:27 PDT 2026


commit cb392f09901c82ea803baf2af0758f11dafc9206
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Aug 4 07:27:11 2026 +0800

    initrd/oinit: Implement login_tty() to avoid depending on libutil
    
    Copy the login_tty() from libutil and thus remove the dependency on
    libutil.  However, this doesn't reduce the final binary size...
    
    Meanwhile, remove unnecessary header inclusions.

Summary of changes:
 initrd/oinit/Makefile |  7 -------
 initrd/oinit/oinit.c  | 32 ++++++++++++++++++--------------
 2 files changed, 18 insertions(+), 21 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list