authorgravatar for yourcomputerpal@gmail.comBrandon Mercer <yourcomputerpal@gmail.com> 2025-08-30 18:04:32-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-08-30 22:04:32+00:00
log7fdd60df1c40bc36a8e0b35be3e35f81dd97fbce
tree9936074733d6a99bcb371c826ecfbded267da05b
parentb7104231af68c26b850325748a64f15119a2dd69
signaturebadge-check Signed by PGP key B5690EEEBB952194

Populate MSG struct for OpenBSD (#25076)

* update the MSG struct with the correct values for openbsd * add comment with link to sys/sys/socket.h --------- Co-authored-by: Brandon Mercer <bmercer@eutonian.com>

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

lib/std/c.zig+17
...@@ -5704,6 +5704,23 @@ pub const MSG = switch (native_os) {...@@ -5704,6 +5704,23 @@ pub const MSG = switch (native_os) {
5704 pub const WAITFORONE = 0x2000;5704 pub const WAITFORONE = 0x2000;
5705 pub const NOTIFICATION = 0x4000;5705 pub const NOTIFICATION = 0x4000;
5706 },5706 },
5707 // https://github.com/openbsd/src/blob/42a7be81bef70c04732f45ec573622effe56b563/sys/sys/socket.h#L506
5708 .openbsd => struct {
5709 pub const OOB = 0x1;
5710 pub const PEEK = 0x2;
5711 pub const DONTROUTE = 0x4;
5712 pub const EOR = 0x8;
5713 pub const TRUNC = 0x10;
5714 pub const CTRUNC = 0x20;
5715 pub const WAITALL = 0x40;
5716 pub const DONTWAIT = 0x80;
5717 pub const BCAST = 0x100;
5718 pub const MCAST = 0x200;
5719 pub const NOSIGNAL = 0x400;
5720 pub const CMSG_CLOEXEC = 0x800;
5721 pub const WAITFORONE = 0x1000;
5722 pub const CMSG_CLOFORK = 0x2000;
5723 },
5707 else => void,5724 else => void,
5708};5725};
5709pub const SOCK = switch (native_os) {5726pub const SOCK = switch (native_os) {