zig/lib/std/fs
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
..
file.zig Add illumos OS tag 2023-10-02 15:31:49 -06:00
get_app_data_dir.zig Add illumos OS tag 2023-10-02 15:31:49 -06:00
path.zig Add fs.path.ComponentIterator and use it in Dir.makePath 2023-07-27 10:22:54 -07:00
test.zig fs tests: Skip UNC path types in Dir.rename tests 2023-09-14 16:30:41 +03:00
wasi.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
watch.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00