authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-23 18:56:05-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-23 18:56:05-07:00
logb9ecc9e21d8244413512911240eceb82f0844158
tree1272b7fefff345dc593e72144b0fd885e2aef81f
parentd4aa3de28337219787be1af5049f0dc977ac197b
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add support freebsd, netbsd, openbsd


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

licenses.txt+3
......@@ -4,7 +4,10 @@ MIT:
44- git https://github.com/nektro/zig-expect
55- git https://github.com/nektro/zig-extras
66- git https://github.com/nektro/zig-sys-darwin
7- git https://github.com/nektro/zig-sys-freebsd
78- git https://github.com/nektro/zig-sys-linux
9- git https://github.com/nektro/zig-sys-netbsd
10- git https://github.com/nektro/zig-sys-openbsd
811
912CC0-1.0:
1013= https://spdx.org/licenses/CC0-1.0
time.zig+3
......@@ -8,6 +8,9 @@ const time = @This();
88const sys = switch (builtin.target.os.tag) {
99 .linux => @import("sys-linux"),
1010 .macos => @import("sys-darwin"),
11 .freebsd => @import("sys-freebsd"),
12 .netbsd => @import("sys-netbsd"),
13 .openbsd => @import("sys-openbsd"),
1114 else => unreachable, // TODO:
1215};
1316
zig.mod+3
......@@ -8,6 +8,9 @@ dependencies:
88 - src: git https://github.com/nektro/zig-sys-linux
99 - src: git https://github.com/nektro/zig-sys-darwin
1010 - src: git https://github.com/nektro/zig-nio
11 - src: git https://github.com/nektro/zig-sys-freebsd
12 - src: git https://github.com/nektro/zig-sys-netbsd
13 - src: git https://github.com/nektro/zig-sys-openbsd
1114root_dependencies:
1215 - src: git https://github.com/nektro/zig-expect
1316 - src: git https://github.com/nektro/zig-nfs