feat(libkernel): implement setitimer #4382
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4382"
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-12T08:24:50Z.
What
Carries the ready
setitimerimplementation from issue #3735 onto currentmain, integrating it with the existinggetitimerand alarm timer state.ITIMER_REALsupports countdown, disarm, and periodic rearming. Invalid inputs return FreeBSD-style errors; unsupported CPU timers, sub-millisecond intervals, and signal delivery cases fail explicitly where the emulator lacks the required behavior.This PR covers only the
setitimerportion;getitimerremains as currently implemented onmain.Tested
guest_itimer_tests,guest_signal_tests.ctest --test-dir /tmp/AnyPS5-3735-build -R '^guest_itimer$' --output-on-failure: 1/1 passed.ctest --test-dir /tmp/AnyPS5-3735-build -R '^guest_signals$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py: passed.git diff --check upstream/main: passed.Checklist
main; no other open PR implements the same function.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T08:31:20Z.
Progress report (
1acfa7f→12abb3f)📈 System libraries: 86.37% (+0.01%, +1 implemented functions)
✅ 1 implemented
setitimer_nid_postfixImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T08:41:53Z.
The PR description was corrected to use the template section headings (
### What,### Tested,### Checklist) and now passes the local conventions checker. The current hosted conventions result reflects the earlier body. Posting this update to trigger a fresh PR check against the corrected description.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T11:22:30Z.
Windows test: head
7fba6709cmerged onto currentmain3d8ffeb27(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j4: full build 0 errors; ctest (guest_itimer): 1/1 passed;python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T14:02:00Z.
Rebase handoff — rebased onto current
main, authorship unchanged (only aTechnicalDebt.mdunion conflict; both entries kept).Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesTo pick it up:
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T20:31:55Z.
Closing this stale carry as superseded by merged #3800, which includes the same
setitimerimplementation plus the interval-reporting fix forgetitimer. The current head here would also remove that mergedgetitimerinterval reporting if rebased as written, so it no longer has a safe unique diff to preserve.Pull request closed