Lines Matching refs:prog
32 Command::Command(const string& prog) in Command() argument
33 :prog(prog) in Command()
56 return prog.c_str(); in GetProg()
64 result[0] = strdup(prog.c_str()); in GetArgv()
121 const char* prog = command.GetProg(); in get_command_output() local
124 exec_with_path_search(prog, argv, env); in get_command_output()
126 print_error("Unable to run command: %s", prog); in get_command_output()
169 const char* prog = command.GetProg(); in run_command() local
172 exec_with_path_search(prog, argv, env); in run_command()
173 print_error("Unable to run command: %s", prog); in run_command()
188 exec_with_path_search(const char* prog, char const* const* argv, char const* const* envp) in exec_with_path_search() argument
190 if (prog[0] == '/') { in exec_with_path_search()
191 return execve(prog, (char*const*)argv, (char*const*)envp); in exec_with_path_search()
206 string executable = string(dir) + "/" + prog; in exec_with_path_search()