Skip to content

Add MADV_ZERO for macOS#4924

Merged
JohnTitor merged 1 commit intorust-lang:mainfrom
Thomasdezeeuw:macos-MADV_ZERO
Jan 14, 2026
Merged

Add MADV_ZERO for macOS#4924
JohnTitor merged 1 commit intorust-lang:mainfrom
Thomasdezeeuw:macos-MADV_ZERO

Conversation

@Thomasdezeeuw
Copy link
Contributor

Description

Adds the MADV_ZERO constant for use in madvise(2).

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot label +stable-nominated

@rustbot rustbot added O-macos O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jan 12, 2026
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please squash

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JohnTitor JohnTitor added this pull request to the merge queue Jan 14, 2026
Merged via the queue into rust-lang:main with commit 297f6ac Jan 14, 2026
50 of 51 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the macos-MADV_ZERO branch January 14, 2026 15:45
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Feb 9, 2026
(backport <rust-lang#4924>)
(cherry picked from commit 297f6ac)
@tgross35 tgross35 mentioned this pull request Feb 9, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 9, 2026
(backport <#4924>)
(cherry picked from commit 297f6ac)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-macos O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants