#include "sys/sysproto.hpp" #include "thread/Process.hpp" #include "utils/Logs.hpp" struct KQueue : orbis::File {}; orbis::SysResult orbis::sys_kqueue(Thread *thread) { ORBIS_LOG_TODO(__FUNCTION__); auto queue = knew(); 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 changelist, sint nchanges, ptr eventlist, sint nevents, ptr timeout) { // ORBIS_LOG_TODO(__FUNCTION__, fd); thread->retval[0] = 1; return {}; }