rpcsx/orbis-kernel/src/sys/sys_uipc_shm.cpp

26 lines
692 B
C++
Raw Normal View History

#include "orbis-config.hpp"
2023-07-03 13:10:16 +02:00
#include "sys/sysproto.hpp"
#include "utils/Logs.hpp"
2023-07-03 13:10:16 +02:00
2023-07-06 18:16:25 +02:00
orbis::SysResult orbis::sys_shm_open(Thread *thread, ptr<const char> path,
sint flags, mode_t mode) {
char _name[256];
if (auto result = ureadString(_name, sizeof(_name), path);
result != ErrorCode{}) {
return result;
}
ORBIS_LOG_TODO(__FUNCTION__, _name, flags, mode);
return {};
2023-07-06 18:16:25 +02:00
}
orbis::SysResult orbis::sys_shm_unlink(Thread *thread, ptr<const char> path) {
2023-07-23 16:40:01 +02:00
char _name[256];
if (auto result = ureadString(_name, sizeof(_name), path);
result != ErrorCode{}) {
return result;
}
ORBIS_LOG_TODO(__FUNCTION__, _name);
return {};
2023-07-06 18:16:25 +02:00
}