bsd: fix some wrong assumptions about IPC

This commit is contained in:
Frederic Meyer
2018-01-17 22:25:44 +01:00
parent 8bb88a135b
commit a776640c1a

View File

@@ -13,10 +13,8 @@ void BSD_U::RegisterClient(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb{ctx, 3};
// TODO(flerovium): first return value is BSD error number. Figure out what
// the second return value means.
rb.Push<u32>(0);
rb.Push<u32>(0);
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(0); // bsd errno
}
void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
@@ -30,10 +28,11 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
u32 fd = next_fd++;
IPC::RequestBuilder rb{ctx, 3};
IPC::RequestBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(fd);
rb.Push<u32>(0); // bsd errno (no error)
rb.Push<u32>(0); // bsd errno
}
BSD_U::BSD_U() : ServiceFramework("bsd:u") {