License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / tools / lib / subcmd / exec-cmd.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1843b4e0
JP
2#ifndef __SUBCMD_EXEC_CMD_H
3#define __SUBCMD_EXEC_CMD_H
07800601 4
096d3558
JP
5extern void exec_cmd_init(const char *exec_name, const char *prefix,
6 const char *exec_path, const char *exec_path_env);
7
46113a54
JP
8extern void set_argv_exec_path(const char *exec_path);
9extern const char *extract_argv0_path(const char *path);
07800601 10extern void setup_path(void);
46113a54
JP
11extern int execv_cmd(const char **argv); /* NULL terminated */
12extern int execl_cmd(const char *cmd, ...);
13/* get_argv_exec_path and system_path return malloc'd string, caller must free it */
14extern char *get_argv_exec_path(void);
c4068f51 15extern char *system_path(const char *path);
07800601 16
1843b4e0 17#endif /* __SUBCMD_EXEC_CMD_H */