MCPcopy Index your code
hub / github.com/RustPython/RustPython / _mknod

Method _mknod

crates/vm/src/stdlib/posix.rs:1060–1068  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1058 #[cfg(not(target_os = "redox"))]
1059 impl MknodArgs<'_> {
1060 fn _mknod(self, vm: &VirtualMachine) -> PyResult<i32> {
1061 Ok(unsafe {
1062 libc::mknod(
1063 self.path.clone().into_cstring(vm)?.as_ptr(),
1064 self.mode,
1065 self.device,
1066 )
1067 })
1068 }
1069
1070 #[cfg(not(target_vendor = "apple"))]
1071 fn mknod(self, vm: &VirtualMachine) -> PyResult<()> {

Callers 1

mknodMethod · 0.80

Calls 4

mknodFunction · 0.85
into_cstringMethod · 0.80
as_ptrMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected