docs(debt): update the console and random device entries to current main #3849

Merged
LeandroLP23 merged 2 commits from upstream-pr/3849 into main 2026-10-12 20:11:29 +00:00
LeandroLP23 commented 2026-10-11 17:56:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T17:56:10Z.


What

Two TechnicalDebt entries describe behaviour main no longer has. Doc-only.

  • Relinked executable opens a console. Since 908befe81, --windows-gui selects the GUI subsystem (documented in docs/user/USAGE.md). The entry now says that the console is the default, and that a GUI build started from Explorer loses its output, as #3282 describes.

  • /dev/random and /dev/urandom. The entry still says that a duped descriptor reads as an empty file and that select sees the null device. In fact:

    • dup and dup2 carry the random device over to the new descriptor (File/src/Stdio.cpp, File::RememberRandomDevice).
    • select reports both devices ready (Socket/src/Socket.cpp), as the select entry already says.

    Those two clauses are dropped. The fstat, lseek and mmap clauses stay, as those calls still see the null device.

Tested

  • DOOM (PPSA99666) relinked with --windows --windows-gui on main a11c8f7f7 has PE subsystem 2 and behaves like the console build over 3 runs each on a Radeon 860M, Windows 11 (26300).
  • tools/check_conventions.py --base origin/main passes.
  • Fork CI: https://github.com/LeandroLP23/AnyPS5/actions/runs/38159694548. It shows only the failures main has: guest_filesystem (#3518), guest_kernel_sys (#3510) and windows_exceptions (#3411) on Windows, and agc_driver_emulated_color_compare, agc_driver_image_plane_address_on_line_implicit_lod and guest_kernel_stack_protect on Linux.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4821115355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3849). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-11T17:56:10Z. --- ### What Two TechnicalDebt entries describe behaviour `main` no longer has. Doc-only. - **Relinked executable opens a console.** Since 908befe81, `--windows-gui` selects the GUI subsystem (documented in `docs/user/USAGE.md`). The entry now says that the console is the default, and that a GUI build started from Explorer loses its output, as #3282 describes. - **`/dev/random` and `/dev/urandom`.** The entry still says that a `dup`ed descriptor reads as an empty file and that `select` sees the null device. In fact: - `dup` and `dup2` carry the random device over to the new descriptor (`File/src/Stdio.cpp`, `File::RememberRandomDevice`). - `select` reports both devices ready (`Socket/src/Socket.cpp`), as the `select` entry already says. Those two clauses are dropped. The `fstat`, `lseek` and `mmap` clauses stay, as those calls still see the null device. ### Tested - DOOM (PPSA99666) relinked with `--windows --windows-gui` on `main` `a11c8f7f7` has PE subsystem 2 and behaves like the console build over 3 runs each on a Radeon 860M, Windows 11 (26300). - `tools/check_conventions.py --base origin/main` passes. - Fork CI: https://github.com/LeandroLP23/AnyPS5/actions/runs/38159694548. It shows only the failures `main` has: `guest_filesystem` (#3518), `guest_kernel_sys` (#3510) and `windows_exceptions` (#3411) on Windows, and `agc_driver_emulated_color_compare`, `agc_driver_image_plane_address_on_line_implicit_lod` and `guest_kernel_stack_protect` on Linux. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes (Claude Code)
LeandroLP23 commented 2026-10-12 09:48:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-12T09:48:30Z.


@MarcZX100 #4237 adds its entry on the line after this PR's console entry in TechnicalDebt.md, so whichever merges second hits a one-line conflict. Neither depends on the other. If #4237 goes in first, I'll rebase this one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6121803223 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3849#issuecomment-6121803223). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-12T09:48:30Z. --- @MarcZX100 #4237 adds its entry on the line after this PR's console entry in `TechnicalDebt.md`, so whichever merges second hits a one-line conflict. Neither depends on the other. If #4237 goes in first, I'll rebase this one.
github-actions[bot] commented 2026-10-12 19:05:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T19:05:54Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4237 docs/dev/debt/relinker.md L6
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6130791281 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3849#issuecomment-6130791281). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T19:05:54Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4237 | `docs/dev/debt/relinker.md` [L6](https://github.com/boykopovar/AnyPS5/blob/01422156878b455efc0bbfaa33cd5b0cd28c2587/docs/dev/debt/relinker.md#L6) | | |
adriadam10 commented 2026-10-12 20:11:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T20:11:25Z.


Re-checked after the rebase onto the split debt files: --windows-gui (docs/user/USAGE.md), dup/dup2 carrying the random device (Stdio.cpp), select reporting it ready (Socket.cpp, and its own entry), and fstat/lseek/mmap still seeing the null device. Docs only; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131811582 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3849#issuecomment-6131811582). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-12T20:11:25Z. --- Re-checked after the rebase onto the split debt files: `--windows-gui` (`docs/user/USAGE.md`), `dup`/`dup2` carrying the random device (`Stdio.cpp`), `select` reporting it ready (`Socket.cpp`, and its own entry), and `fstat`/`lseek`/`mmap` still seeing the null device. Docs only; merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3849
No description provided.