Lines Matching defs:program
122 /// \param program The binary to execute.
123 /// \param args The arguments to pass to the binary, without the program name.
125 process::exec(const fs::path& program, const args_vector& args) throw()
128 exec_unsafe(program, args);
149 /// \param program The binary to execute.
150 /// \param args The arguments to pass to the binary, without the program name.
154 process::exec_unsafe(const fs::path& program, const args_vector& args)
161 argv[0] = program.c_str();
166 const int ret = ::execv(program.c_str(),
170 std::cerr << "Failed to execute " << program << ": "
173 std::cerr << "Failed to execute " << program << ": "
177 std::cerr << "Failed to execute " << program << "; got unexpected "
185 throw system_error("Failed to execute " + program.str(), original_errno);