diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-10 19:44:32 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-10 19:44:32 -0400 |
commit | 7c46a8f234d618d7471e6b09d480688270a33fe3 (patch) | |
tree | b35ab6e1d9e21ab871ecc92f853e51f47aff46bf /src/sys/include/compat | |
parent | 2c5df0dfeaf878f0f09485b7a80c79aea36d194e (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src/sys/include/compat')
-rw-r--r-- | src/sys/include/compat/unix/syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |