Skip to content

Commit

Permalink
arm: clean stat*64 aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Sep 7, 2023
1 parent 28e4913 commit 9c7fc3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
18 changes: 0 additions & 18 deletions src/unix/linux_like/linux/gnu/b32/arm/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
pub type c_char = u8;
pub type wchar_t = u32;

pub type statfs64 = statfs;

s! {
pub struct sigaction {
pub sa_sigaction: ::sighandler_t,
Expand Down Expand Up @@ -57,22 +55,6 @@ s! {
__unused2: ::c_ulong
}

pub struct statvfs64 {
pub f_bsize: ::c_ulong,
pub f_frsize: ::c_ulong,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_favail: u64,
pub f_fsid: ::c_ulong,
__f_unused: ::c_int,
pub f_flag: ::c_ulong,
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}

pub struct shmid_ds {
pub shm_perm: ::ipc_perm,
pub shm_segsz: ::size_t,
Expand Down
6 changes: 1 addition & 5 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ cfg_if! {
cfg_if! {
if #[cfg(any(target_arch = "arm", target_arch="riscv32", target_arch="sparc"))] {
pub type stat64 = stat;
}
}
cfg_if! {
if #[cfg(any(target_arch = "riscv32", target_arch="sparc"))] {
pub type statvfs64 = statvfs;
pub type statfs64 = statfs;
pub type statvfs64 = statvfs;
}
}

Expand Down

0 comments on commit 9c7fc3b

Please sign in to comment.