Skip to content

Commit 2ca1e59

Browse files
committed
Hexagon libstd: update type defs
1 parent ac48e62 commit 2ca1e59

File tree

1 file changed

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

1 file changed

+24
-24
lines changed

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

+24-24
Original file line numberDiff line numberDiff line change
@@ -170,63 +170,63 @@ mod arch {
170170

171171
#[cfg(target_arch = "hexagon")]
172172
mod arch {
173-
use crate::os::raw::{c_int, c_long, c_longlong, c_ulonglong};
173+
use crate::os::raw::{c_int, c_long, c_uint};
174174

175175
#[stable(feature = "raw_ext", since = "1.1.0")]
176-
pub type blkcnt_t = c_longlong;
176+
pub type blkcnt_t = i64;
177177
#[stable(feature = "raw_ext", since = "1.1.0")]
178178
pub type blksize_t = c_long;
179179
#[stable(feature = "raw_ext", since = "1.1.0")]
180-
pub type ino_t = c_ulonglong;
180+
pub type ino_t = u64;
181181
#[stable(feature = "raw_ext", since = "1.1.0")]
182182
pub type nlink_t = c_uint;
183183
#[stable(feature = "raw_ext", since = "1.1.0")]
184-
pub type off_t = c_longlong;
184+
pub type off_t = i64;
185185
#[stable(feature = "raw_ext", since = "1.1.0")]
186-
pub type time_t = c_long;
186+
pub type time_t = i64;
187187

188188
#[repr(C)]
189189
#[derive(Clone)]
190190
#[stable(feature = "raw_ext", since = "1.1.0")]
191191
pub struct stat {
192192
#[stable(feature = "raw_ext", since = "1.1.0")]
193-
pub st_dev: ::dev_t,
193+
pub st_dev: u64,
194194
#[stable(feature = "raw_ext", since = "1.1.0")]
195-
pub st_ino: ::c_ulonglong,
195+
pub st_ino: u64,
196196
#[stable(feature = "raw_ext", since = "1.1.0")]
197-
pub st_mode: ::c_uint,
197+
pub st_mode: u32,
198198
#[stable(feature = "raw_ext", since = "1.1.0")]
199-
pub st_nlink: ::c_uint,
199+
pub st_nlink: u32,
200200
#[stable(feature = "raw_ext", since = "1.1.0")]
201-
pub st_uid: ::c_uint,
201+
pub st_uid: u32,
202202
#[stable(feature = "raw_ext", since = "1.1.0")]
203-
pub st_gid: ::c_uint,
203+
pub st_gid: u32,
204204
#[stable(feature = "raw_ext", since = "1.1.0")]
205-
pub st_rdev: ::c_ulonglong,
205+
pub st_rdev: u64,
206206
#[stable(feature = "raw_ext", since = "1.1.0")]
207-
pub __pad1: ::c_ulong,
207+
pub __pad1: u32,
208208
#[stable(feature = "raw_ext", since = "1.1.0")]
209-
pub st_size: ::c_longlong,
209+
pub st_size: i64,
210210
#[stable(feature = "raw_ext", since = "1.1.0")]
211-
pub st_blksize: ::blksize_t,
211+
pub st_blksize: i32,
212212
#[stable(feature = "raw_ext", since = "1.1.0")]
213-
pub __pad2: ::c_int,
213+
pub __pad2: i32,
214214
#[stable(feature = "raw_ext", since = "1.1.0")]
215-
pub st_blocks: ::blkcnt_t,
215+
pub st_blocks: i64,
216216
#[stable(feature = "raw_ext", since = "1.1.0")]
217-
pub st_atime: ::time_t,
217+
pub st_atime: i64,
218218
#[stable(feature = "raw_ext", since = "1.1.0")]
219-
pub st_atime_nsec: ::c_long,
219+
pub st_atime_nsec: c_long,
220220
#[stable(feature = "raw_ext", since = "1.1.0")]
221-
pub st_mtime: ::time_t,
221+
pub st_mtime: i64,
222222
#[stable(feature = "raw_ext", since = "1.1.0")]
223-
pub st_mtime_nsec: ::c_long,
223+
pub st_mtime_nsec: c_long,
224224
#[stable(feature = "raw_ext", since = "1.1.0")]
225-
pub st_ctime: ::time_t,
225+
pub st_ctime: i64,
226226
#[stable(feature = "raw_ext", since = "1.1.0")]
227-
pub st_ctime_nsec: ::c_long,
227+
pub st_ctime_nsec: c_long,
228228
#[stable(feature = "raw_ext", since = "1.1.0")]
229-
pub __pad3: [::c_int; 2],
229+
pub __pad3: [c_int; 2],
230230
}
231231
}
232232

0 commit comments

Comments
 (0)