Skip to main content

run_program

Function run_program 

Source
pub fn run_program(args: impl Iterator<Item = OsString>) -> Result<i32, String>
Expand description

The libc-runner entry point: libc-runner PROGRAM [ARGS...], Cargo’s target runner. Refuses a program that needs a newer glibc than the target, or one the host’s libraries cannot load when it runs on the host, then runs it under the selected kernel simulation, if any. Returns the program’s exit code, or 2 when it was refused.

§Errors

Returns a message when the program is not given, its path or arguments are not UTF-8, the selection in the environment is invalid, the program cannot be read as ELF, or the runner cannot start it.