Skip to content

Commit afb1f1a

Browse files
committed
Merge branch 'sigaltstack-flags' of https://github.com/tmiasko/libc into merge
2 parents 0668b9c + 26e1ec1 commit afb1f1a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/unix/bsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ pub const SA_NOCLDSTOP: ::c_int = 0x0008;
120120
pub const SA_NODEFER: ::c_int = 0x0010;
121121
pub const SA_NOCLDWAIT: ::c_int = 0x0020;
122122

123+
pub const SS_ONSTACK: ::c_int = 1;
124+
pub const SS_DISABLE: ::c_int = 4;
125+
123126
pub const SIGCHLD: ::c_int = 20;
124127
pub const SIGBUS: ::c_int = 10;
125128
pub const SIGUSR1: ::c_int = 30;

src/unix/notbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ pub const SA_RESETHAND: ::c_int = 0x80000000;
385385
pub const SA_RESTART: ::c_int = 0x10000000;
386386
pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
387387

388+
pub const SS_ONSTACK: ::c_int = 1;
389+
pub const SS_DISABLE: ::c_int = 2;
390+
388391
pub const PATH_MAX: ::c_int = 4096;
389392

390393
pub const FD_SETSIZE: usize = 1024;

src/unix/solaris/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ pub const SA_NODEFER: ::c_int = 0x00000010;
281281
pub const SA_NOCLDWAIT: ::c_int = 0x00010000;
282282
pub const SA_NOCLDSTOP: ::c_int = 0x00020000;
283283

284+
pub const SS_ONSTACK: ::c_int = 1;
285+
pub const SS_DISABLE: ::c_int = 2;
286+
284287
pub const FIONBIO: ::c_int = 0x8004667e;
285288

286289
pub const SIGCHLD: ::c_int = 18;

0 commit comments

Comments
 (0)