CMakeLists.txt | 1 - build.zig | 32 +- doc/langref.html.in | 3 +- doc/langref/hello.zig | 14 +- doc/langref/wasi_args.zig | 12 +- doc/langref/wasi_preopens.zig | 14 +- lib/compiler/aro/aro/Compilation.zig | 21 +- lib/compiler/aro/aro/Driver.zig | 40 +- lib/compiler/aro/main.zig | 4 +- lib/compiler/build_runner.zig | 22 +- lib/compiler/libc.zig | 25 +- lib/compiler/objcopy.zig | 18 +- lib/compiler/reduce.zig | 41 +- lib/compiler/resinator/compile.zig | 5 +- lib/compiler/resinator/main.zig | 49 +- lib/compiler/resinator/preprocess.zig | 4 +- lib/compiler/std-docs.zig | 69 +- lib/compiler/test_runner.zig | 21 +- lib/compiler/translate-c/main.zig | 78 +- lib/compiler_rt.zig | 18 +- lib/compiler_rt/absvdi2.zig | 2 - lib/compiler_rt/absvsi2.zig | 2 - lib/compiler_rt/absvti2.zig | 2 - lib/compiler_rt/adddf3.zig | 2 - lib/compiler_rt/addhf3.zig | 2 - lib/compiler_rt/addsf3.zig | 2 - lib/compiler_rt/addtf3.zig | 2 - lib/compiler_rt/addvdi3.zig | 2 - lib/compiler_rt/addvsi3.zig | 2 - lib/compiler_rt/addxf3.zig | 2 - lib/compiler_rt/arm.zig | 2 - lib/compiler_rt/atomics.zig | 1 - lib/compiler_rt/aulldiv.zig | 2 - lib/compiler_rt/aullrem.zig | 2 - lib/compiler_rt/bitreverse.zig | 2 - lib/compiler_rt/bswap.zig | 2 - lib/compiler_rt/ceil.zig | 2 - lib/compiler_rt/clear_cache.zig | 1 - lib/compiler_rt/cmp.zig | 2 - lib/compiler_rt/cmpdf2.zig | 2 - lib/compiler_rt/cmphf2.zig | 2 - lib/compiler_rt/cmpsf2.zig | 2 - lib/compiler_rt/cmptf2.zig | 2 - lib/compiler_rt/cmpxf2.zig | 2 - lib/compiler_rt/common.zig | 4 - lib/compiler_rt/cos.zig | 2 - lib/compiler_rt/count0bits.zig | 2 - lib/compiler_rt/divdf3.zig | 2 - lib/compiler_rt/divsf3.zig | 2 - lib/compiler_rt/divtf3.zig | 2 - lib/compiler_rt/divti3.zig | 2 - lib/compiler_rt/divxf3.zig | 2 - lib/compiler_rt/emutls.zig | 2 - lib/compiler_rt/exp.zig | 2 - lib/compiler_rt/exp2.zig | 2 - lib/compiler_rt/extenddftf2.zig | 2 - lib/compiler_rt/extenddfxf2.zig | 2 - lib/compiler_rt/extendhfdf2.zig | 2 - lib/compiler_rt/extendhfsf2.zig | 2 - lib/compiler_rt/extendhftf2.zig | 2 - lib/compiler_rt/extendhfxf2.zig | 2 - lib/compiler_rt/extendsfdf2.zig | 2 - lib/compiler_rt/extendsftf2.zig | 2 - lib/compiler_rt/extendsfxf2.zig | 2 - lib/compiler_rt/extendxftf2.zig | 2 - lib/compiler_rt/fabs.zig | 2 - lib/compiler_rt/fixdfdi.zig | 2 - lib/compiler_rt/fixdfei.zig | 2 - lib/compiler_rt/fixdfsi.zig | 2 - lib/compiler_rt/fixdfti.zig | 2 - lib/compiler_rt/fixhfdi.zig | 2 - lib/compiler_rt/fixhfei.zig | 2 - lib/compiler_rt/fixhfsi.zig | 2 - lib/compiler_rt/fixhfti.zig | 2 - lib/compiler_rt/fixsfdi.zig | 2 - lib/compiler_rt/fixsfei.zig | 2 - lib/compiler_rt/fixsfsi.zig | 2 - lib/compiler_rt/fixsfti.zig | 2 - lib/compiler_rt/fixtfdi.zig | 2 - lib/compiler_rt/fixtfei.zig | 2 - lib/compiler_rt/fixtfsi.zig | 2 - lib/compiler_rt/fixtfti.zig | 2 - lib/compiler_rt/fixunsdfdi.zig | 2 - lib/compiler_rt/fixunsdfei.zig | 2 - lib/compiler_rt/fixunsdfsi.zig | 2 - lib/compiler_rt/fixunsdfti.zig | 2 - lib/compiler_rt/fixunshfdi.zig | 2 - lib/compiler_rt/fixunshfei.zig | 2 - lib/compiler_rt/fixunshfsi.zig | 2 - lib/compiler_rt/fixunshfti.zig | 2 - lib/compiler_rt/fixunssfdi.zig | 2 - lib/compiler_rt/fixunssfei.zig | 2 - lib/compiler_rt/fixunssfsi.zig | 2 - lib/compiler_rt/fixunssfti.zig | 2 - lib/compiler_rt/fixunstfdi.zig | 2 - lib/compiler_rt/fixunstfei.zig | 2 - lib/compiler_rt/fixunstfsi.zig | 2 - lib/compiler_rt/fixunstfti.zig | 2 - lib/compiler_rt/fixunsxfdi.zig | 2 - lib/compiler_rt/fixunsxfei.zig | 2 - lib/compiler_rt/fixunsxfsi.zig | 2 - lib/compiler_rt/fixunsxfti.zig | 2 - lib/compiler_rt/fixxfdi.zig | 2 - lib/compiler_rt/fixxfei.zig | 2 - lib/compiler_rt/fixxfsi.zig | 2 - lib/compiler_rt/fixxfti.zig | 2 - lib/compiler_rt/floatdidf.zig | 2 - lib/compiler_rt/floatdihf.zig | 2 - lib/compiler_rt/floatdisf.zig | 2 - lib/compiler_rt/floatditf.zig | 2 - lib/compiler_rt/floatdixf.zig | 2 - lib/compiler_rt/floateidf.zig | 2 - lib/compiler_rt/floateihf.zig | 2 - lib/compiler_rt/floateisf.zig | 2 - lib/compiler_rt/floateitf.zig | 2 - lib/compiler_rt/floateixf.zig | 2 - lib/compiler_rt/floatsidf.zig | 2 - lib/compiler_rt/floatsihf.zig | 2 - lib/compiler_rt/floatsisf.zig | 2 - lib/compiler_rt/floatsitf.zig | 2 - lib/compiler_rt/floatsixf.zig | 2 - lib/compiler_rt/floattidf.zig | 2 - lib/compiler_rt/floattihf.zig | 2 - lib/compiler_rt/floattisf.zig | 2 - lib/compiler_rt/floattitf.zig | 2 - lib/compiler_rt/floattixf.zig | 2 - lib/compiler_rt/floatundidf.zig | 2 - lib/compiler_rt/floatundihf.zig | 2 - lib/compiler_rt/floatundisf.zig | 2 - lib/compiler_rt/floatunditf.zig | 2 - lib/compiler_rt/floatundixf.zig | 2 - lib/compiler_rt/floatuneidf.zig | 2 - lib/compiler_rt/floatuneihf.zig | 2 - lib/compiler_rt/floatuneisf.zig | 2 - lib/compiler_rt/floatuneitf.zig | 2 - lib/compiler_rt/floatuneixf.zig | 2 - lib/compiler_rt/floatunsidf.zig | 2 - lib/compiler_rt/floatunsihf.zig | 2 - lib/compiler_rt/floatunsisf.zig | 2 - lib/compiler_rt/floatunsitf.zig | 2 - lib/compiler_rt/floatunsixf.zig | 2 - lib/compiler_rt/floatuntidf.zig | 2 - lib/compiler_rt/floatuntihf.zig | 2 - lib/compiler_rt/floatuntisf.zig | 2 - lib/compiler_rt/floatuntitf.zig | 2 - lib/compiler_rt/floatuntixf.zig | 2 - lib/compiler_rt/floor.zig | 2 - lib/compiler_rt/fma.zig | 2 - lib/compiler_rt/fmax.zig | 2 - lib/compiler_rt/fmin.zig | 2 - lib/compiler_rt/fmod.zig | 2 - lib/compiler_rt/gedf2.zig | 2 - lib/compiler_rt/gehf2.zig | 2 - lib/compiler_rt/gesf2.zig | 2 - lib/compiler_rt/getf2.zig | 2 - lib/compiler_rt/gexf2.zig | 2 - lib/compiler_rt/int.zig | 2 - lib/compiler_rt/log.zig | 2 - lib/compiler_rt/log10.zig | 2 - lib/compiler_rt/log2.zig | 2 - lib/compiler_rt/modti3.zig | 2 - lib/compiler_rt/mulXi3.zig | 2 - lib/compiler_rt/muldc3.zig | 2 - lib/compiler_rt/muldf3.zig | 2 - lib/compiler_rt/mulhc3.zig | 2 - lib/compiler_rt/mulhf3.zig | 2 - lib/compiler_rt/mulo.zig | 2 - lib/compiler_rt/mulsc3.zig | 2 - lib/compiler_rt/mulsf3.zig | 2 - lib/compiler_rt/multc3.zig | 2 - lib/compiler_rt/multf3.zig | 2 - lib/compiler_rt/mulvsi3.zig | 2 - lib/compiler_rt/mulxc3.zig | 2 - lib/compiler_rt/mulxf3.zig | 2 - lib/compiler_rt/negXi2.zig | 2 - lib/compiler_rt/negdf2.zig | 2 - lib/compiler_rt/neghf2.zig | 2 - lib/compiler_rt/negsf2.zig | 2 - lib/compiler_rt/negtf2.zig | 2 - lib/compiler_rt/negv.zig | 2 - lib/compiler_rt/negxf2.zig | 2 - lib/compiler_rt/parity.zig | 2 - lib/compiler_rt/popcount.zig | 2 - lib/compiler_rt/powiXf2.zig | 2 - lib/compiler_rt/round.zig | 2 - lib/compiler_rt/shift.zig | 2 - lib/compiler_rt/sin.zig | 2 - lib/compiler_rt/sincos.zig | 2 - lib/compiler_rt/sqrt.zig | 2 - lib/compiler_rt/stack_probe.zig | 2 - lib/compiler_rt/subdf3.zig | 2 - lib/compiler_rt/subhf3.zig | 2 - lib/compiler_rt/subsf3.zig | 2 - lib/compiler_rt/subtf3.zig | 2 - lib/compiler_rt/subvdi3.zig | 2 - lib/compiler_rt/subvsi3.zig | 2 - lib/compiler_rt/subxf3.zig | 2 - lib/compiler_rt/tan.zig | 2 - lib/compiler_rt/trunc.zig | 2 - lib/compiler_rt/truncdfhf2.zig | 2 - lib/compiler_rt/truncdfsf2.zig | 2 - lib/compiler_rt/truncsfhf2.zig | 2 - lib/compiler_rt/trunctfdf2.zig | 2 - lib/compiler_rt/trunctfhf2.zig | 2 - lib/compiler_rt/trunctfsf2.zig | 2 - lib/compiler_rt/trunctfxf2.zig | 2 - lib/compiler_rt/truncxfdf2.zig | 2 - lib/compiler_rt/truncxfhf2.zig | 2 - lib/compiler_rt/truncxfsf2.zig | 2 - lib/compiler_rt/udivmodti4.zig | 2 - lib/compiler_rt/udivti3.zig | 2 - lib/compiler_rt/umodti3.zig | 2 - lib/compiler_rt/unorddf2.zig | 2 - lib/compiler_rt/unordhf2.zig | 2 - lib/compiler_rt/unordsf2.zig | 2 - lib/compiler_rt/unordtf2.zig | 2 - lib/compiler_rt/unordxf2.zig | 2 - lib/init/src/main.zig | 20 +- lib/std/Build.zig | 64 +- lib/std/Build/Cache.zig | 35 +- lib/std/Build/Step.zig | 85 +- lib/std/Build/Step/Compile.zig | 8 +- lib/std/Build/Step/Fmt.zig | 2 +- lib/std/Build/Step/Options.zig | 6 +- lib/std/Build/Step/Run.zig | 280 ++-- lib/std/Build/Watch.zig | 21 +- lib/std/Build/Watch/FsEvents.zig | 12 +- lib/std/Build/WebServer.zig | 46 +- lib/std/Io.zig | 8 + lib/std/Io/Dir.zig | 7 +- lib/std/Io/Threaded.zig | 2628 +++++++++++++++++++++++++++++--- lib/std/Io/Threaded/test.zig | 32 +- lib/std/Progress.zig | 23 +- lib/std/Random/benchmark.zig | 11 +- lib/std/c.zig | 44 +- lib/std/crypto/benchmark.zig | 20 +- lib/std/debug.zig | 2 +- lib/std/debug/ElfFile.zig | 10 +- lib/std/debug/SelfInfo/Elf.zig | 1 + lib/std/dynamic_library.zig | 28 +- lib/std/fs/path.zig | 424 ++++-- lib/std/fs/test.zig | 2 +- lib/std/hash/benchmark.zig | 11 +- lib/std/heap/debug_allocator.zig | 7 +- lib/std/http/Client.zig | 19 +- lib/std/os.zig | 65 +- lib/std/os/emscripten.zig | 6 +- lib/std/os/linux.zig | 27 +- lib/std/os/linux/IoUring/test.zig | 2 +- lib/std/os/linux/syscalls.zig | 3 +- lib/std/os/windows.zig | 150 +- lib/std/os/windows/kernel32.zig | 2 +- lib/std/os/windows/test.zig | 6 +- lib/std/posix.zig | 551 +------ lib/std/posix/test.zig | 46 +- lib/std/process.zig | 2036 ++++--------------------- lib/std/process/Args.zig | 976 ++++++++++++ lib/std/process/Child.zig | 1799 +--------------------- lib/std/process/Environ.zig | 822 ++++++++++ lib/std/start.zig | 333 ++-- lib/std/std.zig | 17 +- lib/std/zig.zig | 35 +- lib/std/zig/LibCDirs.zig | 14 +- lib/std/zig/LibCInstallation.zig | 80 +- lib/std/zig/WindowsSdk.zig | 77 +- lib/std/zig/system/NativePaths.zig | 39 +- lib/std/zig/system/darwin.zig | 8 +- src/Compilation.zig | 99 +- src/DarwinPosixSpawn.zig | 225 --- src/Zcu/PerThread.zig | 5 +- src/introspect.zig | 37 +- src/libs/freebsd.zig | 2 + src/libs/glibc.zig | 2 + src/libs/libcxx.zig | 2 + src/libs/libtsan.zig | 1 + src/libs/libunwind.zig | 1 + src/libs/mingw.zig | 1 + src/libs/musl.zig | 1 + src/libs/netbsd.zig | 2 + src/link/Lld.zig | 55 +- src/main.zig | 549 +++---- src/print_env.zig | 10 +- test/src/Debugger.zig | 2 +- test/src/StackTrace.zig | 6 +- test/src/convert-stack-trace.zig | 15 +- test/standalone/child_process/child.zig | 24 +- test/standalone/child_process/main.zig | 35 +- test/standalone/cmakedefine/check.zig | 12 +- test/standalone/coff_dwarf/main.zig | 11 +- test/standalone/dirname/exists_in.zig | 12 +- test/standalone/dirname/has_basename.zig | 12 +- test/standalone/dirname/touch.zig | 12 +- test/standalone/empty_env/build.zig | 2 +- test/standalone/empty_env/main.zig | 7 +- test/standalone/entry_point/check_differ.zig | 14 +- test/standalone/env_vars/main.zig | 202 ++- test/standalone/install_headers/check_exists.zig | 12 +- test/standalone/libfuzzer/main.zig | 13 +- test/standalone/load_dynamic_library/main.zig | 7 +- test/standalone/posix/cwd.zig | 18 +- test/standalone/posix/getenv.zig | 28 +- test/standalone/posix/relpaths.zig | 10 +- test/standalone/run_cwd/check_file_exists.zig | 9 +- test/standalone/run_output_caching/main.zig | 6 +- test/standalone/run_output_paths/create_file.zig | 6 +- test/standalone/self_exe_symlink/create-symlink.zig | 18 +- test/standalone/self_exe_symlink/main.zig | 11 +- test/standalone/simple/cat/main.zig | 14 +- test/standalone/simple/guess_number/main.zig | 17 +- test/standalone/simple/hello_world/hello.zig | 14 +- test/standalone/windows_argv/build.zig | 2 +- test/standalone/windows_argv/fuzz.zig | 24 +- test/standalone/windows_argv/lib.zig | 7 +- test/standalone/windows_bat_args/echo-args.zig | 11 +- test/standalone/windows_bat_args/fuzz.zig | 21 +- test/standalone/windows_bat_args/test.zig | 22 +- test/standalone/windows_paths/relative.zig | 19 +- test/standalone/windows_paths/test.zig | 22 +- test/standalone/windows_spawn/main.zig | 18 +- test/tests.zig | 4 +- tools/docgen.zig | 16 +- tools/doctest.zig | 86 +- tools/dump-cov.zig | 19 +- tools/fetch_them_macos_headers.zig | 32 +- tools/gen_macos_headers_c.zig | 16 +- tools/gen_outline_atomics.zig | 11 +- tools/gen_spirv_spec.zig | 98 +- tools/gen_stubs.zig | 14 +- tools/generate_JSONTestSuite.zig | 10 +- tools/generate_c_size_and_align_checks.zig | 13 +- tools/generate_linux_syscalls.zig | 16 +- tools/incr-check.zig | 72 +- tools/migrate_langref.zig | 15 +- tools/process_headers.zig | 50 +- tools/update-linux-headers.zig | 16 +- tools/update_clang_options.zig | 30 +- tools/update_cpu_features.zig | 21 +- tools/update_crc_catalog.zig | 16 +- tools/update_freebsd_libc.zig | 13 +- tools/update_glibc.zig | 13 +- tools/update_mingw.zig | 13 +- tools/update_netbsd_libc.zig | 13 +- 342 files changed, 6772 insertions(+), 7357 deletions(-)