Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerp64 defines a stat64 but doesn't use it.
Browse files Browse the repository at this point in the history
sunfishcode committed Jan 31, 2025
1 parent e3a1221 commit 2a6826d
Showing 2 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/backend/linux_raw/fs/types.rs
Original file line number Diff line number Diff line change
@@ -697,7 +697,7 @@ pub struct Stat {
pub(crate) __unused4: ffi::c_uint,
pub(crate) __unused5: ffi::c_uint,
}
// This follows `stat64`.
// This follows `stat`. powerpc64 defines a `stat64` but it's not used.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[allow(missing_docs)]
34 changes: 14 additions & 20 deletions src/fs/constants.rs
Original file line number Diff line number Diff line change
@@ -69,16 +69,13 @@ mod tests {
)))]
{
// Check that `Stat` matches `c::stat`.
#[cfg(not(any(
all(linux_raw, target_arch = "powerpc64"),
all(
libc,
any(
all(linux_kernel, target_pointer_width = "64"),
target_os = "hurd",
target_os = "emscripten",
target_os = "l4re",
)
#[cfg(not(all(
libc,
any(
all(linux_kernel, target_pointer_width = "64"),
target_os = "hurd",
target_os = "emscripten",
target_os = "l4re",
)
)))]
{
@@ -155,16 +152,13 @@ mod tests {
}

// Check that `Stat` matches `c::stat64`.
#[cfg(any(
all(linux_raw, target_arch = "powerpc64"),
all(
libc,
any(
all(linux_kernel, target_pointer_width = "64"),
target_os = "hurd",
target_os = "emscripten",
target_os = "l4re",
)
#[cfg(all(
libc,
any(
all(linux_kernel, target_pointer_width = "64"),
target_os = "hurd",
target_os = "emscripten",
target_os = "l4re",
)
))]
{

0 comments on commit 2a6826d

Please sign in to comment.