Go to the documentation of this file.
38 #include <systemd/sd-daemon.h>
45 check_systemd_running(
void)
53 return (sd_booted() > 0)
59 get_console_input_systemd(
const char *prompt,
const bool echo,
char *input,
const int capacity)
66 #ifdef SYSTEMD_NEWER_THAN_216
105 if (!check_systemd_running())
bool argv_printf_cat(struct argv *argres, const char *format,...)
printf() inspired argv concatenation.
struct _query_user query_user[QUERY_USER_NUMSLOTS]
Global variable, declared in console.c.
void argv_free(struct argv *a)
Frees all memory allocations allocated by the struct argv related functions.
bool query_user_exec_builtin(void)
Executes a configured setup, using the built-in method for querying the user.
static bool query_user_exec(void)
Wrapper function enabling query_user_exec() if no alternative methods have been enabled.
#define QUERY_USER_NUMSLOTS
struct argv argv_new(void)
Allocates a new struct argv and ensures it is initialised.
bool argv_printf(struct argv *argres, const char *format,...)
printf() variant which populates a struct argv.
char * response
The user's response.
#define SYSTEMD_ASK_PASSWORD_PATH
int openvpn_popen(const struct argv *a, const struct env_set *es)