Thread (2 messages) 2 messages, 2 authors, 2026-04-12

Possible typo/redundancy in mmap(2) SYNOPSIS

From: 佐々木龍路 <hidden>
Date: 2026-04-12 14:11:58

1. Where: mmap(2) SYNOPSIS section.
2. Issue: There is a semicolon after length and it appears twice,
which looks like the function has an extra argument.
3.Actual display: void *mmap(size_t length;void addr[length],size_t length,...);
4. Why it's confusing: From a syscall ABI perspective, rdi should be
addr, not length. This notation might confuse users about the actual
number of arguments.
man 2.13.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help