feat(libkernel): implement clock_settime argument handling #4376
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4376"
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:13:40Z.
What
Carries the
clock_settimecommit from #3632 on currentmain, preserving its original commit author. It follows FreeBSD 11.4 argument validation: null time returnsEFAULT, unsupported clocks and invalid seconds/nanoseconds returnEINVAL. A validCLOCK_REALTIMErequest throws with the requested timestamp because the emulator does not set the host clock or track a guest clock offset. The console privilege behavior remains documented in TechnicalDebt.This covers only the
clock_settimeexport from #3632; the other exports in that issue remain separate work.Tested
BUILD_TESTING=ON: CMake configure completed.guest_freebsd_clocks_testsand ranctest -R '^guest_freebsd_clocks$': 1/1 passed.python3 tools/check_conventions.py --base upstream/main: passed.git diff --check: passed.Checklist
main; no other open PR implements the same functionNotImplemented_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-12T08:26:16Z.
Progress report (
1acfa7f→98700ab)📈 System libraries: 86.37% (+0.01%, +1 implemented functions)
✅ 1 implemented
clock_settime_nid_postfixImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T11:51:16Z.
Windows test: head
695ed15famerged onto currentmain3d8ffeb27(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j4: full build 0 errors; ctest with the filterguest_freebsd_clocks: guest_freebsd_clocks passed (1 test(s), 0 failed);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:05Z.
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 oneandonlydean on 2026-10-13T00:21:38Z.
Closing: this is the
clock_settimecommit from #3654, which was closed until a title run stops at it, and no run is shown here; a validCLOCK_REALTIMEcall still only throws. Reopen with the title ID and the log line when one stops there.Pull request closed