diff options
| author | Sage Hane <sage@sagehane.com> | 2022-01-29 13:52:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-29 15:52:08 +0200 |
| commit | e288148f60770a2cfa4c64f832b599172c383d36 (patch) | |
| tree | dc6042ecb785d35e47f6c53f58ce05225af869ca /lib/std/Thread.zig | |
| parent | 88edde4edc2d744a2f92b3f2b9417f1ec9e9af81 (diff) | |
| download | zig-e288148f60770a2cfa4c64f832b599172c383d36.tar.gz zig-e288148f60770a2cfa4c64f832b599172c383d36.zip | |
fs: Use `OpenMode` enum instead of read/write flags.
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 83c2992a45..182f7ccb6b 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -79,7 +79,7 @@ pub fn setName(self: Thread, name: []const u8) SetNameError!void { var buf: [32]u8 = undefined; const path = try std.fmt.bufPrint(&buf, "/proc/self/task/{d}/comm", .{self.getHandle()}); - const file = try std.fs.cwd().openFile(path, .{ .write = true }); + const file = try std.fs.cwd().openFile(path, .{ .mode = .write_only }); defer file.close(); try file.writer().writeAll(name); |
