Skip to content

Commit 26b8ab3

Browse files
committed
Auto merge of rust-lang#568 - anatol:add_MINSIGSTKSZ, r=alexcrichton
Add MINSIGSTKSZ constant to linux sources MINSIGSTKSZ is a minimum size of process stack allowed
2 parents 1a36de9 + de75eb6 commit 26b8ab3

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
584584
pub const MCL_FUTURE: ::c_int = 0x0002;
585585

586586
pub const SIGSTKSZ: ::size_t = 8192;
587+
pub const MINSIGSTKSZ: ::size_t = 2048;
587588
pub const CBAUD: ::tcflag_t = 0o0010017;
588589
pub const TAB1: ::c_int = 0x00000800;
589590
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
420420
pub const MCL_FUTURE: ::c_int = 0x0002;
421421

422422
pub const SIGSTKSZ: ::size_t = 8192;
423+
pub const MINSIGSTKSZ: ::size_t = 2048;
423424
pub const CBAUD: ::tcflag_t = 0o0010017;
424425
pub const TAB1: ::c_int = 0x00000800;
425426
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
239239
pub const MCL_FUTURE: ::c_int = 0x0002;
240240

241241
pub const SIGSTKSZ: ::size_t = 8192;
242+
pub const MINSIGSTKSZ: ::size_t = 2048;
242243
pub const CBAUD: ::tcflag_t = 0o0010017;
243244
pub const TAB1: ::c_int = 0x00000800;
244245
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/other/b32/arm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
100100
pub const MCL_FUTURE: ::c_int = 0x0002;
101101

102102
pub const SIGSTKSZ: ::size_t = 8192;
103+
pub const MINSIGSTKSZ: ::size_t = 2048;
103104
pub const CBAUD: ::tcflag_t = 0o0010017;
104105
pub const TAB1: ::c_int = 0x00000800;
105106
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/other/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pub const MCL_CURRENT: ::c_int = 0x2000;
103103
pub const MCL_FUTURE: ::c_int = 0x4000;
104104

105105
pub const SIGSTKSZ: ::size_t = 0x4000;
106+
pub const MINSIGSTKSZ: ::size_t = 4096;
106107
pub const CBAUD: ::tcflag_t = 0xff;
107108
pub const TAB1: ::c_int = 0x400;
108109
pub const TAB2: ::c_int = 0x800;

src/unix/notbsd/linux/other/b32/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
141141
pub const MCL_FUTURE: ::c_int = 0x0002;
142142

143143
pub const SIGSTKSZ: ::size_t = 8192;
144+
pub const MINSIGSTKSZ: ::size_t = 2048;
144145
pub const CBAUD: ::tcflag_t = 0o0010017;
145146
pub const TAB1: ::c_int = 0x00000800;
146147
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
344344
pub const MCL_FUTURE: ::c_int = 0x0002;
345345

346346
pub const SIGSTKSZ: ::size_t = 16384;
347+
pub const MINSIGSTKSZ: ::size_t = 5120;
347348
pub const CBAUD: ::tcflag_t = 0o0010017;
348349
pub const TAB1: ::c_int = 0x00000800;
349350
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ pub const MCL_CURRENT: ::c_int = 0x2000;
342342
pub const MCL_FUTURE: ::c_int = 0x4000;
343343

344344
pub const SIGSTKSZ: ::size_t = 0x4000;
345+
pub const MINSIGSTKSZ: ::size_t = 4096;
345346
pub const CBAUD: ::tcflag_t = 0xff;
346347
pub const TAB1: ::c_int = 0x400;
347348
pub const TAB2: ::c_int = 0x800;

src/unix/notbsd/linux/other/b64/sparc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ pub const MCL_CURRENT: ::c_int = 0x2000;
301301
pub const MCL_FUTURE: ::c_int = 0x4000;
302302

303303
pub const SIGSTKSZ: ::size_t = 16384;
304+
pub const MINSIGSTKSZ: ::size_t = 4096;
304305
pub const CBAUD: ::tcflag_t = 0x0000100f;
305306
pub const TAB1: ::c_int = 0x800;
306307
pub const TAB2: ::c_int = 0x1000;

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
402402
pub const MCL_FUTURE: ::c_int = 0x0002;
403403

404404
pub const SIGSTKSZ: ::size_t = 8192;
405+
pub const MINSIGSTKSZ: ::size_t = 2048;
405406
pub const CBAUD: ::tcflag_t = 0o0010017;
406407
pub const TAB1: ::c_int = 0x00000800;
407408
pub const TAB2: ::c_int = 0x00001000;

src/unix/notbsd/linux/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ pub const SA_ONSTACK: ::c_int = 0x08000000;
339339
pub const SA_SIGINFO: ::c_int = 4;
340340
pub const SIGBUS: ::c_int = 7;
341341
pub const SIGSTKSZ: ::size_t = 0x2000;
342+
pub const MINSIGSTKSZ: ::size_t = 2048;
342343
pub const SIG_SETMASK: ::c_int = 2;
343344
pub const SOCK_DGRAM: ::c_int = 2;
344345
pub const SOCK_STREAM: ::c_int = 1;

0 commit comments

Comments
 (0)