From 7c46a8f234d618d7471e6b09d480688270a33fe3 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 10 Oct 2025 19:44:32 -0400 Subject: kern: proc: Add getargv system call Introduce a getargv system call that allows one to fetch an argument string using an index into the argument vector. Signed-off-by: Ian Moffett --- src/sys/include/compat/unix/syscall.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sys/include/compat/unix/syscall.h') diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h index 743e50c..2cca0bc 100644 --- a/src/sys/include/compat/unix/syscall.h +++ b/src/sys/include/compat/unix/syscall.h @@ -71,7 +71,8 @@ scret_t(*g_unix_sctab[])(struct syscall_args *) = { [SYS_spawn] = sys_spawn, [SYS_mount] = sys_mount, [SYS_open] = sys_open, - [SYS_muxtap] = sys_muxtap + [SYS_muxtap] = sys_muxtap, + [SYS_getargv] = sys_getargv }; #endif /* !_NEED_UNIX_SCTAB */ -- cgit v1.2.3