Skip to content

android: add missing AArch64 syscall constants - #5743

Merged
JohnTitor merged 1 commit into
rust-lang:mainfrom
evenking4:android-aarch64-missing-syscalls
Nov 23, 2026
Merged

JohnTitor merged 1 commit into
rust-lang:mainfrom
evenking4:android-aarch64-missing-syscalls

Conversation

@evenking4

@evenking4 evenking4 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add 22 missing SYS_* constants for Android/AArch64, including
SYS_statfs and SYS_fstatfs, and register them in the architecture-specific
semver list. All added constants are available in NDK r27 and are covered
by the existing ctest checks.

Also update SYS_syscalls from 451 to 462 to match NDK r27 and add the
standard documentation noting that its value may change across releases.

Bionic definitions:

Testing

Built libc-test with official NDK r27 (27.0.12077973), targeting
aarch64-linux-android at API 24, and ran the tests on Android 16
ARM64 Cuttlefish.

Default features, --no-default-features, and --features extra_traits
all passed, with 6,643 ctest checks per configuration.

ci/style.py, the Android target compilation check, and
git diff --check also passed.

Checklist

  • Relevant tests in libc-test/semver have been updated.
  • Commit messages include permalinks to headers for added or changed API.
  • SYS_syscalls has the standard documentation for values that may change across releases.
  • Tested locally for aarch64-linux-android as described above.

@rustbot label +stable-nominated

@rustbot

rustbot commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in an Android module

cc @maurer

@rustbot rustbot added O-android O-linux O-linux-like O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 17, 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;

@JohnTitor JohnTitor Nov 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Updated SYS_syscalls to 462 and added the required doc comment in 860bfe0.

@JohnTitor JohnTitor left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Could you also squash commits into one?

View changes since this review

@evenking4
evenking4 force-pushed the android-aarch64-missing-syscalls branch from 860bfe0 to 17d683c Compare November 23, 2026 07:28
@evenking4
evenking4 force-pushed the android-aarch64-missing-syscalls branch from 17d683c to 4f28420 Compare November 23, 2026 08:04
@rustbot

rustbot commented Nov 23, 2026

Copy link
Copy Markdown
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.

@JohnTitor
JohnTitor added this pull request to the merge queue Nov 23, 2026
Merged via the queue into rust-lang:main with commit 5e232e7 Nov 23, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-android O-linux O-linux-like O-unix stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants