Repository navigation
android: add missing AArch64 syscall constants - #5743
Merged
JohnTitor merged 1 commit intoNov 23, 2026
Merged
Conversation
Collaborator
|
Some changes occurred in an Android module cc @maurer |
JohnTitor
reviewed
Nov 22, 2026
| pub const SYS_lsm_get_self_attr: c_long = 459; | ||
| pub const SYS_lsm_set_self_attr: c_long = 460; | ||
| pub const SYS_lsm_list_modules: c_long = 461; | ||
| pub const SYS_syscalls: c_long = 451; |
Member
There was a problem hiding this comment.
This should also be updated (and doc comment is needed as per https://github.com/rust-lang/libc/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
Contributor
Author
There was a problem hiding this comment.
Thanks! Updated SYS_syscalls to 462 and added the required doc comment in 860bfe0.
JohnTitor
approved these changes
Nov 23, 2026
evenking4
force-pushed
the
android-aarch64-missing-syscalls
branch
from
November 23, 2026 07:28
860bfe0 to
17d683c
Compare
Add 22 missing Android/AArch64 syscall constants available in NDK r27 and update SYS_syscalls to 462. Sources: https://android.googlesource.com/platform/bionic/+/361ba86734fb2821a6adcfdf775db8abd04e0de0/libc/kernel/uapi/asm-generic/unistd.h https://android.googlesource.com/platform/bionic/+/361ba86734fb2821a6adcfdf775db8abd04e0de0/libc/include/bits/glibc-syscalls.h
evenking4
force-pushed
the
android-aarch64-missing-syscalls
branch
from
November 23, 2026 08:04
17d683c to
4f28420
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
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
Add 22 missing
SYS_*constants for Android/AArch64, includingSYS_statfsandSYS_fstatfs, and register them in the architecture-specificsemver list. All added constants are available in NDK r27 and are covered
by the existing ctest checks.
Also update
SYS_syscallsfrom 451 to 462 to match NDK r27 and add thestandard documentation noting that its value may change across releases.
Bionic definitions:
Testing
Built
libc-testwith official NDK r27 (27.0.12077973), targetingaarch64-linux-androidat API 24, and ran the tests on Android 16ARM64 Cuttlefish.
Default features,
--no-default-features, and--features extra_traitsall passed, with 6,643 ctest checks per configuration.
ci/style.py, the Android target compilation check, andgit diff --checkalso passed.Checklist
libc-test/semverhave been updated.SYS_syscallshas the standard documentation for values that may change across releases.aarch64-linux-androidas described above.@rustbot label +stable-nominated