feat(libkernel): export the POSIX rename

Titles that ship their own libc in sce_module import rename from
libkernel (NID NN01qLRhiqU), where it was missing, so PPSA12544 failed
to start. It checks both paths like unlink and maps sceKernelRename's
result to errno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ps54all
2026-10-07 16:00:55 +02:00
parent 364a56b681
commit fc457760a8
@@ -643,6 +643,12 @@ int APS5_VABI sceKernelRename(const char* from, const char* to) {
return 0;
}
int APS5_VABI rename_nid_postfix(const char* from, const char* to) {
if (const int error = PathError(from)) return PosixFailure(error);
if (const int error = PathError(to)) return PosixFailure(error);
return PosixResult(sceKernelRename(from, to));
}
int APS5_VABI sceKernelRmdir(const char* path) {
if (path == nullptr) throw std::invalid_argument("sceKernelRmdir: path is null");
const auto native = ResolvePath_nid_no_patch(path);