2023-07-03 13:10:16 +02:00
|
|
|
#include "sys/sysproto.hpp"
|
|
|
|
|
|
2023-07-06 18:16:25 +02:00
|
|
|
orbis::SysResult orbis::sys_mount(Thread *thread, ptr<char> type,
|
|
|
|
|
ptr<char> path, sint flags, caddr_t data) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
2023-11-11 15:52:27 +01:00
|
|
|
|
2023-07-06 18:16:25 +02:00
|
|
|
orbis::SysResult orbis::sys_unmount(Thread *thread, ptr<char> path,
|
|
|
|
|
sint flags) {
|
2023-11-11 15:52:27 +01:00
|
|
|
if (auto unmount = thread->tproc->ops->unmount) {
|
|
|
|
|
return unmount(thread, path, flags);
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-06 18:16:25 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
2023-11-11 15:52:27 +01:00
|
|
|
|
2023-07-29 18:53:34 +02:00
|
|
|
orbis::SysResult orbis::sys_nmount(Thread *thread, ptr<IoVec> iovp, uint iovcnt,
|
|
|
|
|
sint flags) {
|
2023-11-11 15:52:27 +01:00
|
|
|
if (auto nmount = thread->tproc->ops->nmount) {
|
|
|
|
|
return nmount(thread, iovp, iovcnt, flags);
|
2023-10-31 19:32:43 +01:00
|
|
|
}
|
2023-11-11 15:52:27 +01:00
|
|
|
|
|
|
|
|
return ErrorCode::NOSYS;
|
2023-07-06 18:16:25 +02:00
|
|
|
}
|