authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-06 09:48:22+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-06 09:50:49+02:00
log7ca0bf0f36a8af70635a902546d6e9032b6e6551
tree73895a4d5290cf39ac2c93c0a37a1f352e9047df
parent02e4f536d4509c4596b39c42d4526d56d88639e8
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: add more CTL constants for freebsd


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

lib/std/c.zig+8
...@@ -1330,8 +1330,16 @@ pub const IOV_MAX = switch (native_os) {...@@ -1330,8 +1330,16 @@ pub const IOV_MAX = switch (native_os) {
1330};1330};
1331pub const CTL = switch (native_os) {1331pub const CTL = switch (native_os) {
1332 .freebsd => struct {1332 .freebsd => struct {
1333 pub const SYSCTL = 0;
1333 pub const KERN = 1;1334 pub const KERN = 1;
1335 pub const VM = 2;
1336 pub const VFS = 3;
1337 pub const NET = 4;
1334 pub const DEBUG = 5;1338 pub const DEBUG = 5;
1339 pub const HW = 6;
1340 pub const MACHDEP = 7;
1341 pub const USER = 8;
1342 pub const P1003_1B = 9;
1335 },1343 },
1336 .netbsd => struct {1344 .netbsd => struct {
1337 pub const KERN = 1;1345 pub const KERN = 1;