authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-14 09:35:38-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-14 09:35:38-07:00
loge4ebbdb354f5d562f7fca025f57e4775d9c23882
treeb68582815881c483ef45606ab78d682f7cc8d4fb
parentb51048252585d2aea4d1a262bc6c04f99b465f96

std.c: add missing netbsd and freebsd MSG flags


1 files changed, 37 insertions(+), 0 deletions(-)

lib/std/c.zig+37
......@@ -5625,6 +5625,43 @@ pub const MSG = switch (native_os) {
56255625 pub const NOSIGNAL = 0x80;
56265626 pub const EOR = 0x100;
56275627 },
5628 .freebsd => struct {
5629 pub const OOB = 0x00000001;
5630 pub const PEEK = 0x00000002;
5631 pub const DONTROUTE = 0x00000004;
5632 pub const EOR = 0x00000008;
5633 pub const TRUNC = 0x00000010;
5634 pub const CTRUNC = 0x00000020;
5635 pub const WAITALL = 0x00000040;
5636 pub const DONTWAIT = 0x00000080;
5637 pub const EOF = 0x00000100;
5638 pub const NOTIFICATION = 0x00002000;
5639 pub const NBIO = 0x00004000;
5640 pub const COMPAT = 0x00008000;
5641 pub const SOCALLBCK = 0x00010000;
5642 pub const NOSIGNAL = 0x00020000;
5643 pub const CMSG_CLOEXEC = 0x00040000;
5644 pub const WAITFORONE = 0x00080000;
5645 pub const MORETOCOME = 0x00100000;
5646 pub const TLSAPPDATA = 0x00200000;
5647 },
5648 .netbsd => struct {
5649 pub const OOB = 0x0001;
5650 pub const PEEK = 0x0002;
5651 pub const DONTROUTE = 0x0004;
5652 pub const EOR = 0x0008;
5653 pub const TRUNC = 0x0010;
5654 pub const CTRUNC = 0x0020;
5655 pub const WAITALL = 0x0040;
5656 pub const DONTWAIT = 0x0080;
5657 pub const BCAST = 0x0100;
5658 pub const MCAST = 0x0200;
5659 pub const NOSIGNAL = 0x0400;
5660 pub const CMSG_CLOEXEC = 0x0800;
5661 pub const NBIO = 0x1000;
5662 pub const WAITFORONE = 0x2000;
5663 pub const NOTIFICATION = 0x4000;
5664 },
56285665 else => void,
56295666};
56305667pub const SOCK = switch (native_os) {