aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-08-12 23:50:00 +0200
committerJakub Konka <kubkon@jakubkonka.com>2020-08-13 07:08:39 +0200
commit3e2e6baee568b0fb9d019fc53974aad30386b824 (patch)
tree432202df308ca46ee7f8d26c5021eecdea07cca5 /src/main.cpp
parente043396b242d727cd72fecda265bd4b78a86958a (diff)
downloadzig-3e2e6baee568b0fb9d019fc53974aad30386b824.tar.gz
zig-3e2e6baee568b0fb9d019fc53974aad30386b824.zip
Add std.os.getFdPath and std.fs.Dir.realpath
`std.os.getFdPath` is very platform-specific and can be used to query the OS for a canonical path to a file handle. Currently supported hosts are Linux, macOS and Windows. `std.fs.Dir.realpath` (and null-terminated, plus WTF16 versions) are similar to `std.os.realpath`, however, they resolve a path wrt to this `Dir` instance. If the input pathname argument turns out to be an absolute path, this function reverts to calling `realpath` on that pathname completely ignoring this `Dir`.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions