mmap(2): MAP_ANON

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Michael,

in the mmap(2) man page MAP_ANON is described as deprecated.

When I look at the NetBSD manpage
http://netbsd.gw.com/cgi-bin/man-cgi?mmap+2+NetBSD-current
I found that MAP_ANONYMOUS is not defined.

https://www.dragonflybsd.org/cgi/web-man?command=mmap&section=2
indicates MAP_ANONYMOUS is an alias for MAP_ANON and is provided for
compatibility.

https://man.openbsd.org/mmap.2 also knows MAP_ANONYMOUS as a synonym.

https://www.unix.com/man-page/osx/2/mmap/ does not know MAP_ANONYMOUS.

So shouldn't the man page indicate that MAP_ANON is to be favored to
write portable code? And correspondingly mark MAP_ANONYMOUS as synonym
only kept for compatibility.

The Open Group Base Specifications Issue 7, 2018 Edition does not
reference either of both. So both values are not POSIX but it is not
correct to describe them as Linux only.

Best regards

Heinrich
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux