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

Function fchown

crates/vm/src/stdlib/posix.rs:673–682  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>, uid: isize, gid: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

671 #[cfg(not(target_os = "redox"))]
672 #[pyfunction]
673 fn fchown(fd: BorrowedFd<'_>, uid: isize, gid: isize, vm: &VirtualMachine) -> PyResult<()> {
674 chown(
675 OsPathOrFd::Fd(fd.into()),
676 uid,
677 gid,
678 DirFd::default(),
679 FollowSymlinks(true),
680 vm,
681 )
682 }
683
684 #[derive(FromArgs)]
685 struct RegisterAtForkArgs {

Callers 1

chownFunction · 0.85

Calls 3

FdClass · 0.85
FollowSymlinksClass · 0.85
chownFunction · 0.70

Tested by

no test coverage detected