authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-24 17:14:51-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-26 19:58:56-08:00
logdc1d27a646b37bbdfae9c8bab46df6384921d13a
tree6768c047839e5f7787ca9fc6e4714dd89d933946
parentd7bf0dab8243d23e95c49ad9b27f54d21df116f0

std.Io.Threaded: more verbose TODO panic messages


1 files changed, 13 insertions(+), 13 deletions(-)

lib/std/Io/Threaded.zig+13-13
......@@ -3770,7 +3770,7 @@ fn dirReadHaiku(userdata: ?*anyopaque, dr: *Dir.Reader, buffer: []Dir.Entry) Dir
37703770 _ = userdata;
37713771 _ = dr;
37723772 _ = buffer;
3773 @panic("TODO");
3773 @panic("TODO implement dirReadHaiku");
37743774}
37753775
37763776fn dirReadWindows(userdata: ?*anyopaque, dr: *Dir.Reader, buffer: []Dir.Entry) Dir.Reader.Error!usize {
......@@ -5250,7 +5250,7 @@ fn dirSetPermissionsWindows(userdata: ?*anyopaque, dir: Dir, permissions: Dir.Pe
52505250 _ = t;
52515251 _ = dir;
52525252 _ = permissions;
5253 @panic("TODO");
5253 @panic("TODO implement dirSetPermissionsWindows");
52545254}
52555255
52565256fn dirSetPermissionsPosix(userdata: ?*anyopaque, dir: Dir, permissions: Dir.Permissions) Dir.SetPermissionsError!void {
......@@ -5268,7 +5268,7 @@ fn dirSetFilePermissions(
52685268 options: Dir.SetFilePermissionsOptions,
52695269) Dir.SetFilePermissionsError!void {
52705270 if (@sizeOf(Dir.Permissions) == 0) return;
5271 if (is_windows) @panic("TODO");
5271 if (is_windows) @panic("TODO implement dirSetFilePermissions windows");
52725272 const t: *Threaded = @ptrCast(@alignCast(userdata));
52735273 const current_thread = Thread.getCurrent(t);
52745274
......@@ -5557,7 +5557,7 @@ fn dirSetFileOwner(
55575557 _ = owner;
55585558 _ = group;
55595559 _ = options;
5560 @panic("TODO");
5560 @panic("TODO implement dirSetFileOwner");
55615561}
55625562
55635563const fileSync = switch (native_os) {
......@@ -6012,11 +6012,11 @@ fn dirSetTimestamps(
60126012 const current_thread = Thread.getCurrent(t);
60136013
60146014 if (is_windows) {
6015 @panic("TODO");
6015 @panic("TODO implement dirSetTimestamps windows");
60166016 }
60176017
60186018 if (native_os == .wasi and !builtin.link_libc) {
6019 @panic("TODO");
6019 @panic("TODO implement dirSetTimestamps wasi");
60206020 }
60216021
60226022 const times: [2]posix.timespec = .{
......@@ -6063,11 +6063,11 @@ fn dirSetTimestampsNow(
60636063 const current_thread = Thread.getCurrent(t);
60646064
60656065 if (is_windows) {
6066 @panic("TODO");
6066 @panic("TODO implement dirSetTimestampsNow windows");
60676067 }
60686068
60696069 if (native_os == .wasi and !builtin.link_libc) {
6070 @panic("TODO");
6070 @panic("TODO implement dirSetTimestampsNow wasi");
60716071 }
60726072
60736073 const flags: u32 = if (!options.follow_symlinks) posix.AT.SYMLINK_NOFOLLOW else 0;
......@@ -6188,7 +6188,7 @@ fn fileSetTimestampsNow(userdata: ?*anyopaque, file: File) File.SetTimestampsErr
61886188 const current_thread = Thread.getCurrent(t);
61896189
61906190 if (is_windows) {
6191 @panic("TODO");
6191 @panic("TODO implement fileSetTimestampsNow windows");
61926192 }
61936193
61946194 if (native_os == .wasi and !builtin.link_libc) {
......@@ -6836,7 +6836,7 @@ fn fileReadPositionalPosix(userdata: ?*anyopaque, file: File, data: []const []u8
68366836 const t: *Threaded = @ptrCast(@alignCast(userdata));
68376837 const current_thread = Thread.getCurrent(t);
68386838
6839 if (!have_preadv) @compileError("TODO");
6839 if (!have_preadv) @compileError("TODO implement fileReadPositionalPosix for cursed operating systems that don't support preadv (it's only Haiku)");
68406840
68416841 var iovecs_buffer: [max_iovecs_len]posix.iovec = undefined;
68426842 var i: usize = 0;
......@@ -7448,7 +7448,7 @@ fn fileWritePositional(
74487448 const t: *Threaded = @ptrCast(@alignCast(userdata));
74497449 const current_thread = Thread.getCurrent(t);
74507450
7451 if (is_windows) @panic("TODO");
7451 if (is_windows) @panic("TODO implement fileWritePositional windows");
74527452
74537453 var iovecs: [max_iovecs_len]posix.iovec_const = undefined;
74547454 var iovlen: iovlen_t = 0;
......@@ -7570,7 +7570,7 @@ fn fileWriteStreaming(
75707570 const t: *Threaded = @ptrCast(@alignCast(userdata));
75717571 const current_thread = Thread.getCurrent(t);
75727572
7573 if (is_windows) @panic("TODO");
7573 if (is_windows) @panic("TODO implement fileWriteStreaming windows");
75747574
75757575 var iovecs: [max_iovecs_len]posix.iovec_const = undefined;
75767576 var iovlen: iovlen_t = 0;
......@@ -8085,7 +8085,7 @@ fn netWriteFile(
80858085 _ = header;
80868086 _ = file_reader;
80878087 _ = limit;
8088 @panic("TODO");
8088 @panic("TODO implement netWriteFile");
80898089}
80908090
80918091fn netWriteFileUnavailable(