Function rustix::fs::fchmod

pub fn fchmod<Fd: AsFd>(fd: &Fd, mode: Mode) -> io::Result<()>
Documentation

fchmod(fd)—Sets open file or directory permissions.

Note that this implementation does not support O_PATH file descriptors, even on platforms where the host libc emulates it.

References