Skip to content

mmap is not working on linux #25

@pippocao

Description

@pippocao

see this code in memory_map_posix.cpp
result.real_data_ = mmap(NULL, real_mapping_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, real_mapping_offset);

MAP_PRIVATE
Create a private copy-on-write mapping. Updates to the
mapping are not visible to other processes mapping the
same file, and are not carried through to the underlying
file. It is unspecified whether changes made to the file
after the mmap() call are visible in the mapped region.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions