#[repr(C)]pub struct Spawn {
pub size: u32,
pub flags: u32,
pub arguments: *const XilaString,
pub argument_count: usize,
pub environment: *const XilaString,
pub environment_count: usize,
pub standard_input: *const File,
pub standard_output: *const File,
pub standard_error: *const File,
pub home: *const Directory,
}Expand description
Arguments of xila_process_spawn. Set size to sizeof(XilaSpawn). All
pointers are borrowed for the call.
Fields§
§size: u32§flags: u32The network rights the child gets (XILA_SPAWN_NETWORK_*). Zero gives it no
network. Each right must be one the parent holds: a child never gets more than
its parent. Other bits are reserved and must be zero.
arguments: *const XilaStringArguments of the child, with no implicit program name. A null array has count zero.
argument_count: usize§environment: *const XilaStringThe child’s whole environment as NAME=VALUE strings, a later entry overriding an
earlier one. A null array gives the child a copy of the parent’s environment
and requires count zero. An array with count zero gives it an empty one.
environment_count: usize§standard_input: *const FileStreams the child gets as duplicates of these. All three are required.
standard_output: *const File§standard_error: *const File§home: *const DirectoryOptional home directory capability the child gets a copy of.