From 34f542b7cc6e84403326acf145487a7d83175a11 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 4 Nov 2018 14:27:28 +0100 Subject: Seperate init specific code from utility code Signed-off-by: David Oberhollenzer --- lib/include/util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/include/util.h') diff --git a/lib/include/util.h b/lib/include/util.h index 6d2bf5d..925a1f0 100644 --- a/lib/include/util.h +++ b/lib/include/util.h @@ -35,6 +35,12 @@ typedef struct { int value; } enum_map_t; +typedef struct exec_t { + struct exec_t *next; + int argc; /* number of elements in argument vector */ + char args[]; /* argument vectot string blob */ +} exec_t; + enum { /* only allow root to connect */ SOCK_FLAG_ROOT_ONLY = 0x01, @@ -73,5 +79,9 @@ int mksock(const char *path, int flags); /* print a default version info and license string */ NORETURN void print_version(const char *program); +int setup_tty(const char *tty, bool truncate); + +NORETURN void argv_exec(exec_t *e); + #endif /* UTIL_H */ -- cgit v1.2.3