MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / fchown

Function fchown

src/fs/fd.rs:138–140  ·  view source on GitHub ↗
(fd: Fd, owner: Option<Uid>, group: Option<Gid>)

Source from the content-addressed store, hash-verified

136#[cfg(not(target_os = "wasi"))]
137#[inline]
138pub fn fchown<Fd: AsFd>(fd: Fd, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> {
139 backend::fs::syscalls::fchown(fd.as_fd(), owner, group)
140}
141
142/// `fstat(fd)`—Queries metadata for an open file or directory.
143///

Callers 1

test_fileFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_fileFunction · 0.40