]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: split out terminal functions to tty.c
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 08:57:21 +0000 (10:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:57 +0000 (13:14 +0200)
commit2431927ff5844d6cc45beb5a7fada48e8e5c470c
treed849a339f5e06ba8068b1083bb82c3d948ae1b4f
parent013d461116aebad84e89eee0035267303fc35ae1
agetty: split out terminal functions to tty.c

Move terminal initialization and management functions to tty.c:
agetty_open_tty(), agetty_termio_clear(), agetty_termio_init(),
agetty_termio_final(), agetty_reset_vc(), agetty_auto_baud(),
agetty_next_speed() and agetty_erase_char().

Move CLOCAL_MODE_* enum, FIRST_SPEED and debug() macro to agetty.h
as they are now needed by multiple source files.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.c
agetty-cmd/agetty.h
agetty-cmd/tty.c