Skip to content

Commit dcced7b

Browse files
committed
add HWCAP consts
1 parent d2ece10 commit dcced7b

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

libc-test/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,6 +2702,9 @@ fn test_freebsd(target: &str) {
27022702
// Added in FreeBSD 14.2
27032703
"SO_SPLICE" if Some(14) > freebsd_ver => true,
27042704

2705+
// Added in FreeBSD 15
2706+
"AT_HWCAP3" | "AT_HWCAP4" if Some(15) > freebsd_ver => true,
2707+
27052708
_ => false,
27062709
}
27072710
});
@@ -4584,6 +4587,9 @@ fn test_linux(target: &str) {
45844587
// FIXME(linux): Value changed in 6.14
45854588
"SECURE_ALL_BITS" | "SECURE_ALL_LOCKS" => true,
45864589

4590+
// FIXME(linux): Requires >= 6.9 kernel headers.
4591+
"AT_HWCAP3" | "AT_HWCAP4" => true,
4592+
45874593
_ => false,
45884594
}
45894595
});

libc-test/semver/android.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ AT_FLAGS
150150
AT_GID
151151
AT_HWCAP
152152
AT_HWCAP2
153+
AT_HWCAP3
154+
AT_HWCAP4
153155
AT_IGNORE
154156
AT_MINSIGSTKSZ
155157
AT_NOTELF

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,6 +3708,8 @@ pub const AT_HWCAP: c_int = 25;
37083708
pub const AT_HWCAP2: c_int = 26;
37093709
pub const AT_USRSTACKBASE: c_int = 35;
37103710
pub const AT_USRSTACKLIM: c_int = 36;
3711+
pub const AT_HWCAP3: c_int = 38;
3712+
pub const AT_HWCAP4: c_int = 39;
37113713

37123714
pub const TABDLY: crate::tcflag_t = 0x00000004;
37133715
pub const TAB0: crate::tcflag_t = 0x00000000;

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,6 +3473,8 @@ pub const AT_RANDOM: c_ulong = 25;
34733473
pub const AT_HWCAP2: c_ulong = 26;
34743474
pub const AT_RSEQ_FEATURE_SIZE: c_ulong = 27;
34753475
pub const AT_RSEQ_ALIGN: c_ulong = 28;
3476+
pub const AT_HWCAP3: c_ulong = 29;
3477+
pub const AT_HWCAP4: c_ulong = 30;
34763478
pub const AT_EXECFN: c_ulong = 31;
34773479
pub const AT_MINSIGSTKSZ: c_ulong = 51;
34783480

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,8 @@ pub const AT_BASE_PLATFORM: c_ulong = 24;
25132513
pub const AT_RANDOM: c_ulong = 25;
25142514
pub const AT_HWCAP2: c_ulong = 26;
25152515

2516+
pub const AT_HWCAP3: c_ulong = 29;
2517+
pub const AT_HWCAP4: c_ulong = 30;
25162518
pub const AT_EXECFN: c_ulong = 31;
25172519

25182520
// defined in arch/<arch>/include/uapi/asm/auxvec.h but has the same value

0 commit comments

Comments
 (0)