Josh Poimboeuf | 1843b4e | 2015-12-15 09:39:40 -0600 | [diff] [blame] | 1 | #ifndef __SUBCMD_EXEC_CMD_H |
| 2 | #define __SUBCMD_EXEC_CMD_H |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 3 | |
Josh Poimboeuf | 096d355 | 2015-12-15 09:39:35 -0600 | [diff] [blame] | 4 | extern void exec_cmd_init(const char *exec_name, const char *prefix, |
| 5 | const char *exec_path, const char *exec_path_env); |
| 6 | |
Josh Poimboeuf | 46113a5 | 2015-12-15 09:39:37 -0600 | [diff] [blame] | 7 | extern void set_argv_exec_path(const char *exec_path); |
| 8 | extern const char *extract_argv0_path(const char *path); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 9 | extern void setup_path(void); |
Josh Poimboeuf | 46113a5 | 2015-12-15 09:39:37 -0600 | [diff] [blame] | 10 | extern int execv_cmd(const char **argv); /* NULL terminated */ |
| 11 | extern int execl_cmd(const char *cmd, ...); |
| 12 | /* get_argv_exec_path and system_path return malloc'd string, caller must free it */ |
| 13 | extern char *get_argv_exec_path(void); |
Masami Hiramatsu | c4068f5 | 2015-11-19 15:04:53 +0900 | [diff] [blame] | 14 | extern char *system_path(const char *path); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 15 | |
Josh Poimboeuf | 1843b4e | 2015-12-15 09:39:40 -0600 | [diff] [blame] | 16 | #endif /* __SUBCMD_EXEC_CMD_H */ |