aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2025-07-29 12:12:15 -0700
committerColin Davidson <colrdavidson@gmail.com>2025-07-29 12:12:15 -0700
commitc1b3d035e4be4bdbebb397035a95e6dbc60f1bd6 (patch)
treefcb6ffa3f9a90e8889f1111067ce68e9d12fa841 /core/sys
parent0a102bd757fb0a5871a00a28db6d46cf025bb8d0 (diff)
remove spawn from os, comment sys/posix/spawn
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/posix/spawn.odin8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/sys/posix/spawn.odin b/core/sys/posix/spawn.odin
index 8933915be..584201bcf 100644
--- a/core/sys/posix/spawn.odin
+++ b/core/sys/posix/spawn.odin
@@ -7,6 +7,14 @@ when ODIN_OS == .Darwin {
}
foreign lib {
+ /*
+ Creates a child process from a provided filepath
+ spawnp searches directories on the path for the file
+
+ Returns: 0 on success, with the child pid returned in the pid argument, or error values on failure.
+
+ [[ More; https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html ]]
+ */
posix_spawn :: proc(pid: ^pid_t, path: cstring, file_actions: rawptr, attrp: rawptr, argv: [^]cstring, envp: [^]cstring) -> Errno ---
posix_spawnp :: proc(pid: ^pid_t, file: cstring, file_actions: rawptr, attrp: rawptr, argv: [^]cstring, envp: [^]cstring) -> Errno ---
}