Function lrs::syscall::execveat

Executes a file relative to a directory.

Syntax

fn execveat(fd: i32, filename: &CStr, argv: *const *const i8, envp: *const *const i8, flags: i32) -> i32

Arguments

NameDescription
fd

The directory relative to which relative paths will be interpreted.

filename

The file to execute.

argv

The argument pointer.

envp

The environment pointer.

flags

Flags used when executing a process.

Return value

Returns success or an error value.

See also