]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: add initial agetty.h header file
authorKarel Zak <kzak@redhat.com>
Wed, 13 May 2026 13:09:12 +0000 (15:09 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:34 +0000 (13:14 +0200)
Add an empty header file to be populated incrementally as functions
are split out from the monolithic agetty.c into separate files.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/Makemodule.am
agetty-cmd/agetty.c
agetty-cmd/agetty.h [new file with mode: 0644]
agetty-cmd/meson.build

index ccd2689db39eb966f767be5cbcacfec4b4b2d8ee..569629a49f73315d52ad1bd3554f8f5f438854b0 100644 (file)
@@ -3,7 +3,8 @@ sbin_PROGRAMS += agetty
 MANPAGES += term-utils/agetty.8
 dist_noinst_DATA += term-utils/agetty.8.adoc
 
-agetty_SOURCES = agetty-cmd/agetty.c
+agetty_SOURCES = agetty-cmd/agetty.c \
+                agetty-cmd/agetty.h
 
 if USE_PLYMOUTH_SUPPORT
 agetty_SOURCES += lib/plymouth-ctrl.c
index 6914868dbe11a7a81727b7b5693c8c2f95e3cc2b..bd17f920f4e0d13cd9b40cb7fe168aab421362dc 100644 (file)
@@ -36,6 +36,7 @@
 #include <sys/utsname.h>
 #include <syslog.h>
 
+#include "agetty.h"
 #include "strutils.h"
 #include "all-io.h"
 #include "nls.h"
diff --git a/agetty-cmd/agetty.h b/agetty-cmd/agetty.h
new file mode 100644 (file)
index 0000000..ca3cf9c
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef UTIL_LINUX_AGETTY_H
+#define UTIL_LINUX_AGETTY_H
+
+#endif /* UTIL_LINUX_AGETTY_H */
index 14410784643698ecc02e2fc7f8f3b4e9f299fac9..f7db71bfd8e7322f417f5b1bbe8ca1b6dfa3cd01 100644 (file)
@@ -1,5 +1,6 @@
 agetty_sources = files(
   'agetty.c',
+  'agetty.h',
 )
 
 if LINUX