Auto merge of #421 - kali:master, r=alexcrichton

define more MSG_NOSIGNAL

follow-up on rust-lang/rust#36824
This commit is contained in:
bors 2016-10-08 11:01:21 -07:00 committed by GitHub
commit 5a17b4a733
4 changed files with 8 additions and 0 deletions

View File

@ -293,6 +293,8 @@ pub const NOTE_TRACK: ::uint32_t = 0x00000001;
pub const NOTE_TRACKERR: ::uint32_t = 0x00000002;
pub const NOTE_CHILD: ::uint32_t = 0x00000004;
pub const MSG_NOSIGNAL: ::uint32_t = 0x400;
extern {
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
-> ::c_int;

View File

@ -272,6 +272,8 @@ pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24;
pub const CTL_P1003_1B_TIMER_MAX: ::c_int = 25;
pub const CTL_P1003_1B_MAXID: ::c_int = 26;
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
extern {
pub fn __error() -> *mut ::c_int;

View File

@ -392,6 +392,8 @@ pub const SO_RCVLOWAT: ::c_int = 0x1004;
pub const SO_ERROR: ::c_int = 0x1007;
pub const SO_TYPE: ::c_int = 0x1008;
pub const MSG_NOSIGNAL: ::c_int = 0x400;
pub const IFF_LOOPBACK: ::c_int = 0x8;
pub const SHUT_RD: ::c_int = 0;

View File

@ -548,6 +548,8 @@ pub const IPV6_V6ONLY: ::c_int = 30;
pub const SO_DEBUG: ::c_int = 0x00000004;
pub const MSG_NOSIGNAL: ::c_int = 0x0800;
pub const SHUT_RD: ::c_int = 0;
pub const SHUT_WR: ::c_int = 1;
pub const SHUT_RDWR: ::c_int = 2;