Searched refs:CloneFlags (Results 1 – 3 of 3) sorted by relevance
19 pub struct CloneFlags: c_int {182 flags: CloneFlags, in clone() argument207 pub fn unshare(flags: CloneFlags) -> Result<()> { in unshare()213 pub fn setns(fd: RawFd, nstype: CloneFlags) -> Result<()> { in setns()
20 use nix::sched::{unshare, CloneFlags};182 unshare(CloneFlags::CLONE_NEWNS | CloneFlags::CLONE_NEWUSER).unwrap_or_else(|e| { in setup_namespaces()
1304 TEST_F(ProcessUtilTest, CloneFlags) { in TEST_F() argument