Luna/libos/src/Process.cpp

13 lines
218 B
C++
Raw Normal View History

2023-04-18 16:16:24 +00:00
#include <os/Process.h>
#include <sys/syscall.h>
#include <unistd.h>
namespace os
{
Result<pid_t> Process::fork()
{
long rc = syscall(SYS_fork);
return Result<pid_t>::from_syscall(rc);
}
}