mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
Using std.os.linux directly in e.g. std.posix.timerfd_create() causes the function to compile but silently fail at runtime when targeting any OS other than Linux. To catch errors like this at compile time, std.os.linux must only be directly accessed within std.posix where there has been a comptime check that the target os is in fact Linux. |
||
|---|---|---|
| .. | ||
| darwin | ||
| darwin.zig | ||
| dragonfly.zig | ||
| emscripten.zig | ||
| freebsd.zig | ||
| haiku.zig | ||
| linux.zig | ||
| netbsd.zig | ||
| openbsd.zig | ||
| solaris.zig | ||
| wasi.zig | ||
| windows.zig | ||