pub fn fchmod<Fd: AsFd>(fd: Fd, mode: Mode) -> Result<()>
fchmod(fd)—Sets open file or directory permissions.
fchmod(fd)
This implementation does not support O_PATH file descriptors, even on platforms where the host libc emulates it.
O_PATH