Function emerald_std::process::spawn

source ·
pub unsafe fn spawn(
    path: &CStr,
    argv: &[*const c_char],
    file_mappings: &[SpawnFileMapping]
) -> Result<u64, SyscallError>
Expand description

Safety

path must be a valid C string. argv must be a valid C string array. ending with a null pointer. File mappings must be valid and present file mappings. The fds used in the file mappings must never be used again by the caller, as the ownership is transferred to the child process.