Browse Source
Merge pull request #7085 from Morph1984/bsd-read-stub
service: bsd: Stub Read
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
6 deletions
-
src/core/hle/service/sockets/bsd.cpp
|
|
|
@ -419,13 +419,12 @@ void BSD::Read(Kernel::HLERequestContext& ctx) { |
|
|
|
IPC::RequestParser rp{ctx}; |
|
|
|
const s32 fd = rp.Pop<s32>(); |
|
|
|
|
|
|
|
LOG_DEBUG(Service, "called. fd={} len={}", fd, ctx.GetWriteBufferSize()); |
|
|
|
LOG_WARNING(Service, "(STUBBED) called. fd={} len={}", fd, ctx.GetWriteBufferSize()); |
|
|
|
|
|
|
|
ExecuteWork(ctx, RecvWork{ |
|
|
|
.fd = fd, |
|
|
|
.flags = 0, |
|
|
|
.message = std::vector<u8>(ctx.GetWriteBufferSize()), |
|
|
|
}); |
|
|
|
IPC::ResponseBuilder rb{ctx, 4}; |
|
|
|
rb.Push(ResultSuccess); |
|
|
|
rb.Push<u32>(0); // ret
|
|
|
|
rb.Push<u32>(0); // bsd errno
|
|
|
|
} |
|
|
|
|
|
|
|
void BSD::Close(Kernel::HLERequestContext& ctx) { |
|
|
|
|