Kernel.Fs: Device file cleanup and /dev/rng implementation (#3682)

* Add RNG device

* rng device implementation

Tailored around libSceSsl2's usage, and based on fpPS4's implementation.

* Device file function types and log fixups

* Updated creates

Updates device file create functions to be the same as the directory file create functions.

* Fix compile

* Includes cleanup

Generally preferred to have full paths. Also removed some unused imports too.

* Fix buffer size

* Bring back cstdlib imports

Needed for Mac OS.
This commit is contained in:
Stephen Miller
2025-10-01 14:20:58 -05:00
committed by GitHub
parent 6d0b179d24
commit 6fb64a8054
19 changed files with 373 additions and 247 deletions

View File

@@ -769,6 +769,8 @@ set(CORE src/core/aerolib/stubs.cpp
src/core/file_sys/devices/deci_tty6_device.h
src/core/file_sys/devices/random_device.cpp
src/core/file_sys/devices/random_device.h
src/core/file_sys/devices/rng_device.cpp
src/core/file_sys/devices/rng_device.h
src/core/file_sys/devices/urandom_device.cpp
src/core/file_sys/devices/urandom_device.h
src/core/file_sys/devices/srandom_device.cpp