zig/lib
Igor Anić 7d3a31872e tar: improve diagnostic reporting
Using Python testtar file (mentioned in #14310) to test diagnostic
reporting.
Added computing checksum by using both unsigned and signed header bytes
values.
Added skipping gnu exteneded sparse headers while reporting unsupported
header in diagnostic.

Note on testing:

wget https://github.com/python/cpython/raw/3.11/Lib/test/testtar.tar -O
/tmp/testtar.tar

```
test "Python testtar.tar file" {
    const file_name = "testtar.tar";

    var file = try std.fs.cwd().openFile("/tmp/" ++ file_name, .{});
    defer file.close();

    var diag = Options.Diagnostics{ .allocator = std.testing.allocator };
    defer diag.deinit();

    var iter = iterator(file.reader(), &diag);
    while (try iter.next()) |f| {
        std.debug.print("supported: {} {s} {d}\n", .{ f.kind, f.name, f.size });
        try f.skip();
    }
    for (diag.errors.items) |e| {
        switch (e) {
            .unsupported_file_type => |u| {
                std.debug.print("unsupported: {} {s}\n", .{ u.file_type, u.file_name });
            },
            else => unreachable,
        }
    }
}
```
2024-01-13 19:37:33 -07:00
..
compiler_rt Enable gnu_f16_abi on x86_64 2024-01-04 17:41:30 +02:00
docs Update styles in std docs to correct display glitch 2024-01-12 16:25:55 -08:00
include update C language headers to LLVM 17 2023-09-19 09:37:31 -07:00
init Grammar fixes (#18320) 2023-12-20 13:17:15 +02:00
libc mingw: remove pow.c from aarch64-windows mingw builds 2024-01-08 11:53:06 -07:00
libcxx update libcxx to latest LLVM release/17.x 2023-09-19 09:37:53 -07:00
libcxxabi libcxxabi: update to LLVM 17 2023-09-19 09:37:31 -07:00
libunwind libunwind: update to LLVM 17 2023-09-19 09:37:31 -07:00
std tar: improve diagnostic reporting 2024-01-13 19:37:33 -07:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
build_runner.zig zig build: handle stderr more elegantly 2024-01-10 17:11:26 -08:00
c.zig std: finish cleanup up asm 2023-07-31 03:49:21 -04:00
compiler_rt.zig move libssp into libcompiler_rt 2023-11-10 13:12:10 -07:00
test_runner.zig wasm: re-enable regressed tests 2023-11-01 19:47:15 +01:00
zig.h cbe: fix non-msvc externs and exports 2024-01-03 02:52:25 -05:00