Skip to content

android 32 bits fix stat struct proposal. #3286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions src/unix/linux_like/android/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,47 +25,46 @@ s! {
}

pub struct stat {
pub st_dev: ::c_ulonglong,
__pad0: [::c_uchar; 4],
__st_ino: ::ino_t,
pub st_mode: ::c_uint,
pub st_dev: ::dev_t,
pub st_ino: ::ino_t,
pub st_mode: ::c_ushort,
pub st_nlink: ::nlink_t,
pub st_uid: ::uid_t,
pub st_gid: ::gid_t,
pub st_rdev: ::c_ulonglong,
__pad3: [::c_uchar; 4],
pub st_size: ::c_longlong,
pub st_rdev: ::dev_t,
pub st_size: ::off_t,
pub st_blksize: ::blksize_t,
pub st_blocks: ::c_ulonglong,
pub st_atime: ::c_long,
pub st_atime_nsec: ::c_long,
pub st_mtime: ::c_long,
pub st_mtime_nsec: ::c_long,
pub st_ctime: ::c_long,
pub st_ctime_nsec: ::c_long,
pub st_ino: ::c_ulonglong,
pub st_blocks: ::blkcnt_t,
pub st_atime: ::time_t,
pub st_atime_nsec: ::c_ulong,
pub st_mtime: ::time_t,
pub st_mtime_nsec: ::c_ulong,
pub st_ctime: ::time_t,
pub st_ctime_nsec: ::c_ulong,
__unused4: c_ulong,
__unused5: c_ulong,
}

pub struct stat64 {
pub st_dev: ::c_ulonglong,
pub st_dev: ::dev_t,
__pad0: [::c_uchar; 4],
__st_ino: ::ino_t,
pub st_mode: ::c_uint,
pub st_nlink: ::nlink_t,
pub st_uid: ::uid_t,
pub st_gid: ::gid_t,
pub st_rdev: ::c_ulonglong,
pub st_rdev: ::dev_t,
__pad3: [::c_uchar; 4],
pub st_size: ::c_longlong,
pub st_size: ::off_t,
pub st_blksize: ::blksize_t,
pub st_blocks: ::c_ulonglong,
pub st_atime: ::c_long,
pub st_blocks: ::blkcnt_t,
pub st_atime: ::time_t,
pub st_atime_nsec: ::c_long,
pub st_mtime: ::c_long,
pub st_mtime: ::time_t,
pub st_mtime_nsec: ::c_long,
pub st_ctime: ::c_long,
pub st_ctime: ::time_t,
pub st_ctime_nsec: ::c_long,
pub st_ino: ::c_ulonglong,
pub st_ino: ::dev_t,
}

pub struct statfs64 {
Expand Down
Loading