mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
df87dda63c
Celebrate the new functionality with a simple /bin/cat implementation. :^)
14 lines
247 B
C++
14 lines
247 B
C++
#include "process.h"
|
|
#include "errno.h"
|
|
#include <Kernel/Syscall.h>
|
|
|
|
extern "C" {
|
|
|
|
int spawn(const char* path, const char** args)
|
|
{
|
|
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args);
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
}
|
|
|
|
}
|
|
|