File tree Expand file tree Collapse file tree 6 files changed +7
-2
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 6 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ cfg_if! {
16
16
}
17
17
18
18
pub const MAP_32BIT : :: c_int = 0x00080000 ;
19
+ pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
Original file line number Diff line number Diff line change @@ -45,3 +45,4 @@ cfg_if! {
45
45
}
46
46
}
47
47
pub const MAP_32BIT : :: c_int = 0x00080000 ;
48
+ pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
Original file line number Diff line number Diff line change @@ -323,9 +323,9 @@ pub const EXTATTR_NAMESPACE_USER: ::c_int = 1;
323
323
pub const EXTATTR_NAMESPACE_SYSTEM : :: c_int = 2 ;
324
324
325
325
pub const RAND_MAX : :: c_int = 0x7fff_fffd ;
326
- pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
326
+ pub const PTHREAD_STACK_MIN : :: size_t = MINSIGSTKSZ ;
327
327
pub const PTHREAD_MUTEX_ADAPTIVE_NP : :: c_int = 4 ;
328
- pub const SIGSTKSZ : :: size_t = 34816 ;
328
+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + 32768 ;
329
329
pub const SF_NODISKIO : :: c_int = 0x00000001 ;
330
330
pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
331
331
pub const SF_SYNC : :: c_int = 0x00000004 ;
Original file line number Diff line number Diff line change @@ -42,3 +42,4 @@ cfg_if! {
42
42
}
43
43
44
44
pub const MAP_32BIT : :: c_int = 0x00080000 ;
45
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ cfg_if! {
41
41
pub const _ALIGNBYTES: usize = 8 - 1 ;
42
42
}
43
43
}
44
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ cfg_if! {
185
185
}
186
186
}
187
187
pub const MAP_32BIT : :: c_int = 0x00080000 ;
188
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
188
189
189
190
cfg_if ! {
190
191
if #[ cfg( libc_align) ] {
You can’t perform that action at this time.
0 commit comments