some mach types

This commit is contained in:
Beau McCartney
2024-10-05 11:10:15 -06:00
parent 2181a42bbf
commit 3c2efb24b7
+14
View File
@@ -27,3 +27,17 @@ foreign mach {
semaphore_wait :: proc(semaphore: semaphore_t) -> kern_return_t ---
}
// NOTE(beau): types for stuff in the mach APIS, recreated from the typedefs as
// faithfully as possible
mach_port_t :: c.uint
vm_map_t :: mach_port_t
mem_entry_name_port_t :: mach_port_t
vm_size_t :: c.uintptr_t
vm_address_t :: vm_offset_t
vm_offset_t :: c.uintptr_t
boolean_t :: c.int