Function rustix::fs::fallocate
pub fn fallocate<Fd: AsFd>(fd: &Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()>The portability is definied by:
#[cfg(not(any(target_os = "dragonfly", target_os = "illumos", target_os =
"netbsd", target_os = "openbsd", target_os = "redox")))]Documentation
fallocate(fd, mode, offset, len)—Adjusts file allocation.
This is a more general form of posix_fallocate, adding a mode argument
which modifies the behavior. On platforms which only support
posix_fallocate and not the more general form, no FallocateFlags values
are defined so it will always be empty.