From c520f029bb4702a3190c92945eef15dd4fca52ba Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Thu, 29 Aug 2024 00:54:45 -0700 Subject: [PATCH] initial posix/spawn --- core/sys/posix/spawn.odin | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/sys/posix/spawn.odin diff --git a/core/sys/posix/spawn.odin b/core/sys/posix/spawn.odin new file mode 100644 index 000000000..3ef738b52 --- /dev/null +++ b/core/sys/posix/spawn.odin @@ -0,0 +1,13 @@ +package posix + +import "core:c" + +when ODIN_OS == .Darwin { + foreign import lib "system:System.framework" +} else { + foreign import lib "system:c" +} + +foreign lib { + posix_spawn :: proc(pid: ^pid_t, path: cstring, file_actions: rawptr, attrp: rawptr, argv: [^]cstring, envp: [^]cstring) -> c.int --- +}