File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 4 files changed +9
-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
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