Browse Source

initial posix/spawn

Colin Davidson 1 năm trước cách đây
mục cha
commit
c520f029bb
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      core/sys/posix/spawn.odin

+ 13 - 0
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 ---
+}