Skip to content

Commit ceb72f6

Browse files
authored
Merge pull request #4338 from taiki-e/android-32-getauxval
android: Add getauxval for 32-bit targets
2 parents 4a34937 + a42eea3 commit ceb72f6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,6 +3338,7 @@ fwrite_unlocked
33383338
gai_strerror
33393339
genlmsghdr
33403340
getaddrinfo
3341+
getauxval
33413342
getchar
33423343
getchar_unlocked
33433344
getcwd

src/unix/linux_like/android/b64/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ f! {
305305
}
306306

307307
extern "C" {
308-
pub fn getauxval(type_: c_ulong) -> c_ulong;
309308
pub fn __system_property_wait(
310309
pi: *const crate::prop_info,
311310
__old_serial: u32,

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,6 +4043,8 @@ extern "C" {
40434043

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

4046+
pub fn getauxval(type_: c_ulong) -> c_ulong;
4047+
40464048
/// Only available in API Version 28+
40474049
pub fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t;
40484050
pub fn getentropy(buf: *mut c_void, buflen: size_t) -> c_int;

0 commit comments

Comments
 (0)