This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lzhao
Recipients lzhao
Date 2019-04-17.15:53:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555516421.89.0.141629661161.issue36648@roundup.psfhosted.org>
In-reply-to
Content
anonymous mappings is not part of the POSIX standard, python user just need to specified -1 as fd value when do anonymous map, for example:

m = mmap.mmap(-1, 100)

then python adapter module(mmapmodule.c) try to specify MAP_SHARED or MAP_PRIVATE based on operate system requirement, Linux require MAP_SHARED, VxWorks require MAP_PRIVATE, this different should be hidden by this module, and python user won't be affected.

Currently, mmap is only adapted for the system which use MAP_SHARED when do anonymous map, VxWorks need be supported.

https://en.wikipedia.org/wiki/Mmap
History
Date User Action Args
2019-04-17 15:53:41lzhaosetrecipients: + lzhao
2019-04-17 15:53:41lzhaosetmessageid: <1555516421.89.0.141629661161.issue36648@roundup.psfhosted.org>
2019-04-17 15:53:41lzhaolinkissue36648 messages
2019-04-17 15:53:41lzhaocreate