MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / cstring_path

Function cstring_path

crates/openshell-supervisor-process/src/process.rs:317–320  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

315
316#[cfg(target_os = "linux")]
317fn cstring_path(path: &Path) -> Result<CString> {
318 CString::new(path.as_os_str().as_bytes())
319 .map_err(|_| miette::miette!("path contains an interior NUL byte: {}", path.display()))
320}
321
322#[cfg(target_os = "linux")]
323fn create_supervisor_identity_mount_namespace(target: &Path) -> Result<OwnedFd> {

Calls

no outgoing calls

Tested by

no test coverage detected