Programming Search⌘K

std.posix, page 1 of 2

The entries of std.posix in the Zig reference. This page has 243 cards.

std.posix.mmap

pub fn mmap(ptr: ?[*]align(page_size_min) u8, length: usize, prot: PROT, flags: MAP, fd: fd_t, offset: u64) MMapError![]align(page_size_min) u8

Map files or devices into memory. `length` does not need to be aligned.

Kind
function
Module
std.posix

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.