mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Add a test for std.fs.File's `setEndPos` (which is a simple wrapper around `std.posix.ftruncate`) to exercise some success and failure paths. Explicitly check that the `ftruncate` length isn't negative when interpreted as a signed value. This avoids having to decode overloaded `EINVAL` errors. Add errno handling to Windows path to map INVALID_PARAMETER to FileTooBig. Fixes #22960 |
||
|---|---|---|
| .. | ||
| AtomicFile.zig | ||
| Dir.zig | ||
| File.zig | ||
| get_app_data_dir.zig | ||
| path.zig | ||
| test.zig | ||
| wasi.zig | ||