mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-11 11:10:04 +01:00
ipmi: fixed respond sync, get message, try get message, try send message event: detach event emitter from file signals: basic implementation linker: fixed zero symbol relocation, fixed exec relocation shared_cv/mutex: implement eintr response support shared_cv: fixed possible loop instead of wait ipmi: implement invoke async, respond async, get result, get client app id, client get name rpcsx-os: add safemode flag
16 lines
437 B
C++
16 lines
437 B
C++
#include "sys/sysproto.hpp"
|
|
#include "thread/Thread.hpp"
|
|
#include "thread/Process.hpp"
|
|
#include "utils/Logs.hpp"
|
|
#include <pipe.hpp>
|
|
|
|
orbis::SysResult orbis::sys_pipe(Thread *thread) {
|
|
auto [a, b] = createPipe();
|
|
auto fd0 = thread->tproc->fileDescriptors.insert(a);
|
|
auto fd1 = thread->tproc->fileDescriptors.insert(b);
|
|
ORBIS_LOG_ERROR(__FUNCTION__, fd0, fd1);
|
|
thread->retval[0] = fd0;
|
|
thread->retval[1] = fd1;
|
|
return {};
|
|
}
|