Document POSIX stupidity: Attempts to mmap zero bytes will succeed (and
have no effect), while attempts to munmap zero bytes will fail.
This commit is contained in:
parent
ab7a6b9362
commit
c8b8f2e516
@ -363,3 +363,10 @@ the file system code that causes the limit to be further restricted to
|
||||
.Pp
|
||||
Another reason for the 2GB limit is that file system metadata can
|
||||
reside at negative offsets.
|
||||
.Pp
|
||||
Note that an attempt to
|
||||
.Fn mmap
|
||||
zero bytes has no effect and succeeds, while an attempt to
|
||||
.Fn munmap
|
||||
zero bytes will return
|
||||
.Bq Er EINVAL .
|
||||
|
Loading…
Reference in New Issue
Block a user