diff options
author | cperciva <cperciva@FreeBSD.org> | 2004-04-18 23:36:45 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2004-04-18 23:36:45 +0000 |
commit | c8b8f2e516bd27332932546407037cba76f5a68c (patch) | |
tree | 07ef1e76c8def16be1b199656e49826a43005d9f /lib/libc/sys | |
parent | ab7a6b93627b8918521415284c10f919967c4877 (diff) | |
download | FreeBSD-src-c8b8f2e516bd27332932546407037cba76f5a68c.zip FreeBSD-src-c8b8f2e516bd27332932546407037cba76f5a68c.tar.gz |
Document POSIX stupidity: Attempts to mmap zero bytes will succeed (and
have no effect), while attempts to munmap zero bytes will fail.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/mmap.2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index f7fd62d..8d6cfd7 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -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 . |