libdebian-installer
|
Functions | |
int | di_exec_full (const char *path, const char *const argv[], di_io_handler *stdout_handler, di_io_handler *stderr_handler, void *io_user_data, di_process_handler *parent_prepare_handler, void *parent_prepare_user_data, di_process_handler *child_prepare_handler, void *child_prepare_user_data) |
static int | di_exec (const char *path, const char *const argv[]) |
int | di_exec_env_full (const char *path, const char *const argv[], const char *const envp[], di_io_handler *stdout_handler, di_io_handler *stderr_handler, void *io_user_data, di_process_handler *parent_prepare_handler, void *parent_prepare_user_data, di_process_handler *child_prepare_handler, void *child_prepare_user_data) |
static int | di_exec_env (const char *path, const char *const argv[], const char *const envp[]) |
int | di_exec_path_full (const char *file, const char *const argv[], di_io_handler *stdout_handler, di_io_handler *stderr_handler, void *io_user_data, di_process_handler *parent_prepare_handler, void *parent_prepare_user_data, di_process_handler *child_prepare_handler, void *child_prepare_user_data) |
static int | di_exec_path (const char *file, const char *const argv[]) |
int | di_exec_shell_full (const char *const cmd, di_io_handler *stdout_handler, di_io_handler *stderr_handler, void *io_user_data, di_process_handler *parent_prepare_handler, void *parent_prepare_user_data, di_process_handler *child_prepare_handler, void *child_prepare_user_data) |
static int | di_exec_shell (const char *const cmd) |
static int | di_exec_shell_log (const char *const cmd) |
int | di_exec_mangle_status (int status) |
static int | di_execlog (const char *const cmd) __attribute__((deprecated)) |
Variables | |
di_io_handler | di_exec_io_log |
di_process_handler | di_exec_prepare_chdir |
di_process_handler | di_exec_prepare_chroot |
|
inlinestatic |
execv like call
path | executable with path |
argv | NULL-terminated area of char pointer |
References di_exec_full().
|
inlinestatic |
execve like call
path | executable with path |
argv | NULL-terminated area of char pointer |
envp | NULL-terminated area of char pointer |
References di_exec_env_full().
int di_exec_env_full | ( | const char * | path, |
const char *const | argv[], | ||
const char *const | envp[], | ||
di_io_handler * | stdout_handler, | ||
di_io_handler * | stderr_handler, | ||
void * | io_user_data, | ||
di_process_handler * | parent_prepare_handler, | ||
void * | parent_prepare_user_data, | ||
di_process_handler * | child_prepare_handler, | ||
void * | child_prepare_user_data | ||
) |
execve like call
path | executable with path |
argv | NULL-terminated area of char pointer |
envp | NULL-terminated area of char pointer |
stdout_handler | di_io_handler which gets stdout (and to stderr if stderr_handler is NULL) |
stderr_handler | di_io_handler which gets stderr |
io_user_data | user_data for di_io_handler |
parent_prepare_handler | di_process_handler which is called after the fork in the parent |
parent_prepare_user_data | user_data for parent_prepare_handler |
child_prepare_handler | di_process_handler which is called after the fork in the child |
child_prepare_user_data | user_data for child_prepare_handler |
Referenced by di_exec_env().
int di_exec_full | ( | const char * | path, |
const char *const | argv[], | ||
di_io_handler * | stdout_handler, | ||
di_io_handler * | stderr_handler, | ||
void * | io_user_data, | ||
di_process_handler * | parent_prepare_handler, | ||
void * | parent_prepare_user_data, | ||
di_process_handler * | child_prepare_handler, | ||
void * | child_prepare_user_data | ||
) |
execv like call
path | executable with path |
argv | NULL-terminated area of char pointer |
stdout_handler | di_io_handler which gets stdout (and to stderr if stderr_handler is NULL) |
stderr_handler | di_io_handler which gets stderr |
io_user_data | user_data for di_io_handler |
parent_prepare_handler | di_process_handler which is called after the fork in the parent |
parent_prepare_user_data | user_data for parent_prepare_handler |
child_prepare_handler | di_process_handler which is called after the fork in the child |
child_prepare_user_data | user_data for child_prepare_handler |
Referenced by di_exec().
int di_exec_mangle_status | ( | int | status | ) |
|
inlinestatic |
execvp like call
file | executable |
argv | NULL-terminated area of char pointer |
References di_exec_path_full().
int di_exec_path_full | ( | const char * | file, |
const char *const | argv[], | ||
di_io_handler * | stdout_handler, | ||
di_io_handler * | stderr_handler, | ||
void * | io_user_data, | ||
di_process_handler * | parent_prepare_handler, | ||
void * | parent_prepare_user_data, | ||
di_process_handler * | child_prepare_handler, | ||
void * | child_prepare_user_data | ||
) |
execvp like call
file | executable |
argv | NULL-terminated area of char pointer |
stdout_handler | di_io_handler which gets stdout (and to stderr if stderr_handler is NULL) |
stderr_handler | di_io_handler which gets stderr |
io_user_data | user_data for di_io_handler |
parent_prepare_handler | di_process_handler which is called after the fork in the parent |
parent_prepare_user_data | user_data for parent_prepare_handler |
child_prepare_handler | di_process_handler which is called after the fork in the child |
child_prepare_user_data | user_data for child_prepare_handler |
Referenced by di_exec_path().
|
inlinestatic |
int di_exec_shell_full | ( | const char *const | cmd, |
di_io_handler * | stdout_handler, | ||
di_io_handler * | stderr_handler, | ||
void * | io_user_data, | ||
di_process_handler * | parent_prepare_handler, | ||
void * | parent_prepare_user_data, | ||
di_process_handler * | child_prepare_handler, | ||
void * | child_prepare_user_data | ||
) |
system like call
cmd | command |
stdout_handler | di_io_handler which gets stdout |
stderr_handler | di_io_handler which gets stderr |
io_user_data | user_data for di_io_handler |
parent_prepare_handler | di_process_handler which is called after the fork in the parent |
parent_prepare_user_data | user_data for parent_prepare_handler |
child_prepare_handler | di_process_handler which is called after the fork in the child |
child_prepare_user_data | user_data for child_prepare_handler |
Referenced by di_exec_shell(), and di_exec_shell_log().
|
inlinestatic |
system like call with output via log
cmd | command |
References di_exec_io_log, and di_exec_shell_full().
Referenced by di_execlog().
|
inlinestatic |
References di_exec_shell_log().
di_io_handler di_exec_io_log |
logs the output
Referenced by di_exec_shell_log().
di_process_handler di_exec_prepare_chdir |
chdir to user_data
user_data | path |
di_process_handler di_exec_prepare_chroot |
chroot to user_data
user_data | path |