Skip to content

Conversation

blblack
Copy link
Contributor

@blblack blblack commented Aug 19, 2025

Linux already gained the relevant syscalls and consts in #24473

The basic mlock() and munlock() are fairly universal across the *nix world with a consistent interface, but are missing on wasi and windows.

The mlockall() and munlockall() calls are not as widely supported as the basic ones. Notable non-implementers include darwin, haiku, and serenity (and of course wasi and windows again).

mlock2() is Linux-only, as are its MLOCK flags.

@alexrp alexrp self-assigned this Aug 19, 2025
Linux already gained the relevant syscalls and consts in ziglang#24473

The basic mlock() and munlock() are fairly universal across the
*nix world with a consistent interface, but are missing on wasi
and windows.

The mlockall() and munlockall() calls are not as widely supported
as the basic ones.  Notable non-implementers include darwin,
haiku, and serenity (and of course wasi and windows again).

mlock2() is Linux-only, as are its MLOCK flags.
@alexrp alexrp enabled auto-merge (rebase) August 20, 2025 14:52
@alexrp alexrp merged commit 8248597 into ziglang:master Aug 20, 2025
14 checks passed
@blblack blblack deleted the mlockall2 branch August 20, 2025 21:43
@alexrp alexrp removed their assignment Aug 21, 2025
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.

2 participants