| ... | @@ -604,11 +604,7 @@ pub const Dir = struct { | ... | @@ -604,11 +604,7 @@ pub const Dir = struct { |
| 604 | | 604 | |
| 605 | const fd = try os.openatWasi(self.fd, sub_path, 0x0, fdflags, rights); | 605 | const fd = try os.openatWasi(self.fd, sub_path, 0x0, fdflags, rights); |
| 606 | | 606 | |
| 607 | return File{ | 607 | return File{ .handle = fd }; |
| 608 | .handle = fd, | | |
| 609 | .io_mode = .blocking, | | |
| 610 | .async_block_allowed = File.async_block_allowed_no, | | |
| 611 | }; | | |
| 612 | } | 608 | } |
| 613 | | 609 | |
| 614 | pub const openFileC = @compileError("deprecated: renamed to openFileZ"); | 610 | pub const openFileC = @compileError("deprecated: renamed to openFileZ"); |
| ... | @@ -719,11 +715,7 @@ pub const Dir = struct { | ... | @@ -719,11 +715,7 @@ pub const Dir = struct { |
| 719 | | 715 | |
| 720 | const fd = try os.openatWasi(self.fd, sub_path, oflags, 0x0, rights); | 716 | const fd = try os.openatWasi(self.fd, sub_path, oflags, 0x0, rights); |
| 721 | | 717 | |
| 722 | return File{ | 718 | return File{ .handle = fd }; |
| 723 | .handle = fd, | | |
| 724 | .io_mode = .blocking, | | |
| 725 | .async_block_allowed = File.async_block_allowed_no, | | |
| 726 | }; | | |
| 727 | } | 719 | } |
| 728 | | 720 | |
| 729 | /// Same as `createFile` but the path parameter is null-terminated. | 721 | /// Same as `createFile` but the path parameter is null-terminated. |