Skip to content

android: Add getauxval for 32-bit targets #4338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3329,6 +3329,7 @@ fwrite_unlocked
gai_strerror
genlmsghdr
getaddrinfo
getauxval
getchar
getchar_unlocked
getcwd
Expand Down
1 change: 0 additions & 1 deletion src/unix/linux_like/android/b64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ f! {
}

extern "C" {
pub fn getauxval(type_: c_ulong) -> c_ulong;
pub fn __system_property_wait(
pi: *const crate::prop_info,
__old_serial: u32,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4030,6 +4030,8 @@ extern "C" {

pub fn gettid() -> crate::pid_t;

pub fn getauxval(type_: c_ulong) -> c_ulong;

/// Only available in API Version 28+
pub fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t;
pub fn getentropy(buf: *mut c_void, buflen: size_t) -> c_int;
Expand Down
Loading