Explorar el Código

initial posix/spawn

Colin Davidson hace 1 año
padre
commit
c520f029bb
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  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 ---
+}