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