docs(debt): match the Windows directory descriptor entry to the code #9239

Merged
Dom3005 merged 1 commit from upstream-pr/9239 into main 2026-10-25 10:34:30 +00:00
Dom3005 commented 2026-10-21 16:17:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dom3005 on 2026-10-21T16:17:19Z.


What

The Windows directory descriptors entry in docs/dev/debt/libkernel.md describes two behaviours that the code no longer has:

  • It says getdents returns ENAMETOOLONG without consuming an entry whose UTF-8 name exceeds the one-byte d_namlen limit. d31e28308 (fix(libkernel): throw for unsupported directory entry names) replaced that with a throw in File::ReadDirectoryDescriptor, which getdents and getdirentries both go through.
  • It says getdirentries "still reports 0 through basep". #8591 made it report the entry index its block starts at (*base = state.cursor before the read), so a value from basep is now also a valid lseek offset.

This PR updates both sentences to match the code. It changes documentation only.

Tested

Not tested at runtime; documentation only. I checked the new text against core/libs/prx/libkernel/File/src/DirectoryDescriptor.cpp (ReadDirectoryDescriptor) and sceKernelGetdirentries in core/libs/prx/libkernel/File/src/Stdio.cpp on current main. python tools/check_conventions.py passes. tools/pr_overlap.py lists other open PRs that touch docs/dev/debt/libkernel.md, but none of them changes this entry.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4954755369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9239). Originally posted by [Dom3005](https://github.com/Dom3005) on 2026-10-21T16:17:19Z. --- ### What The `Windows directory descriptors` entry in `docs/dev/debt/libkernel.md` describes two behaviours that the code no longer has: - It says `getdents` returns `ENAMETOOLONG` without consuming an entry whose UTF-8 name exceeds the one-byte `d_namlen` limit. d31e28308 (`fix(libkernel): throw for unsupported directory entry names`) replaced that with a throw in `File::ReadDirectoryDescriptor`, which `getdents` and `getdirentries` both go through. - It says `getdirentries` "still reports 0 through `basep`". #8591 made it report the entry index its block starts at (`*base = state.cursor` before the read), so a value from `basep` is now also a valid `lseek` offset. This PR updates both sentences to match the code. It changes documentation only. ### Tested Not tested at runtime; documentation only. I checked the new text against `core/libs/prx/libkernel/File/src/DirectoryDescriptor.cpp` (`ReadDirectoryDescriptor`) and `sceKernelGetdirentries` in `core/libs/prx/libkernel/File/src/Stdio.cpp` on current `main`. `python tools/check_conventions.py` passes. `tools/pr_overlap.py` lists other open PRs that touch `docs/dev/debt/libkernel.md`, but none of them changes this entry. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!9239
No description provided.