浏览代码

some mach types

Beau McCartney 11 月之前
父节点
当前提交
3c2efb24b7
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      core/sys/darwin/mach_darwin.odin

+ 14 - 0
core/sys/darwin/mach_darwin.odin

@@ -27,3 +27,17 @@ foreign mach {
 	
 	
 	semaphore_wait :: proc(semaphore: semaphore_t) -> kern_return_t ---
 	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
+