summaryrefslogtreecommitdiff
path: root/sys/include
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 /sys/include
parent9f534c75cd0e29b5b829c412ced28fa846c7d911 (diff)
kernel: spawn: Add argv + stub envp arguments
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/limits.h1
-rw-r--r--sys/include/sys/spawn.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/include/sys/limits.h b/sys/include/sys/limits.h
index 198c963..f56958e 100644
--- a/sys/include/sys/limits.h
+++ b/sys/include/sys/limits.h
@@ -32,6 +32,7 @@
#define PATH_MAX 1024
#define SSIZE_MAX 32767
+#define ARG_MAX 4096
#define CHAR_BIT 8
#if defined(_KERNEL)
#define CPU_MAX 256
diff --git a/sys/include/sys/spawn.h b/sys/include/sys/spawn.h
index 9d823db..0c54e4c 100644
--- a/sys/include/sys/spawn.h
+++ b/sys/include/sys/spawn.h
@@ -36,6 +36,6 @@
#define SPAWN_WAIT BIT(0)
#if !defined(_KERNEL)
-pid_t spawn(const char *pathname, int flags);
+pid_t spawn(const char *pathname, char **argv, char **envp, int flags);
#endif /* _KERNEL */
#endif /* !_SYS_SPAWN_H_ */