feat(libkernel_sys): export fstatfs #3439
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3439"
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 babyhuey on 2026-10-11T10:34:09Z.
What
Exports
fstatfs(+rWFNYiNaEM) from libkernel_sys, the module titles import it from, as a forwarder to libkernel's_fstatfs(#2858). On FreeBSDfstatfsand_fstatfsare the same system call under two names, so it shares the 472-bytestatfslayout, the socket and descriptor checks and theerrnoresults.PS5VR (PPSA99177) stops at it on
main99c1c263, now thatlink(#3403) is in (catalog build,eboot.binandsce_module/libc.prxunwrapped as #2605 requires; tracked in #1578):app.elf: symbol lookup error: app.elf: undefined symbol: +rWFNYiNaEMFAIL: unresolved ELF import +rWFNYiNaEM (fstatfs) from libkernel_sys.prxapp.elf: symbol lookup error: app.elf: undefined symbol: waIF+5fE5HQ(symlink)FAIL: unresolved ELF import waIF+5fE5HQ (symlink) from libkernel_sys.prxTested
Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release:
guest_kernel_syspasses 5/5 (--repeat until-fail:5) on both, with no warnings inExport.cpporGuestKernelSys.cpp. The new cases callfstatfsand_fstatfson the same descriptor and compare the version, block size and filesystem type name, then checkEFAULTfor a null buffer andEBADFfor a closed descriptor througherrno.check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T10:34:36Z.
Progress report (
99c1c26→81075a6)➖ System libraries: 85.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
fstatfs_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T10:42:18Z.
Checked build and
guest_kernel_syson Linux (libs scope, 18/18 pass); the new cases don't link without the change.fstatfsforwards to the existing_fstatfs(same syscall on FreeBSD), and the test covers EFAULT and EBADF. Merging.