diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-13 19:16:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-13 19:16:27 -0400 |
commit | 68fbe4a2292dc5b4025dd4201fd4b892605079b7 (patch) | |
tree | b2683975dc48116a57a7c7911712b63749a176b1 /lib/libc/src | |
parent | 9f534c75cd0e29b5b829c412ced28fa846c7d911 (diff) |
kernel: spawn: Add argv + stub envp arguments
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/src')
-rw-r--r-- | lib/libc/src/hyra/spawn.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/src/hyra/spawn.c b/lib/libc/src/hyra/spawn.c index 227d8f7..b4c92ef 100644 --- a/lib/libc/src/hyra/spawn.c +++ b/lib/libc/src/hyra/spawn.c @@ -35,10 +35,13 @@ * Spawn a process * * @pathname: Path to executable. + * @argv: Argument vector + * @envp: Environment vector * @flags: Spawn flags. */ pid_t -spawn(const char *pathname, int flags) +spawn(const char *pathname, char **argv, char **envp, int flags) { - return syscall(SYS_spawn, (uintptr_t)pathname, flags); + return syscall(SYS_spawn, (uintptr_t)pathname, (uintptr_t)argv, + (uintptr_t)envp, flags); } |