Lines Matching defs:program
156 /// Logs the execution of another program.
158 /// \param program The binary to execute.
159 /// \param args The arguments to pass to the binary, without the program name.
161 log_exec(const fs::path& program, const process::args_vector& args)
163 std::string plain_command = program.str();
179 static void cxx_exec(const fs::path& program, const process::args_vector& args)
192 /// \param program The binary to execute.
193 /// \param args The arguments to pass to the binary, without the program name.
195 cxx_exec(const fs::path& program, const process::args_vector& args) throw()
201 argv[0] = program.c_str();
206 const int ret = ::execv(program.c_str(),
211 std::cerr << "Failed to execute " << program << ": "
215 std::cerr << "Failed to execute " << program << ": "
219 std::cerr << "Failed to execute " << program << "; got unexpected "
364 /// \param program The binary to execute.
365 /// \param args The arguments to pass to the binary, without the program name.
373 process::child::spawn_capture(const fs::path& program, const args_vector& args)
377 cxx_exec(program, args);
378 log_exec(program, args);
388 /// \param program The binary to execute.
389 /// \param args The arguments to pass to the binary, without the program name.
399 process::child::spawn_files(const fs::path& program,
406 cxx_exec(program, args);
407 log_exec(program, args);