authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-23 18:54:33-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-23 18:54:33-07:00
log63a86de8518026be9ae14ca35f2e5af234f48024
tree83af60399d6aa914009325bb0051e1db4d7e532f
parent31a56409131ab0ccfc516d8cbefbc4cd86f071ca
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add support for freebsd, netbsd, openbsd


3 files changed, 9 insertions(+), 0 deletions(-)

licenses.txt+3
......@@ -2,4 +2,7 @@ MIT:
22= https://spdx.org/licenses/MIT
33- This
44- git https://github.com/nektro/zig-extras
5- git https://github.com/nektro/zig-sys-freebsd
56- git https://github.com/nektro/zig-sys-linux
7- git https://github.com/nektro/zig-sys-netbsd
8- git https://github.com/nektro/zig-sys-openbsd
src/lib.zig+3
......@@ -7,6 +7,9 @@ const linux = @import("sys-linux");
77
88const sys = switch (builtin.target.os.tag) {
99 .linux => linux,
10 .freebsd => @import("sys-freebsd"),
11 .netbsd => @import("sys-netbsd"),
12 .openbsd => @import("sys-openbsd"),
1013 else => unreachable, // TODO:
1114};
1215
zig.mod+3
......@@ -6,3 +6,6 @@ description: Config management for Zig.
66dependencies:
77 - src: git https://github.com/nektro/zig-extras
88 - src: git https://github.com/nektro/zig-sys-linux
9 - src: git https://github.com/nektro/zig-sys-freebsd
10 - src: git https://github.com/nektro/zig-sys-netbsd
11 - src: git https://github.com/nektro/zig-sys-openbsd