[issue26836] Add memfd_create to os module
Pedro Lacerda
report at bugs.python.org
Thu Jun 16 02:00:59 EDT 2016
Pedro Lacerda added the comment:
Maybe useful at mmapmodule.c replacing
/* SVR4 method to map anonymous memory is to open /dev/zero */
fd = devzero = _Py_open("/dev/zero", O_RDWR);
tagname is unused at UNIX version of new_mmap_object() so if provided something like could be added for Linux only
fd = memfd_create(tagname, O_RDWR);
----------
nosy: +Pedro Lacerda
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26836>
_______________________________________
More information about the Python-bugs-list
mailing list