MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / execveat

Function execveat

src/backend/linux_raw/runtime/syscalls.rs:82–97  ·  view source on GitHub ↗
(
    dirfd: BorrowedFd<'_>,
    path: &CStr,
    args: *const *const u8,
    env_vars: *const *const u8,
    flags: AtFlags,
)

Source from the content-addressed store, hash-verified

80
81#[cfg(feature = "fs")]
82pub(crate) unsafe fn execveat(
83 dirfd: BorrowedFd<'_>,
84 path: &CStr,
85 args: *const *const u8,
86 env_vars: *const *const u8,
87 flags: AtFlags,
88) -> io::Errno {
89 ret_error(syscall_readonly!(
90 __NR_execveat,
91 dirfd,
92 path,
93 args,
94 env_vars,
95 flags
96 ))
97}
98
99pub(crate) unsafe fn execve(
100 path: &CStr,

Callers

nothing calls this directly

Calls 1

ret_errorFunction · 0.85

Tested by

no test coverage detected