mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 07:43:13 +00:00
initial posix/spawn
This commit is contained in:
13
core/sys/posix/spawn.odin
Normal file
13
core/sys/posix/spawn.odin
Normal 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 ---
|
||||
}
|
||||
Reference in New Issue
Block a user