Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MAP_FIXED mode #21

Open
danburkert opened this issue Apr 4, 2016 · 4 comments
Open

Add MAP_FIXED mode #21

danburkert opened this issue Apr 4, 2016 · 4 comments

Comments

@danburkert
Copy link
Owner

Add a construction option for creating MAP_FIXED memory maps at a known memory location. CC #20 .

@darfink
Copy link

darfink commented Dec 11, 2016

I was thinking about implementing this but saw that CreateFileMappingW is used on Windows for anonymous maps. Is there any specific reason VirtualAlloc is not used instead?

@darfink
Copy link

darfink commented Jun 9, 2017

Is it possible for this to be implemented in before the crate evaluation? Right now this is the only missing feature, preventing me from publishing my detour library.

I've been constrained to retep998's unpublished fork of rust-mmap.

As previously mentioned I could go on and try to implement this myself but I believe there are some underlying reasons as to why CreateFileMapping is used on Windows (IPC?).

@dtolnay
Copy link

dtolnay commented Jul 31, 2017

Is this something that can be added backward compatibly after 1.0?

@danburkert
Copy link
Owner Author

Yes, as I noted in #48 (comment) I think we can do this backwards compatibly post 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants