zig/lib/std
Frank Denis 4930094e62 valgrind.memcheck: fix makeMem*()
The `makeMem*()` functions crashed under valgrind in Debug and
ReleaseSafe modes.

The reason being that `doMemCheckClientRequestExpr()` returns `0`
when not running under Valgrind, and `maxInt(usize)` when running
under Valgrind.

Thus, `@as(i1, @intCast(maxInt(usize)))` always fails and these
functions crashed before returning.

That being said, what these functions used to return was quite
unexpected: `0` on error and `-1` on success (=running under valgrind).
That doesn't match any Zig nor C conventions.

But that return value doesn't seem to be very useful. Either we are
running under Valgrind or we are not. There's no point in checking this
for every single call. Applications are likely to always discard it.

So, just return a `void` instead.

Also avoid function comments that start with `Similarly, ...` because
that doesn't refer to anything in the context of autodoc or in IDEs.
2023-10-03 02:51:01 -07:00
..
atomic write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
Build std.Build: expose -idirafter to the build system 2023-10-02 16:22:07 -07:00
c correctly detect apple a15 and a16 chips 2023-10-03 00:36:59 -07:00
compress all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
crypto std.crypto.aead: Consistent decryption tail and doc fixes (#16781) 2023-08-14 21:39:51 +02:00
dwarf Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
event all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fmt re-enable test "fmt.parseFloat nan and inf" after llvm fix 2023-07-25 11:03:11 -07:00
fs fs tests: Skip UNC path types in Dir.rename tests 2023-09-14 16:30:41 +03:00
hash std/hash: perform iterative + smhasher tests at comptime 2023-09-02 16:58:03 +12:00
heap std: enable FailingAllocator to fail on resize 2023-09-06 19:06:32 +03:00
http std.http: introduce options to http client to allow for raw uris 2023-09-28 14:16:39 +03:00
io Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
json std.json: add fmt function (#17055) 2023-09-13 18:24:59 -04:00
math std.math.big.int.Const.order 0 == -0 (#17299) 2023-09-29 18:09:47 +13:00
mem mem: explicit dupe and dupeZ error on Allocator 2023-09-07 21:56:57 +03:00
meta all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
net std.net: Fix IPv6 address parsing for single digit 2023-09-06 11:14:24 +03:00
os Allow only relative paths. 2023-09-29 00:32:43 -07:00
rand Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
sort improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
target nvptx: omit sm_90a from the CPU target features for now 2023-09-19 09:37:53 -07:00
testing std: enable FailingAllocator to fail on resize 2023-09-06 19:06:32 +03:00
Thread Fix counting in SingleThreadedRwLock's tryLockShared (#16560) 2023-07-26 08:19:52 -05:00
time all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
tz
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind valgrind.memcheck: fix makeMem*() 2023-10-03 02:51:01 -07:00
zig correctly detect apple a15 and a16 chips 2023-10-03 00:36:59 -07:00
array_hash_map.zig std.MultiArrayList: add test coverage for 0-bit structs 2023-09-24 15:49:56 -07:00
array_list.zig Improve (Unmanaged)ArrayList.insert 2023-09-30 16:17:22 -07:00
ascii.zig
atomic.zig
base64.zig Optimize std.base64.standard.Encoder.encode 2023-08-29 16:00:31 -04:00
bit_set.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
BitStack.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
bounded_array.zig Smaller memory footprint for BoundedArray (#16299) 2023-07-03 13:58:03 -04:00
buf_map.zig
buf_set.zig
Build.zig Support non zig dependencies 2023-09-24 02:47:21 +01:00
builtin.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
c.zig std: correct getcontext for Android bionic libc 2023-09-16 14:22:09 -07:00
child_process.zig Sema: add @errorCast which works for both error sets and error unions 2023-10-01 17:00:01 +03:00
coff.zig std.coff: Fixed compile error. 2023-09-02 00:18:53 +02:00
compress.zig
comptime_string_map.zig ComptimeStringMap: Add version that takes an equality function 2023-09-14 11:03:15 -07:00
crypto.zig
cstr.zig std.cstr: deprecate namespace 2023-06-25 14:51:03 -07:00
debug.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
dwarf.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
dynamic_library.zig Windows: Fix TooManyParentDirs handling for paths that shouldn't be cwd-relative 2023-08-11 18:58:40 -07:00
elf.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
enums.zig Allow empty enum to be used in EnumSet/EnumMap 2023-09-28 21:48:39 +00:00
event.zig
fifo.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
fmt.zig Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
fs.zig remove outdated error message in std.fs 2023-09-08 21:47:44 +03:00
hash.zig
hash_map.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
heap.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
http.zig std.http: add identity to content encodings (#16493) 2023-09-26 17:16:40 -04:00
Ini.zig
io.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
json.zig std.json: add fmt function (#17055) 2023-09-13 18:24:59 -04:00
leb128.zig Use builtin inference over @as where possible 2023-07-24 10:23:51 -07:00
linked_list.zig std: Move TailQueue alias to correct namespace 2023-08-28 17:41:37 -07:00
log.zig
macho.zig macho: add helper for accessing tools array in LC_BUILD_VERSION cmd 2023-08-18 11:55:29 +02:00
math.zig Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
mem.zig std.mem.zeroes: Zero out entire extern union, including padding 2023-10-01 02:39:05 -07:00
meta.zig Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
multi_array_list.zig std.MultiArrayList: add test coverage for 0-bit structs 2023-09-24 15:49:56 -07:00
net.zig std.net: Fix IPv6 address parsing for single digit 2023-09-06 11:14:24 +03:00
once.zig
os.zig Sema: add @errorCast which works for both error sets and error unions 2023-10-01 17:00:01 +03:00
packed_int_array.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
pdb.zig std.pdb: fix incorrect field alignment in ptrCast 2023-06-30 23:23:03 -04:00
priority_dequeue.zig
priority_queue.zig [priority_queue] Simplify sifting & fix edge case 2023-07-24 12:58:19 -07:00
process.zig std.process.totalSystemMemory: return correct error type on FreeBSD 2023-08-01 19:27:04 -07:00
Progress.zig std.Progress: add optional unit to progress indicator 2023-07-25 13:51:22 +01:00
rand.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
RingBuffer.zig
segmented_list.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
SemanticVersion.zig
simd.zig std: Reactivate skipped tests w.r.t. llvm/llvm-project#55522 2023-09-27 01:37:25 +03:00
sort.zig improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
start.zig start: workaround for LLVM 17 regression 2023-09-19 09:37:32 -07:00
start_windows_tls.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
std.zig ComptimeStringMap: Add version that takes an equality function 2023-09-14 11:03:15 -07:00
tar.zig std.tar: add support for file path in pax attributes 2023-09-08 21:55:14 +03:00
target.zig compiler_rt: fix arm hard-float f16 abi 2023-09-19 09:37:53 -07:00
testing.zig std.testing: expectEqualDeep() - support self-referential structs 2023-09-23 20:25:57 +00:00
Thread.zig Merge pull request #16622 from jacobly0/cbe-asm-compat 2023-07-31 15:34:32 -07:00
time.zig implement std.time.sleep for uefi 2023-07-07 11:57:09 -07:00
treap.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
tz.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
unicode.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
Uri.zig Allow only relative paths. 2023-09-29 00:32:43 -07:00
valgrind.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
wasm.zig
zig.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00