2023-07-03 13:10:16 +02:00
|
|
|
#include "sys/sysproto.hpp"
|
2024-01-13 18:57:02 +01:00
|
|
|
#include "thread/Thread.hpp"
|
|
|
|
|
#include "thread/Process.hpp"
|
|
|
|
|
#include "thread/ProcessOps.hpp"
|
2023-07-03 13:10:16 +02:00
|
|
|
|
2023-07-06 18:16:25 +02:00
|
|
|
orbis::SysResult orbis::sys_execve(Thread *thread, ptr<char> fname,
|
|
|
|
|
ptr<ptr<char>> argv, ptr<ptr<char>> envv) {
|
2023-10-31 23:58:03 +01:00
|
|
|
if (auto execve = thread->tproc->ops->execve) {
|
|
|
|
|
return execve(thread, fname, argv, envv);
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-06 18:16:25 +02:00
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
orbis::SysResult orbis::sys_fexecve(Thread *thread, sint fd,
|
|
|
|
|
ptr<ptr<char>> argv, ptr<ptr<char>> envv) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|
|
|
|
|
orbis::SysResult orbis::sys___mac_execve(Thread *thread, ptr<char> fname,
|
|
|
|
|
ptr<ptr<char>> argv,
|
|
|
|
|
ptr<ptr<char>> envv,
|
|
|
|
|
ptr<struct mac> mac_p) {
|
|
|
|
|
return ErrorCode::NOSYS;
|
|
|
|
|
}
|