From d0d0db225f7620699395f63f5cbc178ab00c390a Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Fri, 17 Nov 2023 16:21:08 +0000 Subject: [PATCH] add vm_allocate for apple --- libc-test/semver/apple.txt | 2 ++ src/unix/bsd/apple/mod.rs | 7 +++++++ 2 files changed, 9 insertions(+) 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,