Pat Tullmann
Pat Tullmann
Add tests for empty initialization, and some more corner cases (empty key, very long key, duplicate keys). Fixes #18212
Build on https://github.com/ziglang/zig/pull/16970 with additional CLs for "weak_hidden_alias" and re-enabling disabled tests.
### Zig Version 0.12.0-dev.1836+dd189a354 ### Steps to Reproduce and Observed Behavior ``` // emptystruct.zig const std = @import("std"); const StructInProgress = struct { // x: usize, // add this field...
Add `glibc_runtime_check.c`: a simple test case that exercises glibc functions that might smoke out linking problems with Zig's C compiler. The build.zig compiles it against a variety of glibc versions....
PR https://github.com/ziglang/zig/pull/20679 ("std.c reorganization") switched feature-detection code to use `T != void` checks in place of `@hasDecl`. However, the default std.posix.system struct (used by freestanding targets) is empty, so compile-time...
The signature is documented as: ``` int link(const char *, const char *); ``` (see https://man7.org/linux/man-pages/man2/link.2.html or https://man.netbsd.org/link.2) And its not some Linux extension, the [syscall implementation](https://github.com/torvalds/linux/blob/21b136cc63d2a9ddd60d4699552b69c214b32964/fs/namei.c#L4794-L4797) only expects two...
Make `std.debug.StackIterator` compile on the `other` OS target, and port the "unwind_freestanding" test case to the `other` OS target. Inspired by #20833 which reported the original problem and pin-pointed the...
Make a clearer separation between the Posix defines for WASI without a libc (the `system` defined in posix.zig) and the Posix defines for WASI with a libc (which should mirror...
Add infinite loop detection to the `std.debug` backtraces. Make the backtrace and stacktrace code more robust on corner-case architectures. Expand the "unwind.zig" test case to exercise `std.debug.dumpCurrentStackTrace()`. And trigger a...
linux: futex v1 API cleanup * Use Ziggish `packed struct` for flags arguments. Old: `linux.FUTEX.WAIT` vs new: `.{ .cmd = .WAIT, .private = false }`. * rename `futex_wait` and `futex_wake`...