OpenOrbis / musl

A PS4 port of musl for the OpenOrbis PS4 Toolchain.
Other
34 stars 9 forks source link

Use libkernel for syscalls on PS4 #17

Closed sleirsgoevy closed 2 years ago

sleirsgoevy commented 3 years ago

Probably resolves this issue.

sleirsgoevy commented 3 years ago

A less intrusive way would be to build kind of a syscall table, mapping syscall numbers to libkernel wrappers, and a fake syscall function to call the referenced wrapper, or return ENOSYS if no wrapper is available. But that seems just too hacky.

sleirsgoevy commented 2 years ago

IMPORTANT: this turns any syscalls that are MISSING from libkernel into ENOSYS.