0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley e098b287e1 std.fs.File.writevAll: fix behavior for 0-length vectors
The OS layer expects pointer addresses to be inside the application's
address space even if the length is zero. Meanwhile, in Zig, slices may
have undefined pointer addresses when the length is zero. So this
function now modifies the iov_base fields when the length is zero.

This is a companion commit to b4893eb05565b2cb033c6ed88617d73faf878455.
History 2023-03-15 10:48:15 -07:00
..
compiler_rt compiler_rt: fix rare case in udivei4 2023-03-07 03:00:08 -05:00
docs Zir: move set_cold from Inst.Tag to Inst.Extended 2023-03-03 21:16:21 +01:00
include C backend: improve ergonomics of zig.h a little bit 2022-11-13 16:50:16 -07:00
init-exe fix init-exe, init-lib templates 2023-01-31 15:09:35 -07:00
init-lib fix init-exe, init-lib templates 2023-01-31 15:09:35 -07:00
libc mingw: stop using K&R-style function definitions 2023-02-01 22:11:16 -05:00
libcxx dragonfly: port libc++ 2023-01-02 19:18:33 -05:00
libcxxabi update libcxxabi to LLVM 15 2022-08-04 18:02:01 -07:00
libunwind update libunwind to LLVM 15 2022-08-04 18:09:10 -07:00
std std.fs.File.writevAll: fix behavior for 0-length vectors 2023-03-15 10:48:15 -07:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig build runner: tweak progress bar display 2023-03-15 10:48:15 -07:00
c.zig Add support for mips64/mips64el 2023-02-04 15:19:53 -05:00
compiler_rt.zig compiler_rt: declutter int.zig, add mulXi3 tests (#14623) 2023-02-24 13:27:02 -05:00
ssp.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
test_runner.zig test runner: remove one superfluous stack frame 2023-03-15 10:48:14 -07:00
zig.h zig.h: implement zig_breakpoint and zig_trap for more targets 2023-03-07 12:46:35 -05:00