zig/lib/std/os
Stephen Gregoratto 285970982a Add illumos OS tag
- Adds `illumos` to the `Target.Os.Tag` enum. A new function,
  `isSolarish` has been added that returns true if the tag is either
  Solaris or Illumos. This matches the naming convention found in Rust's
  `libc` crate[1].
- Add the tag wherever `.solaris` is being checked against.
- Check for the C pre-processor macro `__illumos__` in CMake to set the
  proper target tuple. Illumos distros patch their compilers to have
  this in the "built-in" set (verified with `echo | cc -dM -E -`).

  Alternatively you could check the output of `uname -o`.

Right now, both Solaris and Illumos import from `c/solaris.zig`. In the
future it may be worth putting the shared ABI bits in a base file, and
mixing that in with specific `c/solaris.zig`/`c/illumos.zig` files.

[1]: 6e02a329a2/src/unix/solarish
2023-10-02 15:31:49 -06:00
..
linux Update Linux syscalls for kernel 5.5 2023-09-28 18:58:05 +10:00
plan9 plan 9: filesystem support 2023-08-02 17:39:52 -04:00
uefi fix compile errors introduced by #16953 (#16955) 2023-08-25 21:07:24 +00:00
windows Windows: Fix TooManyParentDirs handling for paths that shouldn't be cwd-relative 2023-08-11 18:58:40 -07:00
emscripten.zig Added basic support for wasm32-emscripten target 2023-09-22 12:49:03 -07:00
linux.zig Linux: Add cachestat wrapper. 2023-09-28 18:58:05 +10:00
plan9.zig Plan 9: add more features to std.os.plan9 2023-08-02 18:19:07 -04:00
test.zig Add illumos OS tag 2023-10-02 15:31:49 -06:00
uefi.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
wasi.zig wasi: update sock_recv and sock_send according to preview1 2023-09-18 00:27:27 -07:00
windows.zig std.os+windows: isAtLeast(.win10_rs5) in renameatW(), DeleteFile() for posix semantics 2023-09-03 08:35:26 +02:00