mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
initial posix/spawn
This commit is contained in:
@@ -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 ---
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user