summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {
416 BuildErrnoResponse(ctx, CloseImpl(fd)); 416 BuildErrnoResponse(ctx, CloseImpl(fd));
417} 417}
418 418
419void BSD::EventFd(Kernel::HLERequestContext& ctx) {
420 LOG_WARNING(Service, "(STUBBED) called");
421 IPC::RequestParser rp{ctx};
422 const s32 fd = rp.Pop<s32>();
423
424 LOG_DEBUG(Service, "called. fd={}", fd);
425
426 BuildErrnoResponse(ctx, Errno::SUCCESS);
427}
428
419template <typename Work> 429template <typename Work>
420void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) { 430void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) {
421 work.Execute(this); 431 work.Execute(this);
@@ -841,7 +851,7 @@ BSD::BSD(Core::System& system_, const char* name) : ServiceFramework{system_, na
841 {28, nullptr, "GetResourceStatistics"}, 851 {28, nullptr, "GetResourceStatistics"},
842 {29, nullptr, "RecvMMsg"}, 852 {29, nullptr, "RecvMMsg"},
843 {30, nullptr, "SendMMsg"}, 853 {30, nullptr, "SendMMsg"},
844 {31, nullptr, "EventFd"}, 854 {31, &BSD::EventFd, "EventFd"},
845 {32, nullptr, "RegisterResourceStatisticsName"}, 855 {32, nullptr, "RegisterResourceStatisticsName"},
846 {33, nullptr, "Initialize2"}, 856 {33, nullptr, "Initialize2"},
847 }; 857 };
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:
136 void SendTo(Kernel::HLERequestContext& ctx); 136 void SendTo(Kernel::HLERequestContext& ctx);
137 void Write(Kernel::HLERequestContext& ctx); 137 void Write(Kernel::HLERequestContext& ctx);
138 void Close(Kernel::HLERequestContext& ctx); 138 void Close(Kernel::HLERequestContext& ctx);
139 void EventFd(Kernel::HLERequestContext& ctx);
139 140
140 template <typename Work> 141 template <typename Work>
141 void ExecuteWork(Kernel::HLERequestContext& ctx, Work work); 142 void ExecuteWork(Kernel::HLERequestContext& ctx, Work work);