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()
123 const char* prog = command.GetProg(); in get_command_output() local
126 exec_with_path_search(prog, argv, env); in get_command_output()
128 print_error("Unable to run command: %s", prog); in get_command_output()
171 const char* prog = command.GetProg(); in run_command() local
174 exec_with_path_search(prog, argv, env); in run_command()
175 print_error("Unable to run command: %s", prog); in run_command()
190 exec_with_path_search(const char* prog, char const* const* argv, char const* const* envp) in exec_with_path_search() argument
192 if (strchr(prog, '/') != NULL) { in exec_with_path_search()
193 return execve(prog, (char*const*)argv, (char*const*)envp); in exec_with_path_search()
208 string executable = string(dir) + "/" + prog; in exec_with_path_search()