mmap2(2) System Calls Manual mmap2(2) mmap2 - (libc -lc) #include /* MAP_* PROT_* */ #include /* SYS_* */ #include void *syscall(SYS_mmap2, unsigned long addr, unsigned long length, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoffset); mmap(2) glibc . mmap2() mmap(2) 4096 ( mmap(2)). off_t 32 ( 2^44 ). mmap2() . -1 errno . EFAULT . EINVAL ( 4096 .) offset * 4096 . mmap2() mmap(2). glibc mmap() mmap(2). x86-64. ia64 offset 4096 . . 2.3.31. getpagesize(2), mmap(2), mremap(2), msync(2), shm_open(3) 3 . . : . 6.18 8 2026 mmap2(2)