1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21843b4e0SJosh Poimboeuf #ifndef __SUBCMD_EXEC_CMD_H 31843b4e0SJosh Poimboeuf #define __SUBCMD_EXEC_CMD_H 44b6ab94eSJosh Poimboeuf 54b6ab94eSJosh Poimboeuf extern void exec_cmd_init(const char *exec_name, const char *prefix, 64b6ab94eSJosh Poimboeuf const char *exec_path, const char *exec_path_env); 74b6ab94eSJosh Poimboeuf 84b6ab94eSJosh Poimboeuf extern void set_argv_exec_path(const char *exec_path); 94b6ab94eSJosh Poimboeuf extern const char *extract_argv0_path(const char *path); 104b6ab94eSJosh Poimboeuf extern void setup_path(void); 114b6ab94eSJosh Poimboeuf extern int execv_cmd(const char **argv); /* NULL terminated */ 124b6ab94eSJosh Poimboeuf extern int execl_cmd(const char *cmd, ...); 134b6ab94eSJosh Poimboeuf /* get_argv_exec_path and system_path return malloc'd string, caller must free it */ 144b6ab94eSJosh Poimboeuf extern char *get_argv_exec_path(void); 154b6ab94eSJosh Poimboeuf extern char *system_path(const char *path); 164b6ab94eSJosh Poimboeuf 171843b4e0SJosh Poimboeuf #endif /* __SUBCMD_EXEC_CMD_H */ 18