apple: add KEVENT_FLAG_* constants#5070
Merged
JohnTitor merged 1 commit intorust-lang:mainfrom Apr 22, 2026
Merged
Conversation
These are values for the flag parameter in the Apple-specific `kevent64` syscall: https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/bsd/sys/event.h#L138-L141
kamalmarhubi
added a commit
to kamalmarhubi/nix-rust
that referenced
this pull request
Apr 22, 2026
Add KEvent64, Kevent64Flags, and Kqueue::kevent64 wrapping the kevent64 syscall available on apple platforms. This uses fixed-width 64-bit fields and provides an additional ext field for filter-specific data. The KEVENT_FLAG_* constants are defined locally as libc does not yet expose them (rust-lang/libc#5070).
3 tasks
kamalmarhubi
added a commit
to kamalmarhubi/nix-rust
that referenced
this pull request
Apr 22, 2026
Add KEvent64, Kevent64Flags, and Kqueue::kevent64 wrapping the kevent64 syscall available on apple platforms. This uses fixed-width 64-bit fields and provides an additional ext field for filter-specific data. The KEVENT_FLAG_* constants are defined locally as libc does not yet expose them (rust-lang/libc#5070).
kamalmarhubi
added a commit
to kamalmarhubi/nix-rust
that referenced
this pull request
Apr 22, 2026
Add KEvent64, Kevent64Flags, and Kqueue::kevent64 wrapping the kevent64 syscall available on apple platforms. This uses fixed-width 64-bit fields and provides an additional ext field for filter-specific data. The KEVENT_FLAG_* constants are defined locally as libc does not yet expose them (rust-lang/libc#5070).
JohnTitor
approved these changes
Apr 22, 2026
Contributor
Author
|
Thanks @JohnTitor! It's been a while since I made libc changes; how do you decide when to cut releases? Hoping to land the nix-rust side of this soonish too. edit: also how do backports to the libc-0.2 branch work? edit on the edit: covered in CONTRIBUTING. I'll create the backport PR myself. |
Merged
kamalmarhubi
added a commit
to kamalmarhubi/nix-rust
that referenced
this pull request
Apr 25, 2026
Add KEvent64, Kevent64Flags, and Kqueue::kevent64 wrapping the kevent64 syscall available on apple platforms. This uses fixed-width 64-bit fields and provides an additional ext field for filter-specific data. The KEVENT_FLAG_* constants are defined locally as libc does not yet expose them (rust-lang/libc#5070).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
apple: add KEVENT_FLAG_* constants
These are values for the flag parameter in the Apple-specific
kevent64syscall.
Sources
https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/bsd/sys/event.h#L138-L141
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated