[−][src]Crate clone3
Bindings to the clone3 linux system call.
See the clone3 man page for more information.
This is a complex and low level operation. Users must understand the documentation to use it safely and correctly.
Examples
let mut pidfd = 0; let clone3 = Clone3 { flags: Flags::PIDFD, pidfd: Some(&mut pidfd), ..Default::default() }; match unsafe { clone3.call() }.unwrap() { 0 => println!("i am the child"), child=> println!("i am the parent, my child has pid {} and my pidfd is {}", child, pidfd), }
Structs
| Clone3 | Higher level wrapper around the clone3 system call. |
| CloneArgs | Arguments to the clone3 system call as defined in |
| Flags | Flags for the clone3 system call as defined in |
Functions
| clone3_system_call⚠ | The raw clone3 system call. |