Skip to content

Commit 3408c58

Browse files
committed
Fix AArch64 types in std::os::raw
1 parent c3dedd0 commit 3408c58

File tree

1 file changed

+8
-8
lines changed
  • library/std/src/os/linux

1 file changed

+8
-8
lines changed

library/std/src/os/linux/raw.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,17 @@ mod arch {
247247
use crate::os::raw::{c_int, c_long};
248248

249249
#[stable(feature = "raw_ext", since = "1.1.0")]
250-
pub type blkcnt_t = u64;
250+
pub type blkcnt_t = i64;
251251
#[stable(feature = "raw_ext", since = "1.1.0")]
252-
pub type blksize_t = u64;
252+
pub type blksize_t = i32;
253253
#[stable(feature = "raw_ext", since = "1.1.0")]
254254
pub type ino_t = u64;
255255
#[stable(feature = "raw_ext", since = "1.1.0")]
256-
pub type nlink_t = u64;
256+
pub type nlink_t = u32;
257257
#[stable(feature = "raw_ext", since = "1.1.0")]
258-
pub type off_t = u64;
258+
pub type off_t = i64;
259259
#[stable(feature = "raw_ext", since = "1.1.0")]
260-
pub type time_t = i64;
260+
pub type time_t = c_long;
261261

262262
#[repr(C)]
263263
#[derive(Clone)]
@@ -288,15 +288,15 @@ mod arch {
288288
#[stable(feature = "raw_ext", since = "1.1.0")]
289289
pub st_blocks: i64,
290290
#[stable(feature = "raw_ext", since = "1.1.0")]
291-
pub st_atime: i64,
291+
pub st_atime: time_t,
292292
#[stable(feature = "raw_ext", since = "1.1.0")]
293293
pub st_atime_nsec: c_long,
294294
#[stable(feature = "raw_ext", since = "1.1.0")]
295-
pub st_mtime: i64,
295+
pub st_mtime: time_t,
296296
#[stable(feature = "raw_ext", since = "1.1.0")]
297297
pub st_mtime_nsec: c_long,
298298
#[stable(feature = "raw_ext", since = "1.1.0")]
299-
pub st_ctime: i64,
299+
pub st_ctime: time_t,
300300
#[stable(feature = "raw_ext", since = "1.1.0")]
301301
pub st_ctime_nsec: c_long,
302302
#[stable(feature = "raw_ext", since = "1.1.0")]

0 commit comments

Comments
 (0)