^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __SUBCMD_EXEC_CMD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __SUBCMD_EXEC_CMD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) extern void exec_cmd_init(const char *exec_name, const char *prefix,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) const char *exec_path, const char *exec_path_env);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) extern void set_argv_exec_path(const char *exec_path);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) extern const char *extract_argv0_path(const char *path);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) extern void setup_path(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern int execv_cmd(const char **argv); /* NULL terminated */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern int execl_cmd(const char *cmd, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /* get_argv_exec_path and system_path return malloc'd string, caller must free it */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern char *get_argv_exec_path(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern char *system_path(const char *path);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif /* __SUBCMD_EXEC_CMD_H */