mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
[rpcsx-os] fork: implement vm and vfs fork
stub metadbg device implement notification device implement sys_pipe
This commit is contained in:
parent
39092c7f16
commit
525ef02e8a
22 changed files with 379 additions and 76 deletions
|
|
@ -11,7 +11,7 @@ struct UrandomDevice : public IoDevice {
|
|||
};
|
||||
struct UrandomFile : public orbis::File {};
|
||||
|
||||
static orbis::ErrorCode zero_read(orbis::File *file, orbis::Uio *uio,
|
||||
static orbis::ErrorCode urandom_read(orbis::File *file, orbis::Uio *uio,
|
||||
orbis::Thread *) {
|
||||
for (auto entry : std::span(uio->iov, uio->iovcnt)) {
|
||||
std::memset(entry.base, 0, entry.len);
|
||||
|
|
@ -22,7 +22,7 @@ static orbis::ErrorCode zero_read(orbis::File *file, orbis::Uio *uio,
|
|||
}
|
||||
|
||||
static const orbis::FileOps ops = {
|
||||
.read = zero_read,
|
||||
.read = urandom_read,
|
||||
};
|
||||
|
||||
orbis::ErrorCode UrandomDevice::open(orbis::Ref<orbis::File> *file,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue