Skip to content

Commit a59d299

Browse files
committed
define more MSG_NOSIGNAL
1 parent 9497f19 commit a59d299

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ pub const NOTE_TRACK: ::uint32_t = 0x00000001;
293293
pub const NOTE_TRACKERR: ::uint32_t = 0x00000002;
294294
pub const NOTE_CHILD: ::uint32_t = 0x00000004;
295295

296+
pub const MSG_NOSIGNAL: ::uint32_t = 0x400;
297+
296298
extern {
297299
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
298300
-> ::c_int;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24;
272272
pub const CTL_P1003_1B_TIMER_MAX: ::c_int = 25;
273273
pub const CTL_P1003_1B_MAXID: ::c_int = 26;
274274

275+
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
276+
275277
extern {
276278
pub fn __error() -> *mut ::c_int;
277279

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ pub const SO_RCVLOWAT: ::c_int = 0x1004;
392392
pub const SO_ERROR: ::c_int = 0x1007;
393393
pub const SO_TYPE: ::c_int = 0x1008;
394394

395+
pub const MSG_NOSIGNAL: ::c_int = 0x400;
396+
395397
pub const IFF_LOOPBACK: ::c_int = 0x8;
396398

397399
pub const SHUT_RD: ::c_int = 0;

src/unix/haiku/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ pub const IPV6_V6ONLY: ::c_int = 30;
548548

549549
pub const SO_DEBUG: ::c_int = 0x00000004;
550550

551+
pub const MSG_NOSIGNAL: ::c_int = 0x0800;
552+
551553
pub const SHUT_RD: ::c_int = 0;
552554
pub const SHUT_WR: ::c_int = 1;
553555
pub const SHUT_RDWR: ::c_int = 2;

0 commit comments

Comments
 (0)