Skip to content

Commit 911eb6c

Browse files
committed
risv32: alias statvfs64
1 parent 89eb7d2 commit 911eb6c

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ cfg_if! {
4545
pub type stat64 = stat;
4646
}
4747
}
48+
cfg_if! {
49+
if #[cfg(target_arch = "riscv32")] {
50+
pub type statvfs64 = statvfs;
51+
}
52+
}
4853

4954
s! {
5055
pub struct stat {

src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,6 @@ s! {
111111
pub __f_spare: [::c_int; 6],
112112
}
113113

114-
pub struct statvfs64 {
115-
pub f_bsize: ::c_ulong,
116-
pub f_frsize: ::c_ulong,
117-
pub f_blocks: ::fsblkcnt64_t,
118-
pub f_bfree: ::fsblkcnt64_t,
119-
pub f_bavail: ::fsblkcnt64_t,
120-
pub f_files: ::fsfilcnt64_t,
121-
pub f_ffree: ::fsfilcnt64_t,
122-
pub f_favail: ::fsfilcnt64_t,
123-
pub f_fsid: ::c_ulong,
124-
pub f_flag: ::c_ulong,
125-
pub f_namemax: ::c_ulong,
126-
pub __f_spare: [::c_int; 6],
127-
}
128-
129114
pub struct siginfo_t {
130115
pub si_signo: ::c_int,
131116
pub si_errno: ::c_int,

0 commit comments

Comments
 (0)