From 57bfcd8ebbf9ca0ab11f0f1611bc26f486072591 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 28 Jun 2023 19:52:06 +0100 Subject: [PATCH] android 32 bits fix stat struct proposal. close #3285 --- src/unix/linux_like/android/b32/mod.rs | 29 +++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/unix/linux_like/android/b32/mod.rs b/src/unix/linux_like/android/b32/mod.rs index 1f4f796f2a94a..d692899c23fca 100644 --- a/src/unix/linux_like/android/b32/mod.rs +++ b/src/unix/linux_like/android/b32/mod.rs @@ -24,25 +24,24 @@ 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: ::c_ulong, + 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: ::c_ulong, + pub st_size: ::c_ulong, 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: ::c_ulong, + pub st_atime: ::c_ulong, + pub st_atime_nsec: ::c_ulong, + pub st_mtime: ::c_ulong, + pub st_mtime_nsec: ::c_ulong, + pub st_ctime: ::c_ulong, + pub st_ctime_nsec: ::c_ulong, + __unused4: c_ulong, + __unused5: c_ulong, } pub struct stat64 {