[New-bugs-announce] [issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

LihuaZhao report at bugs.python.org
Wed Apr 17 11:53:41 EDT 2019


New submission from LihuaZhao <lihua.zhao at windriver.com>:

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

----------
components: Library (Lib)
messages: 340411
nosy: lzhao
priority: normal
pull_requests: 12787
severity: normal
status: open
title: MAP_SHARED isn't proper for anonymous mappings for VxWorks
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36648>
_______________________________________


More information about the New-bugs-announce mailing list