Skip to content

Commit e5b7775

Browse files
brad0JohnTitor
authored andcommitted
add HWCAP consts
1 parent 0e6b04e commit e5b7775

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

libc-test/build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,9 @@ fn test_android(target: &str) {
21302130
// FIXME(android): Requires >= 6.12 kernel headers.
21312131
"SOF_TIMESTAMPING_OPT_RX_FILTER" => true,
21322132

2133+
// FIXME(android): Requires >= 6.9 kernel headers.
2134+
"AT_HWCAP3" | "AT_HWCAP4" => true,
2135+
21332136
_ => false,
21342137
}
21352138
});
@@ -2703,6 +2706,9 @@ fn test_freebsd(target: &str) {
27032706
// Added in FreeBSD 14.2
27042707
"SO_SPLICE" if Some(14) > freebsd_ver => true,
27052708

2709+
// Added in FreeBSD 15
2710+
"AT_HWCAP3" | "AT_HWCAP4" if Some(15) > freebsd_ver => true,
2711+
27062712
_ => false,
27072713
}
27082714
});
@@ -4586,6 +4592,9 @@ fn test_linux(target: &str) {
45864592
// FIXME(linux): Value changed in 6.14
45874593
"SECURE_ALL_BITS" | "SECURE_ALL_LOCKS" => true,
45884594

4595+
// FIXME(linux): Requires >= 6.9 kernel headers.
4596+
"AT_HWCAP3" | "AT_HWCAP4" => true,
4597+
45894598
_ => false,
45904599
}
45914600
});

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

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ AT_FLAGS
9696
AT_GID
9797
AT_HWCAP
9898
AT_HWCAP2
99+
AT_HWCAP3
100+
AT_HWCAP4
99101
AT_NCPUS
100102
AT_NOTELF
101103
AT_NULL

libc-test/semver/linux.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ AT_FLAGS
168168
AT_GID
169169
AT_HWCAP
170170
AT_HWCAP2
171+
AT_HWCAP3
172+
AT_HWCAP4
171173
AT_IGNORE
172174
AT_MINSIGSTKSZ
173175
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)