Skip to content

Enable mmap for WASI if it supports the mman header#1922

Closed
zebreus wants to merge 1 commit intoabseil:masterfrom
zebreus:master
Closed

Enable mmap for WASI if it supports the mman header#1922
zebreus wants to merge 1 commit intoabseil:masterfrom
zebreus:master

Conversation

@zebreus
Copy link
Copy Markdown
Contributor

@zebreus zebreus commented Aug 15, 2025

#1509 completely removed the mmap support when targeting WASI. wasi-libc supports an optional emulated mmap implementation if _WASI_EMULATED_MMAN is set. Emulated mmap calls in wasi-libc come with a few restrictions, but users are aware of them as the feature is opt-in.

This PR enables mmap support for WASI if _WASI_EMULATED_MMAN is defined.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Aug 15, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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

Successfully merging this pull request may close these issues.

1 participant