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/Thread.zig | |
| parent | cab6d752e8f6f6d3f538075840acc108238feda3 (diff) | |
| download | zig-01b5023868a2881d69e2947c0fd7d9bcf51a1698.tar.gz zig-01b5023868a2881d69e2947c0fd7d9bcf51a1698.zip | |
drop NameTooLong from sysctlbynameZ error set (#24909)
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 63af3796b7..e6d1c79d01 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -761,7 +761,7 @@ const PosixThreadImpl = struct { var count_len: usize = @sizeOf(c_int); const name = if (comptime target.os.tag.isDarwin()) "hw.logicalcpu" else "hw.ncpu"; posix.sysctlbynameZ(name, &count, &count_len, null, 0) catch |err| switch (err) { - error.NameTooLong, error.UnknownName => unreachable, + error.UnknownName => unreachable, else => |e| return e, }; return @as(usize, @intCast(count)); |
