pub struct Clone3<'a> { /* private fields */ }
Expand description
Implementations§
source§impl<'a> Clone3<'a>
impl<'a> Clone3<'a>
pub fn flag_child_cleartid(&mut self, child_tid: &'a mut pid_t) -> &mut Self
pub fn flag_child_settid(&mut self, child_tid: &'a mut pid_t) -> &mut Self
pub fn flag_clear_sighand(&mut self) -> &mut Self
pub fn flag_files(&mut self) -> &mut Self
pub fn flag_fs(&mut self) -> &mut Self
pub fn flag_into_cgroup(&mut self, cgroup: &'a dyn AsRawFd) -> &mut Self
pub fn flag_io(&mut self) -> &mut Self
pub fn flag_newcgroup(&mut self) -> &mut Self
pub fn flag_newipc(&mut self) -> &mut Self
pub fn flag_newnet(&mut self) -> &mut Self
pub fn flag_newns(&mut self) -> &mut Self
pub fn flag_newpid(&mut self) -> &mut Self
pub fn flag_newtime(&mut self) -> &mut Self
pub fn flag_newuser(&mut self) -> &mut Self
pub fn flag_newuts(&mut self) -> &mut Self
pub fn flag_parent(&mut self) -> &mut Self
pub fn flag_parent_settid(&mut self, parent_tid: &'a mut pid_t) -> &mut Self
pub fn flag_pidfd(&mut self, pidfd: &'a mut RawFd) -> &mut Self
pub fn flag_ptrace(&mut self) -> &mut Self
pub fn flag_settls(&mut self, tls: u64) -> &mut Self
pub fn flag_sighand(&mut self) -> &mut Self
pub fn flag_sysvsem(&mut self) -> &mut Self
pub fn flag_thread(&mut self) -> &mut Self
pub fn flag_untraced(&mut self) -> &mut Self
pub fn flag_vfork(&mut self) -> &mut Self
pub fn flag_vm(&mut self, stack: &'a mut [u8]) -> &mut Self
pub fn exit_signal(&mut self, exit_signal: u64) -> &mut Self
pub fn stack(&mut self, stack: &'a mut [u8]) -> &mut Self
pub fn set_tid(&mut self, set_tid: &'a [pid_t]) -> &mut Self
sourcepub unsafe fn call(&mut self) -> Result<pid_t, Errno>
pub unsafe fn call(&mut self) -> Result<pid_t, Errno>
Performs the system call.
Errors
Errors if the system call returns -1.
Panics
Panics if the set flags are incompatible:
CHILD_CLEARTID
andCHILD_SETTID
must not be set togetherCLEAR_SIGHAND
andSIGHAND
must not be set togetherNEWIPC
andSYSVSEM
must not be set togetherFS
andNEWNS
must not be set togetherTHREAD
andPIDFD
must not be set togetherNEWPID
must not be set withPARENT
orTHREAD
NEWUSER
must not be set withFS
orPARENT
orTHREAD
- if
SIGHAND
is set thenVM
must be set - if
THREAD
is set thenSIGHAND
must be set
Panics if the system call returns a value that neither indicates failure nor is convertible
to pid_t
which could happen on overflow due to different type sizes. This is a
bug in the Linux kernel or the libc bindings used by this crate.
sourcepub unsafe fn call_unchecked(&mut self) -> c_long
pub unsafe fn call_unchecked(&mut self) -> c_long
Performs the system call.
Like call
but never errors or panics. Forwards the return value of the system
call.