mirror of
https://github.com/RGBCube/serenity
synced 2025-10-27 23:12:31 +00:00
Implement argc/argv support for spawned tasks.
Celebrate the new functionality with a simple /bin/cat implementation. :^)
This commit is contained in:
parent
53abfa7ea1
commit
df87dda63c
13 changed files with 105 additions and 17 deletions
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
int spawn(const char* path)
|
||||
int spawn(const char* path, const char** args)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::Spawn, (dword)path);
|
||||
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue