mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
PS5MC (PPSA99420) imports setitimer (hPWDGx8ioXQ, aerolib) at registry index 472, after tcsetpgrp and before getitimer. Predicted stop: "FAIL: unresolved ELF import hPWDGx8ioXQ from libkernel.prx". setitimer follows FreeBSD 11.4 kern_time.c (8c639945) sys_setitimer and kern_setitimer: EINVAL for an unknown timer and for an itimerfix failure or more than INT32_MAX / 2 seconds; a zero value clears the interval and disarms; a null value reads the timer, EFAULT when the output is null too. ITIMER_REAL shares the alarm state, now with an interval that re-arms it as realitexpire does; alarm clears it, as FreeBSD's alarm.c does. Guest SIGALRM handlers are not run, so an expiry with a handler, or with SIGALRM blocked (signals are never left pending), throws naming the interval; SIG_IGN drops it and the default disposition exits with 142, as alarm already did. Intervals below 1 ms throw (itimerfix rounds them to tick / 16 and the console's hz is unknown). ITIMER_VIRTUAL and ITIMER_PROF throw when armed and read and disarm as zero. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>