Skip to content

Commit 7eb6055

Browse files
committed
Auto merge of #967 - semarie:openbsd-sigstksz, r=alexcrichton
openbsd: SIGSTKSZ has been reduced On OpenBSD 6.3, `SIGSTKSZ` value has changed. openbsd/src@e211c58
2 parents c202081 + 04aa1bb commit 7eb6055

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ pub const SIGSEGV : ::c_int = 11;
177177
pub const SIGPIPE : ::c_int = 13;
178178
pub const SIGALRM : ::c_int = 14;
179179
pub const SIGTERM : ::c_int = 15;
180-
pub const SIGSTKSZ : ::size_t = 40960;
181180

182181
pub const PROT_NONE : ::c_int = 0;
183182
pub const PROT_READ : ::c_int = 1;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,8 @@ pub const CHWFLOW: ::tcflag_t = ::MDMBUF | ::CRTSCTS | ::CDTRCTS;
947947
pub const SOCK_CLOEXEC: ::c_int = 0x10000000;
948948
pub const SOCK_NONBLOCK: ::c_int = 0x20000000;
949949

950+
pub const SIGSTKSZ : ::size_t = 40960;
951+
950952
// dirfd() is a macro on netbsd to access
951953
// the first field of the struct where dirp points to:
952954
// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36

src/unix/bsd/netbsdlike/openbsdlike/bitrig/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
8383
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
8484
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
8585

86+
pub const SIGSTKSZ : ::size_t = 40960;
87+
8688
extern {
8789
pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char;
8890
pub fn duplocale(base: ::locale_t) -> ::locale_t;

src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
4747
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
4848
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
4949

50+
pub const SIGSTKSZ : ::size_t = 24576;
51+
5052
extern {
5153
pub fn accept4(s: ::c_int, addr: *mut ::sockaddr,
5254
addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int;

0 commit comments

Comments
 (0)