Skip to content

Commit bd1332a

Browse files
rzezeskialexrp
authored andcommitted
std.c: define MSG constants for solaris/illumos
1 parent ac3e4f4 commit bd1332a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/std/c.zig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5776,6 +5776,20 @@ pub const MSG = switch (native_os) {
57765776
pub const FBLOCKING = 0x10000;
57775777
pub const FNONBLOCKING = 0x20000;
57785778
},
5779+
.solaris, .illumos => struct {
5780+
pub const OOB = 0x0001;
5781+
pub const PEEK = 0x0002;
5782+
pub const DONTROUTE = 0x0004;
5783+
pub const EOR = 0x0008;
5784+
pub const CTRUNC = 0x0010;
5785+
pub const TRUNC = 0x0020;
5786+
pub const WAITALL = 0x0040;
5787+
pub const DONTWAIT = 0x0080;
5788+
pub const NOTIFICATION = 0x0100;
5789+
pub const NOSIGNAL = 0x0200;
5790+
pub const CMSG_CLOEXEC = 0x1000;
5791+
pub const CMSG_CLOFORK = 0x2000;
5792+
},
57795793
else => void,
57805794
};
57815795
pub const SOCK = switch (native_os) {

0 commit comments

Comments
 (0)