diff options
author | Mathieu Poumeyrol <kali@zoy.org> | 2016-10-08 12:51:53 +0200 |
---|---|---|
committer | Mathieu Poumeyrol <kali@zoy.org> | 2016-10-08 12:51:53 +0200 |
commit | a59d299645add8c8376ac2f55cdcf0ff5755a9f1 (patch) | |
tree | d0872a3bda71eb298be11d4b94d801282343732b /src | |
parent | 9497f192e78096e0c9b619fc26b8d336edfa1b45 (diff) | |
download | rust-libc-a59d299645add8c8376ac2f55cdcf0ff5755a9f1.tar.gz |
define more MSG_NOSIGNAL
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/haiku/mod.rs | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 642dd1fc0c..179cd913b3 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -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; diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 31188ac92b..a89440ebde 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -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; diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index a5ecfb1b79..6604ec03b2 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -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; diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 21bb1d3983..320cb767d2 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -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; |