zig/lib/std/fs
Pat Tullmann 2210c4c360 lib/std/posix: test ftruncate via std.fs.File.setEndPos()
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
2025-03-26 02:57:23 +01:00
..
AtomicFile.zig extract std.posix from std.os 2024-03-19 11:45:09 -07:00
Dir.zig lib/std: PermissionDenied/AccessDenied cleanup and fallout 2025-03-24 16:20:45 +01:00
File.zig std.fs.File: limit initial_cap according to max_bytes in readToEndAllocOptions 2025-01-30 16:42:15 +01:00
get_app_data_dir.zig std: Add support for SerenityOS in various places 2025-03-11 14:59:42 +00:00
path.zig std: add fs.path.fmtJoin 2025-01-25 04:48:00 +00:00
test.zig lib/std/posix: test ftruncate via std.fs.File.setEndPos() 2025-03-26 02:57:23 +01:00
wasi.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00