Skip to content

Commit

Permalink
sparc: Alias stat*64
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Sep 7, 2023
1 parent 721f07b commit 28e4913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ cfg_if! {
}
}
cfg_if! {
if #[cfg(any(target_arch = "arm", target_arch="riscv32"))] {
if #[cfg(any(target_arch = "arm", target_arch="riscv32", target_arch="sparc"))] {
pub type stat64 = stat;
}
}
cfg_if! {
if #[cfg(target_arch = "riscv32")] {
if #[cfg(any(target_arch = "riscv32", target_arch="sparc"))] {
pub type statvfs64 = statvfs;
pub type statfs64 = statfs;
}
Expand Down
51 changes: 0 additions & 51 deletions src/unix/linux_like/linux/gnu/b32/sparc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,42 +79,6 @@ s! {
__unused: [::c_long; 2],
}

pub struct stat64 {
pub st_dev: ::dev_t,
pub st_ino: ::ino64_t,
pub st_mode: ::mode_t,
pub st_nlink: ::nlink_t,
pub st_uid: ::uid_t,
pub st_gid: ::gid_t,
pub st_rdev: ::dev_t,
__pad2: ::c_ushort,
pub st_size: ::off64_t,
pub st_blksize: ::blksize_t,
pub st_blocks: ::blkcnt64_t,
pub st_atime: ::time_t,
pub st_atime_nsec: ::c_long,
pub st_mtime: ::time_t,
pub st_mtime_nsec: ::c_long,
pub st_ctime: ::time_t,
pub st_ctime_nsec: ::c_long,
__reserved: [::c_long; 2],
}

pub struct statfs64 {
pub f_type: ::__fsword_t,
pub f_bsize: ::__fsword_t,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_fsid: ::fsid_t,
pub f_namelen: ::__fsword_t,
pub f_frsize: ::__fsword_t,
pub f_flags: ::__fsword_t,
pub f_spare: [::__fsword_t; 4],
}

pub struct statvfs {
pub f_bsize: ::c_ulong,
pub f_frsize: ::c_ulong,
Expand All @@ -130,21 +94,6 @@ s! {
__f_spare: [::c_int; 6],
}

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,
pub f_flag: ::c_ulong,
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}

pub struct ipc_perm {
pub __key: ::key_t,
pub uid: ::uid_t,
Expand Down

0 comments on commit 28e4913

Please sign in to comment.