zig/lib/std/os
Andrew Kelley cfffb9c5e9
improve handling of environment variables on Windows
std.os.getenv and std.os.getenvZ have nice compile errors when not linking
libc and using Windows.

std.os.getenvW is provided as a Windows-only API that does not require
an allocator. It uses the Process Environment Block.
std.process.getEnvVarOwned is improved to be a simple wrapper on top of
std.os.getenvW.

std.process.getEnvMap is improved to use the Process Environment Block
rather than calling GetEnvironmentVariableW.

std.zig.system.NativePaths uses process.getEnvVarOwned instead of
std.os.getenvZ, which works on Windows as well as POSIX.
2020-02-22 17:35:36 -05:00
..
bits Merge pull request #4404 from ziglang/async-std 2020-02-10 00:22:59 -05:00
linux update tls in std lib for lack of sub-arch 2020-02-19 22:09:35 -05:00
uefi Merge branch 'std-utf16-sentinel-terminated' of https://github.com/daurnimator/zig 2020-01-07 16:13:34 -05:00
windows improve handling of environment variables on Windows 2020-02-22 17:35:36 -05:00
bits.zig bring your own OS layer in the std lib 2019-12-02 15:02:17 -05:00
darwin.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
dragonfly.zig DragonFlyBSD support 2019-10-30 21:21:58 -04:00
freebsd.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
linux.zig Add basic linux termios implementation 2020-02-04 14:09:57 -05:00
netbsd.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
test.zig improve handling of environment variables on Windows 2020-02-22 17:35:36 -05:00
uefi.zig Run zig fmt 2020-02-01 11:32:53 +01:00
wasi.zig Removes proc_raise from WASI implementation 2020-01-06 14:04:55 -05:00
windows.zig more std lib async I/O integration 2020-02-06 18:05:50 -05:00