File tree Expand file tree Collapse file tree 6 files changed +94
-7
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 6 files changed +94
-7
lines changed Original file line number Diff line number Diff line change
1
+ pub type c_long = i32 ;
2
+ pub type c_ulong = u32 ;
3
+ pub type c_char = u8 ;
4
+
5
+ // should be pub(crate), but that requires Rust 1.18.0
6
+ cfg_if ! {
7
+ if #[ cfg( libc_const_size_of) ] {
8
+ #[ doc( hidden) ]
9
+ pub const _ALIGNBYTES: usize = :: mem:: size_of:: <:: c_double>( ) - 1 ;
10
+ } else {
11
+ #[ doc( hidden) ]
12
+ pub const _ALIGNBYTES: usize = 8 - 1 ;
13
+ }
14
+ }
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
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 c_char = i8 ;
4
+
5
+ #[ doc( hidden) ]
6
+ pub const _ALIGNBYTES: usize = 7 ;
7
+
8
+ pub const _MAX_PAGE_SHIFT: u32 = 14 ;
Original file line number Diff line number Diff line change @@ -1648,18 +1648,33 @@ cfg_if! {
1648
1648
}
1649
1649
1650
1650
cfg_if ! {
1651
- if #[ cfg( target_arch = "x86" ) ] {
1652
- mod x86;
1653
- pub use self :: x86:: * ;
1654
- } else if #[ cfg( target_arch = "x86_64" ) ] {
1655
- mod x86_64;
1656
- pub use self :: x86_64:: * ;
1657
- } else if #[ cfg( target_arch = "aarch64" ) ] {
1651
+ if #[ cfg( target_arch = "aarch64" ) ] {
1658
1652
mod aarch64;
1659
1653
pub use self :: aarch64:: * ;
1654
+ } else if #[ cfg( target_arch = "arm" ) ] {
1655
+ mod arm;
1656
+ pub use self :: arm:: * ;
1657
+ } else if #[ cfg( target_arch = "mips64" ) ] {
1658
+ mod mips64;
1659
+ pub use self :: mips64:: * ;
1660
+ } else if #[ cfg( target_arch = "powerpc" ) ] {
1661
+ mod powerpc;
1662
+ pub use self :: powerpc:: * ;
1663
+ } else if #[ cfg( target_arch = "powerpc64" ) ] {
1664
+ mod powerpc64;
1665
+ pub use self :: powerpc64:: * ;
1666
+ } else if #[ cfg( target_arch = "riscv64" ) ] {
1667
+ mod riscv64;
1668
+ pub use self :: riscv64:: * ;
1660
1669
} else if #[ cfg( target_arch = "sparc64" ) ] {
1661
1670
mod sparc64;
1662
1671
pub use self :: sparc64:: * ;
1672
+ } else if #[ cfg( target_arch = "x86" ) ] {
1673
+ mod x86;
1674
+ pub use self :: x86:: * ;
1675
+ } else if #[ cfg( target_arch = "x86_64" ) ] {
1676
+ mod x86_64;
1677
+ pub use self :: x86_64:: * ;
1663
1678
} else {
1664
1679
// Unknown target_arch
1665
1680
}
Original file line number Diff line number Diff line change
1
+ pub type c_long = i32 ;
2
+ pub type c_ulong = u32 ;
3
+ pub type c_char = u8 ;
4
+
5
+ // should be pub(crate), but that requires Rust 1.18.0
6
+ cfg_if ! {
7
+ if #[ cfg( libc_const_size_of) ] {
8
+ #[ doc( hidden) ]
9
+ pub const _ALIGNBYTES: usize = :: mem:: size_of:: <:: c_double>( ) - 1 ;
10
+ } else {
11
+ #[ doc( hidden) ]
12
+ pub const _ALIGNBYTES: usize = 8 - 1 ;
13
+ }
14
+ }
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
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 c_char = u8 ;
4
+
5
+ // should be pub(crate), but that requires Rust 1.18.0
6
+ cfg_if ! {
7
+ if #[ cfg( libc_const_size_of) ] {
8
+ #[ doc( hidden) ]
9
+ pub const _ALIGNBYTES: usize = :: mem:: size_of:: <:: c_long>( ) - 1 ;
10
+ } else {
11
+ #[ doc( hidden) ]
12
+ pub const _ALIGNBYTES: usize = 8 - 1 ;
13
+ }
14
+ }
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
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 c_char = u8 ;
4
+
5
+ // should be pub(crate), but that requires Rust 1.18.0
6
+ cfg_if ! {
7
+ if #[ cfg( libc_const_size_of) ] {
8
+ #[ doc( hidden) ]
9
+ pub const _ALIGNBYTES: usize = :: mem:: size_of:: <:: c_long>( ) - 1 ;
10
+ } else {
11
+ #[ doc( hidden) ]
12
+ pub const _ALIGNBYTES: usize = 8 - 1 ;
13
+ }
14
+ }
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
You can’t perform that action at this time.
0 commit comments