(sysroot: &ostree::Sysroot)
| 34 | // Access the file descriptor for a sysroot |
| 35 | #[allow(unsafe_code)] |
| 36 | pub(crate) fn sysroot_fd(sysroot: &ostree::Sysroot) -> BorrowedFd<'_> { |
| 37 | unsafe { BorrowedFd::borrow_raw(sysroot.fd()) } |
| 38 | } |
| 39 | |
| 40 | // Return a cap-std `Dir` type for a sysroot |
| 41 | pub(crate) fn sysroot_dir(sysroot: &ostree::Sysroot) -> Result<Dir> { |
no outgoing calls
no test coverage detected