exec-cmd.h 673 B

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