feat(posix): add mkostemp inventory export #13141

Merged
Celegans12 merged 1 commit from upstream-pr/13141 into main 2026-11-01 03:24:36 +00:00
Celegans12 commented 2026-10-30 04:09:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-30T04:09:46Z.


What

Adds the remaining named mkostemp inventory export (QP8dYkB8zCU) to the existing libScePosixForWebKit provider.

The binding comes from LIBRARIES.md and the per-library metadata, pinned to bfec40deb4c47a17d7603ee2bc79aa6862c0c56b. The existing provider owns the other 37 current named identities. The guest symbol is mkostemp_nid_postfix, matching the established mkstemp alias pattern and keeping it separate from the host C library function.

The new call immediately throws through NotImplemented_nid_no_patch. Its parameterless int declaration is an import-resolution placeholder, not a verified ABI prototype. Unknown signature and behavior are recorded in technical debt. This does not implement file creation or WebKit behavior.

Tested

Linux x86-64, GCC 13.3. Current topic base: upstream main 5ecef095b61e7a406b279c97896f3a8a6fbd6353.

  • python3 tools/check_conventions.py --base origin/main, public_headers, C++20 source compilation and whitespace checks passed.
  • The name/NID pair matches the pinned metadata and independent recomputation. A minimal DSO patched with the repository NID patcher contained QP8dYkB8zCU exactly once.
  • In the earlier combined baseline/change native run on base acf46d4ff8828fa514b88936cb8288f6cfc7334e, guest_posix_random and guest_posix_thread_name passed in both trees. guest_posix_filesystem and guest_posix_wrap failed identically in both trees because process_vm_readv returned EPERM in this sandbox. No new failure appeared.
  • Exact history review found no rejection of this export. Closed #6928 uses the host mkostemp in an unrelated kernel JIT file; merged #1613 implements the distinct mkstemp export.
  • tools/pr_overlap.py scanned the final topic head against all 1,461 open pull requests and reported no overlap.

The full all-library build and full CTest suite were not run. No Windows, PS5 hardware, GPU, title or Ghost of Yōtei validation. No tests were added solely to check symbol existence.

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 (ChatGPT Work)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5079329817 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13141). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-30T04:09:46Z. --- ### What Adds the remaining named `mkostemp` inventory export (`QP8dYkB8zCU`) to the existing `libScePosixForWebKit` provider. The binding comes from [`LIBRARIES.md`](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/LIBRARIES.md) and the [per-library metadata](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/data/firmware-13.60/libsceposixforwebkit-62f5eac58e.jsonl), pinned to `bfec40deb4c47a17d7603ee2bc79aa6862c0c56b`. The existing provider owns the other 37 current named identities. The guest symbol is `mkostemp_nid_postfix`, matching the established `mkstemp` alias pattern and keeping it separate from the host C library function. The new call immediately throws through `NotImplemented_nid_no_patch`. Its parameterless `int` declaration is an import-resolution placeholder, not a verified ABI prototype. Unknown signature and behavior are recorded in technical debt. This does not implement file creation or WebKit behavior. ### Tested Linux x86-64, GCC 13.3. Current topic base: upstream main `5ecef095b61e7a406b279c97896f3a8a6fbd6353`. - `python3 tools/check_conventions.py --base origin/main`, `public_headers`, C++20 source compilation and whitespace checks passed. - The name/NID pair matches the pinned metadata and independent recomputation. A minimal DSO patched with the repository NID patcher contained `QP8dYkB8zCU` exactly once. - In the earlier combined baseline/change native run on base `acf46d4ff8828fa514b88936cb8288f6cfc7334e`, `guest_posix_random` and `guest_posix_thread_name` passed in both trees. `guest_posix_filesystem` and `guest_posix_wrap` failed identically in both trees because `process_vm_readv` returned `EPERM` in this sandbox. No new failure appeared. - Exact history review found no rejection of this export. Closed #6928 uses the host `mkostemp` in an unrelated kernel JIT file; merged #1613 implements the distinct `mkstemp` export. - `tools/pr_overlap.py` scanned the final topic head against all 1,461 open pull requests and reported no overlap. The full all-library build and full CTest suite were not run. No Windows, PS5 hardware, GPU, title or Ghost of Yōtei validation. No tests were added solely to check symbol existence. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes (ChatGPT Work) <!-- yes / no -->
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!13141
No description provided.