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:...@@ -2,4 +2,7 @@ MIT:
2= https://spdx.org/licenses/MIT2= https://spdx.org/licenses/MIT
3- This3- This
4- git https://github.com/nektro/zig-extras4- git https://github.com/nektro/zig-extras
5- git https://github.com/nektro/zig-sys-freebsd
5- git https://github.com/nektro/zig-sys-linux6- 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");...@@ -7,6 +7,9 @@ const linux = @import("sys-linux");
77
8const sys = switch (builtin.target.os.tag) {8const sys = switch (builtin.target.os.tag) {
9 .linux => linux,9 .linux => linux,
10 .freebsd => @import("sys-freebsd"),
11 .netbsd => @import("sys-netbsd"),
12 .openbsd => @import("sys-openbsd"),
10 else => unreachable, // TODO:13 else => unreachable, // TODO:
11};14};
1215
zig.mod+3
...@@ -6,3 +6,6 @@ description: Config management for Zig....@@ -6,3 +6,6 @@ description: Config management for Zig.
6dependencies:6dependencies:
7 - src: git https://github.com/nektro/zig-extras7 - src: git https://github.com/nektro/zig-extras
8 - src: git https://github.com/nektro/zig-sys-linux8 - 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