File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -1222,6 +1222,9 @@ cfg_if! {
1222
1222
} else if #[ cfg( target_arch = "arm" ) ] {
1223
1223
mod arm;
1224
1224
pub use self :: arm:: * ;
1225
+ } else if #[ cfg( target_arch = "powerpc64" ) ] {
1226
+ mod powerpc64;
1227
+ pub use self :: powerpc64:: * ;
1225
1228
} else {
1226
1229
// Unknown target_arch
1227
1230
}
Original file line number Diff line number Diff line change
1
+ pub type c_long = i64 ;
2
+ pub type c_ulong = u64 ;
3
+ pub type time_t = i64 ;
4
+ pub type suseconds_t = i64 ;
5
+
6
+ s ! {
7
+ pub struct stat {
8
+ pub st_dev: :: dev_t,
9
+ pub st_ino: :: ino_t,
10
+ pub st_mode: :: mode_t,
11
+ pub st_nlink: :: nlink_t,
12
+ pub st_uid: :: uid_t,
13
+ pub st_gid: :: gid_t,
14
+ pub st_rdev: :: dev_t,
15
+ pub st_atime: :: time_t,
16
+ pub st_atime_nsec: :: c_long,
17
+ pub st_mtime: :: time_t,
18
+ pub st_mtime_nsec: :: c_long,
19
+ pub st_ctime: :: time_t,
20
+ pub st_ctime_nsec: :: c_long,
21
+ pub st_size: :: off_t,
22
+ pub st_blocks: :: blkcnt_t,
23
+ pub st_blksize: :: blksize_t,
24
+ pub st_flags: :: fflags_t,
25
+ pub st_gen: :: uint32_t,
26
+ pub st_lspare: :: int32_t,
27
+ pub st_birthtime: :: time_t,
28
+ pub st_birthtime_nsec: :: c_long,
29
+ }
30
+ }
31
+
32
+ // should be pub(crate), but that requires Rust 1.18.0
33
+ #[ doc( hidden) ]
34
+ pub const _ALIGNBYTES: usize = mem:: size_of :: < :: c_long > ( ) - 1 ;
35
+ pub const MAP_32BIT : :: c_int = 0x00080000 ;
You can’t perform that action at this time.
0 commit comments