3 ms·
I think you can call libc by importing the C headers "automagically" but zig does also give you some of these things in its (admittedly still poorly documented)
by dnautics 7y ago
I think you can call libc by importing the C headers "automagically" but zig does also give you some of these things in its (admittedly still poorly documented) std lib:
std.os.fork: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L2732 https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L2...
std.os.fcntl: https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L3173 https://github.com/ziglang/zig/blob/master/lib/std/os.zig#L3...