diff options
| author | Sardorbek Imomaliev <3041675+imomaliev@users.noreply.github.com> | 2025-08-21 11:36:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 12:36:57 +0200 |
| commit | 01b5023868a2881d69e2947c0fd7d9bcf51a1698 (patch) | |
| tree | 2a2aef147fa22c9ce106cc3549acfd7030b802ee /lib/std/process.zig | |
| parent | cab6d752e8f6f6d3f538075840acc108238feda3 (diff) | |
| download | zig-01b5023868a2881d69e2947c0fd7d9bcf51a1698.tar.gz zig-01b5023868a2881d69e2947c0fd7d9bcf51a1698.zip | |
drop NameTooLong from sysctlbynameZ error set (#24909)
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index 2e9cb1fe85..360c3f6af0 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -1759,7 +1759,7 @@ pub fn totalSystemMemory() TotalSystemMemoryError!u64 { var physmem: c_ulong = undefined; var len: usize = @sizeOf(c_ulong); posix.sysctlbynameZ("hw.physmem", &physmem, &len, null, 0) catch |err| switch (err) { - error.NameTooLong, error.UnknownName => unreachable, + error.UnknownName => unreachable, else => return error.UnknownTotalSystemMemory, }; return @as(usize, @intCast(physmem)); |
