pub fn chmodat<P: Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> Result<()>
fchmodat(dirfd, path, mode, 0)—Sets file or directory permissions.
fchmodat(dirfd, path, mode, 0)
See fchmodat_with for a version that does take flags.
fchmodat_with