summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-13 19:16:27 -0400
committerIan Moffett <ian@osmora.org>2025-06-13 19:16:27 -0400
commit68fbe4a2292dc5b4025dd4201fd4b892605079b7 (patch)
treeb2683975dc48116a57a7c7911712b63749a176b1 /lib/libc
parent9f534c75cd0e29b5b829c412ced28fa846c7d911 (diff)
kernel: spawn: Add argv + stub envp arguments
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/src/hyra/spawn.c7
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);
}