File tree 6 files changed +12
-2
lines changed
src/unix/bsd/freebsdlike/freebsd
6 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pub type time_t = i64;
5
5
pub type suseconds_t = i64 ;
6
6
pub type register_t = i64 ;
7
7
8
+ pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
9
+
8
10
pub const _MC_FP_VALID: :: c_int = 0x1 ;
9
11
10
12
s ! {
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pub type time_t = i64;
5
5
pub type suseconds_t = i32 ;
6
6
pub type register_t = i32 ;
7
7
8
+ pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
9
+
8
10
s ! {
9
11
pub struct stat {
10
12
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -334,9 +334,9 @@ pub const EXTATTR_NAMESPACE_USER: ::c_int = 1;
334
334
pub const EXTATTR_NAMESPACE_SYSTEM : :: c_int = 2 ;
335
335
336
336
pub const RAND_MAX : :: c_int = 0x7fff_fffd ;
337
- pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
337
+ pub const PTHREAD_STACK_MIN : :: size_t = MINSIGSTKSZ ;
338
338
pub const PTHREAD_MUTEX_ADAPTIVE_NP : :: c_int = 4 ;
339
- pub const SIGSTKSZ : :: size_t = 34816 ;
339
+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + 32768 ;
340
340
pub const SF_NODISKIO : :: c_int = 0x00000001 ;
341
341
pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
342
342
pub const SF_SYNC : :: c_int = 0x00000004 ;
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pub type time_t = i64;
5
5
pub type suseconds_t = i64 ;
6
6
pub type register_t = i64 ;
7
7
8
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
9
+
8
10
s ! {
9
11
pub struct stat {
10
12
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pub type time_t = i32;
5
5
pub type suseconds_t = i32 ;
6
6
pub type register_t = i32 ;
7
7
8
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
9
+
8
10
s ! {
9
11
pub struct stat {
10
12
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pub type time_t = i64;
5
5
pub type suseconds_t = i64 ;
6
6
pub type register_t = i64 ;
7
7
8
+ pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
9
+
8
10
// should be pub(crate), but that requires Rust 1.18.0
9
11
cfg_if ! {
10
12
if #[ cfg( libc_const_size_of) ] {
You can’t perform that action at this time.
0 commit comments