diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2024-08-29 00:54:45 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2024-08-29 00:54:45 -0700 |
| commit | c520f029bb4702a3190c92945eef15dd4fca52ba (patch) | |
| tree | 3a1f520fa8777b3a7c49be3dc03418fbdb3bd8eb /core/sys | |
| parent | 3209b319e85fa943f904d3af8e37c14ba58b6080 (diff) | |
initial posix/spawn
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/posix/spawn.odin | 13 |
1 files changed, 13 insertions, 0 deletions
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 --- +} |