summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sockets
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-31 06:38:08 +0100
committerGitHub <noreply@github.com>2021-01-31 06:38:08 +0100
commit360ea64738bd40259ddbfcf901d33424da8fdb18 (patch)
treefc0f7ea64f4f5fab06376afd7cde3caae9d2e390 /src/core/hle/service/sockets
parentMerge pull request #5779 from bunnei/kthread-rewrite (diff)
parentbsd: Stub EventFd (diff)
downloadyuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar.gz
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar.bz2
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar.lz
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar.xz
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.tar.zst
yuzu-360ea64738bd40259ddbfcf901d33424da8fdb18.zip
Diffstat (limited to 'src/core/hle/service/sockets')
-rw-r--r--src/core/hle/service/sockets/bsd.cpp12
-rw-r--r--src/core/hle/service/sockets/bsd.h1
2 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp
index 22f540914..4ffb00902 100644
--- a/src/core/hle/service/sockets/bsd.cpp
+++ b/src/core/hle/service/sockets/bsd.cpp
@@ -416,6 +416,16 @@ void BSD::Close(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, CloseImpl(fd));
}
+void BSD::EventFd(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ IPC::RequestParser rp{ctx};
+ const s32 fd = rp.Pop<s32>();
+
+ LOG_DEBUG(Service, "called. fd={}", fd);
+
+ BuildErrnoResponse(ctx, Errno::SUCCESS);
+}
+
template <typename Work>
void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) {
work.Execute(this);
@@ -841,7 +851,7 @@ BSD::BSD(Core::System& system_, const char* name) : ServiceFramework{system_, na
{28, nullptr, "GetResourceStatistics"},
{29, nullptr, "RecvMMsg"},
{30, nullptr, "SendMMsg"},
- {31, nullptr, "EventFd"},
+ {31, &BSD::EventFd, "EventFd"},
{32, nullptr, "RegisterResourceStatisticsName"},
{33, nullptr, "Initialize2"},
};
diff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.h
index f5831dd48..1d2df9c61 100644
--- a/src/core/hle/service/sockets/bsd.h
+++ b/src/core/hle/service/sockets/bsd.h
@@ -136,6 +136,7 @@ private:
void SendTo(Kernel::HLERequestContext& ctx);
void Write(Kernel::HLERequestContext& ctx);
void Close(Kernel::HLERequestContext& ctx);
+ void EventFd(Kernel::HLERequestContext& ctx);
template <typename Work>
void ExecuteWork(Kernel::HLERequestContext& ctx, Work work);