summaryrefslogtreecommitdiff
path: root/lib/include/util.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-04 14:27:28 +0100
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-04 14:30:16 +0100
commit34f542b7cc6e84403326acf145487a7d83175a11 (patch)
treef63accb7d3f22e5cae61dcdeb3b65add403d28cf /lib/include/util.h
parent1ffc240b3f7668ff2fb4e72b6e15937824a6cf3e (diff)
Seperate init specific code from utility code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/include/util.h')
-rw-r--r--lib/include/util.h10
1 files changed, 10 insertions, 0 deletions
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 */