exec-cmd.h 634 B

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