initial posix/spawn

This commit is contained in:
Colin Davidson
2024-08-29 00:54:45 -07:00
parent 3209b319e8
commit c520f029bb

13
core/sys/posix/spawn.odin Normal file
View File

@@ -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 ---
}