Skip to content

Conversation

@lalinsky
Copy link
Contributor

@lalinsky lalinsky commented Nov 14, 2025

The .netbsd and .openbsd branches of MADV was completely missing. Validated against the actual system headers.

https://github.com/NetBSD/src/blob/trunk/sys/sys/mman.h#L197
https://github.com/openbsd/src/blob/master/sys/sys/mman.h#L102

MSF.SYNC was also wrong on OpenBSD, FreeBSD and DragonFlyBSD.

https://github.com/freebsd/freebsd-src/blob/main/sys/sys/mman.h#L145
https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/mman.h#L130

The `.netbsd` branch was completely missing. Validated against the
actual system headers.
@lalinsky lalinsky changed the title Define std.c.MADV for NetBSD Fix madvice/msync flags for BSDs Nov 14, 2025
@alexrp alexrp enabled auto-merge November 14, 2025 18:21
@alexrp alexrp merged commit 2508036 into ziglang:master Nov 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants