mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #2554] [MERGED] libkernel: Filesystem code cleanup #2818
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2818
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2554
Author: @StevenMiller123
Created: 2/27/2025
Status: ✅ Merged
Merged: 3/26/2025
Merged by: @georgemoralis
Base:
main← Head:fs-cleanup📝 Commits (10+)
e29e3f1sceKernelOpen: Clean up flag handling8b2ec07sceKernelOpen: fix params3a68341sceKernelOpen: Fix errors9db2f6eFix exports84c3bdbProper errno behavior on open281a07eReorganize open calls, add error logfb8883dImprove close4a4589aFix log on close671cbfbposix_open fixups55790e3Readd hack in posix_close📊 Changes
5 files changed (+537 additions, -302 deletions)
View changed files
📝
src/common/io_file.cpp(+4 -1)📝
src/common/io_file.h(+2 -0)📝
src/core/libraries/kernel/file_system.cpp(+515 -281)📝
src/core/libraries/kernel/file_system.h(+4 -4)📝
src/core/libraries/kernel/kernel.cpp(+12 -16)📄 Description
This PR reorganizes our libkernel filesystem code to better align with our current coding standards, the actual FreeBSD documentation, and observations I've made while decompiling libkernel.
What this does:
sceKernelfunctions to the lowest-level export (to match libkernel behavior, and similar changes made in other areas of our libkernel HLE).posixfunction variants.openfunction (based on libkernel decompilation, seems to work fine in libSceLibcInternal LLE)posix_preadandposix_pwriteopenandposix_open_writevand_readvtowritevandreadvto align with other similarly named filesystem functions.Given the number of changes here, this should probably get thoroughly tested before any merging.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.