Today when I use nix's mmap for creating anonymous mappings I have to use mmap::<BorrowedFd>(...), which feels... quite awkward. It would be nice to have a variant of mmap with the following signature:
pub unsafe fn mmap_nofd(
addr: Option<NonZeroUsize>,
length: NonZeroUsize,
prot: ProtFlags,
flags: MapFlags,
) -> Result<*mut c_void>
The offset argument has meaning only for file-backed mappings, so we can remove it as well.