[codex] Match MSL direct IO #155

Merged
coah80 merged 1 commits from agent/continue-0922/MSL-direct-io into main 2026-09-22 07:55:20 +00:00
coah80 commented 2026-09-22 07:54:44 +00:00 (Migrated from github.com)

What changed

Adds the readable C implementation of MSL __fwrite and marks MSL_Common/direct_io.c as matching. The matching exceptions flag also emits the unit's extab and extabindex sections.

Validation

  • re-agent doctor: ready
  • Focused unit match: code 100%, data 100%, function 100%, link 100%
  • __fwrite: 194/194 instructions, ctxdiff diffs 0
  • Both objects have no .data section, so pool_diff.py has no string pool to compare
  • The 43U build links through main.dol
  • The repository-wide DOL gate remains red on the current baseline: 34cb4ce50ca971f773613b08a8e8c4634cbffc8c vs expected 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Add __fwrite to MSL direct_io.c and mark object as matching

Implements the MSL direct I/O source with file-level definitions and the __fwrite stdio write routine, which handles append positioning, full/line/unbuffered modes, and error reporting through the stream error state. Marks direct_io.c as a matching object in configure.py and enables -Cpp_exceptions on.

  • Risk: direct_io.c is now built as matching with C++ exceptions enabled in configure.py; out-of-tree build configs referencing the old NonMatching status may need updating.

Macroscope summarized 47506ee.

## What changed Adds the readable C implementation of MSL `__fwrite` and marks `MSL_Common/direct_io.c` as matching. The matching exceptions flag also emits the unit's `extab` and `extabindex` sections. ## Validation - `re-agent doctor`: ready - Focused unit match: code 100%, data 100%, function 100%, link 100% - `__fwrite`: 194/194 instructions, `ctxdiff` diffs 0 - Both objects have no `.data` section, so `pool_diff.py` has no string pool to compare - The 43U build links through `main.dol` - The repository-wide DOL gate remains red on the current baseline: `34cb4ce50ca971f773613b08a8e8c4634cbffc8c` vs expected `26116613f624061ba99c8d1a299aaa6efa85670d` <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Add `__fwrite` to MSL `direct_io.c` and mark object as matching > Implements the MSL direct I/O source with file-level definitions and the `__fwrite` stdio write routine, which handles append positioning, full/line/unbuffered modes, and error reporting through the stream error state. Marks `direct_io.c` as a matching object in `configure.py` and enables `-Cpp_exceptions on`. > - Risk: `direct_io.c` is now built as matching with C++ exceptions enabled in [configure.py](https://github.com/coah80/wii-ipl/pull/155/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c); out-of-tree build configs referencing the old NonMatching status may need updating. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 47506ee.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.