mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[orbis-kernel] Stub kevent
This commit is contained in:
parent
25ea51b972
commit
985ba2d6fb
|
|
@ -1,10 +1,26 @@
|
|||
#include "sys/sysproto.hpp"
|
||||
|
||||
orbis::SysResult orbis::sys_kqueue(Thread *thread) { return {}; }
|
||||
#include "thread/Process.hpp"
|
||||
#include "utils/Logs.hpp"
|
||||
|
||||
orbis::SysResult orbis::sys_kevent(Thread *thread, sint fd,
|
||||
ptr<struct kevent> changelist, sint nchanges,
|
||||
ptr<struct kevent> eventlist, sint nevents,
|
||||
ptr<const struct timespec> timeout) {
|
||||
struct KQueue : orbis::RcBase {};
|
||||
|
||||
orbis::SysResult orbis::sys_kqueue(Thread *thread) {
|
||||
ORBIS_LOG_TODO(__FUNCTION__);
|
||||
auto queue = knew<KQueue>();
|
||||
if (queue == nullptr) {
|
||||
return ErrorCode::NOMEM;
|
||||
}
|
||||
|
||||
thread->retval[0] = thread->tproc->fileDescriptors.insert(queue);
|
||||
return {};
|
||||
}
|
||||
|
||||
orbis::SysResult orbis::sys_kevent(Thread *thread, sint fd,
|
||||
ptr<KEvent> changelist, sint nchanges,
|
||||
ptr<KEvent> eventlist, sint nevents,
|
||||
ptr<const timespec> timeout) {
|
||||
// ORBIS_LOG_TODO(__FUNCTION__, fd);
|
||||
thread->retval[0] = 1;
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue