File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ cfg_if! {
12
12
pub const _ALIGNBYTES: usize = 8 - 1 ;
13
13
}
14
14
}
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
Original file line number Diff line number Diff line change @@ -1297,8 +1297,9 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
1297
1297
pub const IFF_LINK2 : :: c_int = 0x4000 ; // per link layer defined bit
1298
1298
pub const IFF_MULTICAST : :: c_int = 0x8000 ; // supports multicast
1299
1299
1300
- pub const PTHREAD_STACK_MIN : :: size_t = 4096 ;
1301
- pub const SIGSTKSZ : :: size_t = 28672 ;
1300
+ pub const PTHREAD_STACK_MIN : :: size_t = ( 1_usize << _MAX_PAGE_SHIFT) ;
1301
+ pub const MINSIGSTKSZ : :: size_t = ( 3_usize << _MAX_PAGE_SHIFT) ;
1302
+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + ( 1_usize << _MAX_PAGE_SHIFT) * 4 ;
1302
1303
1303
1304
pub const PT_FIRSTMACH : :: c_int = 32 ;
1304
1305
@@ -1437,6 +1438,9 @@ cfg_if! {
1437
1438
} else if #[ cfg( target_arch = "aarch64" ) ] {
1438
1439
mod aarch64;
1439
1440
pub use self :: aarch64:: * ;
1441
+ } else if #[ cfg( target_arch = "sparc64" ) ] {
1442
+ mod sparc64;
1443
+ pub use self :: sparc64:: * ;
1440
1444
} else {
1441
1445
// Unknown target_arch
1442
1446
}
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 = 0xf ;
7
+
8
+ pub const _MAX_PAGE_SHIFT: u32 = 13 ;
Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ cfg_if! {
12
12
pub const _ALIGNBYTES: usize = 4 - 1 ;
13
13
}
14
14
}
15
+
16
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ cfg_if! {
15
15
}
16
16
}
17
17
18
+ pub const _MAX_PAGE_SHIFT: u32 = 12 ;
19
+
18
20
pub const PT_STEP : :: c_int = PT_FIRSTMACH + 0 ;
19
21
pub const PT_GETREGS : :: c_int = PT_FIRSTMACH + 1 ;
20
22
pub const PT_SETREGS : :: c_int = PT_FIRSTMACH + 2 ;
You can’t perform that action at this time.
0 commit comments