From 7ca0bf0f36a8af70635a902546d6e9032b6e6551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 6 Sep 2026 09:48:22 +0200 Subject: [PATCH] std.c: add more CTL constants for freebsd --- lib/std/c.zig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 857d2296a910a3d4be22146fc91a5c2de5ab5fe8..c6af875df2cc3a251cf1d9de35544a268729f0fa 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -1330,8 +1330,16 @@ pub const IOV_MAX = switch (native_os) { }; pub const CTL = switch (native_os) { .freebsd => struct { + pub const SYSCTL = 0; pub const KERN = 1; + pub const VM = 2; + pub const VFS = 3; + pub const NET = 4; pub const DEBUG = 5; + pub const HW = 6; + pub const MACHDEP = 7; + pub const USER = 8; + pub const P1003_1B = 9; }, .netbsd => struct { pub const KERN = 1; -- 2.54.0