Skip to content
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
4 changes: 4 additions & 0 deletions libc-test/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,9 @@ fn test_android(t: &Target) {
// FIXME(android): Requires >= 6.9 kernel headers.
"AT_HWCAP3" | "AT_HWCAP4" | "RWF_NOAPPEND" => true,

// FIXME(android): Requires >= 6.10 kernel headers.
"BCACHEFS_SUPER_MAGIC" => true,

// FIXME(android): Requires >= 6.11 kernel headers.
"RWF_ATOMIC" => true,

Expand Down Expand Up @@ -4824,6 +4827,7 @@ fn test_linux(t: &Target) {
// Recent additions
"AT_HWCAP3" | "AT_HWCAP4" if old_musl => true,
"AT_HWCAP3" | "AT_HWCAP4" => kernel < (6, 9),
"BCACHEFS_SUPER_MAGIC" => kernel < (6, 10),
"PTRACE_SET_SYSCALL_INFO" => kernel < (6, 16),
"TLS_INFO_TX_MAX_PAYLOAD_LEN" | "TLS_INFO_MAX" => kernel < (6, 19),

Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ AT_STATX_FORCE_SYNC
AT_STATX_SYNC_AS_STAT
AT_STATX_SYNC_TYPE
AUTOFS_SUPER_MAGIC
BCACHEFS_SUPER_MAGIC
BINDERFS_SUPER_MAGIC
BOOT_TIME
BPF_FS_MAGIC
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ cfg_if! {
pub const AFFS_SUPER_MAGIC: c_long = 0x0000adff;
pub const AFS_SUPER_MAGIC: c_long = 0x5346414f;
pub const AUTOFS_SUPER_MAGIC: c_long = 0x0187;
pub const BCACHEFS_SUPER_MAGIC: c_long = u32_cast_long(0xca451a4e);
pub const BPF_FS_MAGIC: c_long = u32_cast_long(0xcafe4a11);
pub const BTRFS_SUPER_MAGIC: c_long = u32_cast_long(0x9123683e);
pub const CGROUP2_SUPER_MAGIC: c_long = 0x63677270;
Expand Down Expand Up @@ -1633,6 +1634,7 @@ cfg_if! {
pub const AFFS_SUPER_MAGIC: c_uint = 0x0000adff;
pub const AFS_SUPER_MAGIC: c_uint = 0x5346414f;
pub const AUTOFS_SUPER_MAGIC: c_uint = 0x0187;
pub const BCACHEFS_SUPER_MAGIC: c_long = 0xca451a4e;
pub const BPF_FS_MAGIC: c_uint = 0xcafe4a11;
pub const BTRFS_SUPER_MAGIC: c_uint = 0x9123683e;
pub const CGROUP2_SUPER_MAGIC: c_uint = 0x63677270;
Expand Down
Loading