|
2 | 2 |
|
3 | 3 | pub type nlink_t = u64; |
4 | 4 | pub type dev_t = u64; |
5 | | -pub type ino_t = ::c_ulong; |
| 5 | +pub type ino_t = u64; |
6 | 6 | pub type shmatt_t = ::c_uint; |
7 | 7 |
|
8 | 8 | s! { |
@@ -218,6 +218,40 @@ s! { |
218 | 218 | /// kthread flag. |
219 | 219 | pub ki_tdflags: ::c_long, |
220 | 220 | } |
| 221 | + |
| 222 | + pub struct stat { |
| 223 | + pub st_dev: ::dev_t, |
| 224 | + pub st_ino: ::ino_t, |
| 225 | + pub st_nlink: ::nlink_t, |
| 226 | + pub st_mode: ::mode_t, |
| 227 | + st_padding0: i16, |
| 228 | + pub st_uid: ::uid_t, |
| 229 | + pub st_gid: ::gid_t, |
| 230 | + st_padding1: i32, |
| 231 | + pub st_rdev: ::dev_t, |
| 232 | + #[cfg(target_arch = "x86")] |
| 233 | + st_atim_ext: i32, |
| 234 | + pub st_atime: ::time_t, |
| 235 | + pub st_atime_nsec: ::c_long, |
| 236 | + #[cfg(target_arch = "x86")] |
| 237 | + st_mtim_ext: i32, |
| 238 | + pub st_mtime: ::time_t, |
| 239 | + pub st_mtime_nsec: ::c_long, |
| 240 | + #[cfg(target_arch = "x86")] |
| 241 | + st_ctim_ext: i32, |
| 242 | + pub st_ctime: ::time_t, |
| 243 | + pub st_ctime_nsec: ::c_long, |
| 244 | + #[cfg(target_arch = "x86")] |
| 245 | + st_btim_ext: i32, |
| 246 | + pub st_birthtime: ::time_t, |
| 247 | + pub st_birthtime_nsec: ::c_long, |
| 248 | + pub st_size: ::off_t, |
| 249 | + pub st_blocks: ::blkcnt_t, |
| 250 | + pub st_blksize: ::blksize_t, |
| 251 | + pub st_flags: ::fflags_t, |
| 252 | + pub st_gen: u64, |
| 253 | + pub st_spare: [u64; 10], |
| 254 | + } |
221 | 255 | } |
222 | 256 |
|
223 | 257 | s_no_extra_traits! { |
@@ -488,15 +522,6 @@ extern "C" { |
488 | 522 | pub fn basename(path: *mut ::c_char) -> *mut ::c_char; |
489 | 523 | } |
490 | 524 |
|
491 | | -cfg_if! { |
492 | | - if #[cfg(any(target_arch = "x86_64", |
493 | | - target_arch = "aarch64", |
494 | | - target_arch = "riscv64"))] { |
495 | | - mod b64; |
496 | | - pub use self::b64::*; |
497 | | - } |
498 | | -} |
499 | | - |
500 | 525 | cfg_if! { |
501 | 526 | if #[cfg(target_arch = "x86_64")] { |
502 | 527 | mod x86_64; |
|
0 commit comments