bsd: fix some wrong assumptions about IPC
This commit is contained in:
@@ -13,10 +13,8 @@ void BSD_U::RegisterClient(Kernel::HLERequestContext& ctx) {
|
|||||||
|
|
||||||
IPC::RequestBuilder rb{ctx, 3};
|
IPC::RequestBuilder rb{ctx, 3};
|
||||||
|
|
||||||
// TODO(flerovium): first return value is BSD error number. Figure out what
|
rb.Push(RESULT_SUCCESS);
|
||||||
// the second return value means.
|
rb.Push<u32>(0); // bsd errno
|
||||||
rb.Push<u32>(0);
|
|
||||||
rb.Push<u32>(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
|
void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
|
||||||
@@ -30,10 +28,11 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
|
|||||||
|
|
||||||
u32 fd = next_fd++;
|
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>(fd);
|
||||||
rb.Push<u32>(0); // bsd errno (no error)
|
rb.Push<u32>(0); // bsd errno
|
||||||
}
|
}
|
||||||
|
|
||||||
BSD_U::BSD_U() : ServiceFramework("bsd:u") {
|
BSD_U::BSD_U() : ServiceFramework("bsd:u") {
|
||||||
|
|||||||
Reference in New Issue
Block a user