Repository navigation
feat(libkernel): export setrlimit - #3980
Conversation
|
I checked this PR on both OSes with XPSemu (PPSA97358) and PS5MC (PPSA99420), catalog builds. With #3580 merged, both stop at
|
|
Conflicts with main in |
d57e7f5 to
1ea062e
Compare
|
Build verification on Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release fails on this branch:
A forward declaration before the call fixes it, e.g. in extern "C" int APS5_VABI getrlimit_nid_postfix(int resource, GuestResourceLimit* limit);I could not run the AI-assisted: yes |
ae53466 to
fef2251
Compare
|
Thanks for catching this. I confirmed the current head calls |
|
Fixed in commit |
|
Additional validation: I installed Debian MinGW-w64 GCC 12 and cross-compiled the affected |
Co-Authored-By: Claude <noreply@anthropic.com>
2db6f66 to
f89c7fb
Compare
|
Checked against FreeBSD 11 Added in our own commit: moved the TechnicalDebt line next to the Not verified here: a native Windows build (@Nixitov's MinGW GCC 15.2 run) and behaviour on the console. Merging once CI is green. |
What
Implements the unclaimed
setrlimitexport from #3558. The call validates a null limit before the resource number, maps negative values toRLIM_INFINITY, and clamps a soft limit that exceeds the hard limit, following FreeBSD 11. It returns success when the normalized request matches whatgetrlimitreports. A change throws because the emulator does not store guest limit state; resources thatgetrlimitcannot report remain unsupported.This PR contains only
setrlimit. The credential setters and the separategetrlimitwork are tracked by their own changes.Tested
guest_setrlimit_tests; CTestguest_setrlimitpassed 1/1.tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
mainDepends on: none