| ... | @@ -29,7 +29,10 @@ pub fn get(p: *const Preopens, name: []const u8) ?Resource { | ... | @@ -29,7 +29,10 @@ pub fn get(p: *const Preopens, name: []const u8) ?Resource { |
| 29 | switch (native_os) { | 29 | switch (native_os) { |
| 30 | .wasi => { | 30 | .wasi => { |
| 31 | const index = p.map.getIndex(name) orelse return null; | 31 | const index = p.map.getIndex(name) orelse return null; |
| 32 | if (index <= 2) return .{ .file = .{ .handle = @intCast(index) } }; | 32 | if (index <= 2) return .{ .file = .{ |
| | 33 | .handle = @intCast(index), |
| | 34 | .flags = .{ .nonblocking = false }, |
| | 35 | } }; |
| 33 | return .{ .dir = .{ .handle = @intCast(index) } }; | 36 | return .{ .dir = .{ .handle = @intCast(index) } }; |
| 34 | }, | 37 | }, |
| 35 | else => { | 38 | else => { |