authorgravatar for yourcomputerpal@gmail.comBrandon Mercer <yourcomputerpal@gmail.com> 2025-08-30 18:04:32-04:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-02 22:34:35+02:00
logb72a02c592ba7a7b201b5a32af329b3730b148e3
tree386eceb8956774a83bf936416484a26034bb48ef
parentd8d497ffe4a3d48de3fd5402537329af9ba2870d
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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
......@@ -5685,6 +5685,23 @@ pub const MSG = switch (native_os) {
56855685 pub const WAITFORONE = 0x2000;
56865686 pub const NOTIFICATION = 0x4000;
56875687 },
5688 // https://github.com/openbsd/src/blob/42a7be81bef70c04732f45ec573622effe56b563/sys/sys/socket.h#L506
5689 .openbsd => struct {
5690 pub const OOB = 0x1;
5691 pub const PEEK = 0x2;
5692 pub const DONTROUTE = 0x4;
5693 pub const EOR = 0x8;
5694 pub const TRUNC = 0x10;
5695 pub const CTRUNC = 0x20;
5696 pub const WAITALL = 0x40;
5697 pub const DONTWAIT = 0x80;
5698 pub const BCAST = 0x100;
5699 pub const MCAST = 0x200;
5700 pub const NOSIGNAL = 0x400;
5701 pub const CMSG_CLOEXEC = 0x800;
5702 pub const WAITFORONE = 0x1000;
5703 pub const CMSG_CLOFORK = 0x2000;
5704 },
56885705 else => void,
56895706};
56905707pub const SOCK = switch (native_os) {