mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
spawn tweaks
This commit is contained in:
@@ -255,6 +255,7 @@ foreign mach {
|
||||
task_resume :: proc(task: task_t) -> kern_return_t ---
|
||||
task_threads :: proc(task: task_t, thread_list: ^thread_list_t, list_count: ^u32) -> kern_return_t ---
|
||||
task_info :: proc(task: task_t, flavor: i32, info: task_info_t, count: ^u32) -> kern_return_t ---
|
||||
task_terminate :: proc(task: task_t) -> kern_return_t ---
|
||||
|
||||
thread_get_state :: proc(thread: thread_act_t, flavor: i32, thread_state: thread_state_t, old_state_count: ^u32) -> kern_return_t ---
|
||||
thread_info :: proc(thread: thread_act_t, flavor: u32, thread_info: ^thread_identifier_info, info_count: ^u32) -> kern_return_t ---
|
||||
|
||||
@@ -10,4 +10,5 @@ when ODIN_OS == .Darwin {
|
||||
|
||||
foreign lib {
|
||||
posix_spawn :: proc(pid: ^pid_t, path: cstring, file_actions: rawptr, attrp: rawptr, argv: [^]cstring, envp: [^]cstring) -> c.int ---
|
||||
posix_spawnp :: proc(pid: ^pid_t, file: cstring, file_actions: rawptr, attrp: rawptr, argv: [^]cstring, envp: [^]cstring) -> c.int ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user