| ... | ... | @@ -100,7 +100,17 @@ pub const OutStream = struct { |
| 100 | 100 | .buffer = undefined, |
| 101 | 101 | }; |
| 102 | 102 | } else if (is_windows) { |
| 103 | | @compileError("TODO: windows OutStream.openMode"); |
| 103 | const handle = %return os.windowsOpen(path, system.GENERIC_WRITE, |
| 104 | system.FILE_SHARE_WRITE|system.FILE_SHARE_READ|system.FILE_SHARE_DELETE, |
| 105 | system.CREATE_ALWAYS, system.FILE_ATTRIBUTE_NORMAL, allocator); |
| 106 | return OutStream { |
| 107 | .fd = {}, |
| 108 | .handle = handle, |
| 109 | .handle_id = undefined, |
| 110 | .index = 0, |
| 111 | .buffer = undefined, |
| 112 | }; |
| 113 | |
| 104 | 114 | } else { |
| 105 | 115 | unreachable; |
| 106 | 116 | } |