| ... | ... | @@ -809,6 +809,7 @@ pub fn openFile(self: Dir, sub_path: []const u8, flags: File.OpenFlags) File.Ope |
| 809 | 809 | base.FD_TELL = true; |
| 810 | 810 | base.FD_SEEK = true; |
| 811 | 811 | base.FD_FILESTAT_GET = true; |
| 812 | base.POLL_FD_READWRITE = true; |
| 812 | 813 | } |
| 813 | 814 | if (flags.isWrite()) { |
| 814 | 815 | base.FD_WRITE = true; |
| ... | ... | @@ -821,6 +822,7 @@ pub fn openFile(self: Dir, sub_path: []const u8, flags: File.OpenFlags) File.Ope |
| 821 | 822 | base.FD_ADVISE = true; |
| 822 | 823 | base.FD_FILESTAT_SET_TIMES = true; |
| 823 | 824 | base.FD_FILESTAT_SET_SIZE = true; |
| 825 | base.POLL_FD_READWRITE = true; |
| 824 | 826 | } |
| 825 | 827 | const fd = try posix.openatWasi(self.fd, sub_path, .{}, .{}, .{}, base, .{}); |
| 826 | 828 | return .{ .handle = fd }; |
| ... | ... | @@ -982,6 +984,7 @@ pub fn createFile(self: Dir, sub_path: []const u8, flags: File.CreateFlags) File |
| 982 | 984 | .FD_FILESTAT_SET_TIMES = true, |
| 983 | 985 | .FD_FILESTAT_SET_SIZE = true, |
| 984 | 986 | .FD_FILESTAT_GET = true, |
| 987 | .POLL_FD_READWRITE = true, |
| 985 | 988 | }, .{}), |
| 986 | 989 | }; |
| 987 | 990 | } |