Feature gate: #![feature(unix_chown)]
This is a tracking issue for the chown family of functions. These functions change the UNIX owner and group of a file or file descriptor.
Public API
pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
pub fn lchown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
Steps / History
Feature gate:
#![feature(unix_chown)]This is a tracking issue for the
chownfamily of functions. These functions change the UNIX owner and group of a file or file descriptor.Public API
Steps / History
fchowntakes anAsFdby value, which prevents passing a reference.