openbsd: introduce _MAX_PAGE_SHIFT to compute PTHREAD_STACK_MIN, MINSIGSTKSZ, and SIGSTKSZ
This commit is contained in:
parent
37f8f8dc23
commit
3311ba8a02
@ -12,3 +12,5 @@ cfg_if! {
|
||||
pub const _ALIGNBYTES: usize = 8 - 1;
|
||||
}
|
||||
}
|
||||
|
||||
pub const _MAX_PAGE_SHIFT: u32 = 12;
|
||||
|
@ -1297,8 +1297,9 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
|
||||
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
|
||||
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
|
||||
|
||||
pub const PTHREAD_STACK_MIN : ::size_t = 4096;
|
||||
pub const SIGSTKSZ : ::size_t = 28672;
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = (1_usize << _MAX_PAGE_SHIFT);
|
||||
pub const MINSIGSTKSZ: ::size_t = (3_usize << _MAX_PAGE_SHIFT);
|
||||
pub const SIGSTKSZ: ::size_t = MINSIGSTKSZ + (1_usize << _MAX_PAGE_SHIFT) * 4;
|
||||
|
||||
pub const PT_FIRSTMACH: ::c_int = 32;
|
||||
|
||||
|
@ -12,3 +12,5 @@ cfg_if! {
|
||||
pub const _ALIGNBYTES: usize = 4 - 1;
|
||||
}
|
||||
}
|
||||
|
||||
pub const _MAX_PAGE_SHIFT: u32 = 12;
|
||||
|
@ -15,6 +15,8 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const _MAX_PAGE_SHIFT: u32 = 12;
|
||||
|
||||
pub const PT_STEP: ::c_int = PT_FIRSTMACH + 0;
|
||||
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
|
||||
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
|
||||
|
Loading…
Reference in New Issue
Block a user