feat(libc): implement flockfile and funlockfile #3081
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3081"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T21:51:04Z.
What
Carry babyhuey's explicitly offered
flockfile/funlockfilefix from issue #1578. Both exports now use the existing per-stream lock, so recursive locking and contention with standard I/O share the same synchronization.Tested
The contributor reports
guest_standard_streamspassing at least 3 repeated runs on Linux, and 3/3 on Windows in a combined test branch. The test checks recursive lock counts and that another thread'sfputcremains blocked until the matching unlocks. In this session, conventions andgit diff --checkpassed; the full local CMake configure was blocked by the unavailable pinned SDL2 submodule commit.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T21:51:49Z.
Progress report (
262c031→92c9296)📈 System libraries: 84.45% (+0.01%, +2 implemented functions)
✅ 2 implemented
flockfile_nid_postfixfunlockfile_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:00:50Z.
Checked on Linux: build +
guest_standard_streamspass, and the new test fails to link without the change.flockfile/funlockfilereuse the per-stream lock that standard I/O takes, so recursion and cross-thread blocking are covered. Merging.