diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 1760483cbd51a..a12a7bf067776 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -2265,6 +2265,8 @@ uselocale utimensat utmpx utmpxname +vm_allocate +vm_deallocate vm_inherit_t vm_map_t vm_prot_t diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index f12daceec85bf..262313323638d 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -6279,6 +6279,13 @@ extern "C" { inheritance: ::vm_inherit_t, ) -> ::kern_return_t; + pub fn vm_allocate( + target_task: vm_map_t, + address: *mut vm_address_t, + size: vm_size_t, + flags: ::c_int, + ) -> ::kern_return_t; + pub fn vm_deallocate( target_task: vm_map_t, address: vm_address_t,