Skip to content

Commit 47fe0c5

Browse files
committed
linux-musl: Specialize struct statfs for s390x
https://git.musl-libc.org/cgit/musl/tree/arch/s390x/bits/statfs.h
1 parent 6e8350e commit 47fe0c5

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/unix/linux_like/linux/musl/b64/s390x.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ s! {
6868
pub st_blocks: crate::blkcnt64_t,
6969
__unused: [c_long; 3],
7070
}
71+
72+
pub struct statfs {
73+
pub f_type: c_uint,
74+
pub f_bsize: c_uint,
75+
pub f_blocks: crate::fsblkcnt_t,
76+
pub f_bfree: crate::fsblkcnt_t,
77+
pub f_bavail: crate::fsblkcnt_t,
78+
pub f_files: crate::fsfilcnt_t,
79+
pub f_ffree: crate::fsfilcnt_t,
80+
pub f_fsid: crate::fsid_t,
81+
pub f_namelen: c_uint,
82+
pub f_frsize: c_uint,
83+
pub f_flags: c_uint,
84+
pub f_spare: [c_uint; 4],
85+
}
7186
}
7287

7388
s_no_extra_traits! {

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ s! {
372372
pub tcpi_snd_wnd: u32,
373373
}
374374

375-
// MIPS implementation is special (see mips arch folders)
376-
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
375+
// MIPS/s390x implementation is special (see arch folders)
376+
#[cfg(not(any(target_arch = "mips", target_arch = "mips64", target_arch = "s390x")))]
377377
pub struct statfs {
378378
pub f_type: c_ulong,
379379
pub f_bsize: c_ulong,

0 commit comments

Comments
 (0)