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 @@ -325,9 +325,9 @@ pub const EXTATTR_NAMESPACE_USER: ::c_int = 1;
325
325
pub const EXTATTR_NAMESPACE_SYSTEM : :: c_int = 2 ;
326
326
327
327
pub const RAND_MAX : :: c_int = 0x7fff_fffd ;
328
- pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
328
+ pub const PTHREAD_STACK_MIN : :: size_t = MINSIGSTKSZ ;
329
329
pub const PTHREAD_MUTEX_ADAPTIVE_NP : :: c_int = 4 ;
330
- pub const SIGSTKSZ : :: size_t = 34816 ;
330
+ pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + 32768 ;
331
331
pub const SF_NODISKIO : :: c_int = 0x00000001 ;
332
332
pub const SF_MNOWAIT : :: c_int = 0x00000002 ;
333
333
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