Skip to content

Commit e6a7fb6

Browse files
committed
Add illumos 3socket flags
1 parent 13d4a5d commit e6a7fb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,11 @@ pub const VLNEXT: usize = 15;
18031803
pub const VSTATUS: usize = 16;
18041804
pub const VERASE2: usize = 17;
18051805

1806+
// 3SOCKET flags
1807+
pub const SOCK_CLOEXEC: ::c_int = 0x080000;
1808+
pub const SOCK_NONBLOCK: ::c_int = 0x100000;
1809+
pub const SOCK_NDELAY: ::c_int = 0x200000;
1810+
18061811
f! {
18071812
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
18081813
let bits = ::mem::size_of_val(&(*set).fds_bits[0]) * 8;

0 commit comments

Comments
 (0)