Skip to content

Commit 4ac74f5

Browse files
committed
Auto merge of #3448 - hjmallon:_hm/vmalloc, r=JohnTitor
add vm_allocate for apple We have vm_deallocate, why not vm_allocate too? I am not totally sure whether these should live here or in mach2?
2 parents 1ab1874 + d0d0db2 commit 4ac74f5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,6 +2265,8 @@ uselocale
22652265
utimensat
22662266
utmpx
22672267
utmpxname
2268+
vm_allocate
2269+
vm_deallocate
22682270
vm_inherit_t
22692271
vm_map_t
22702272
vm_prot_t

src/unix/bsd/apple/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6279,6 +6279,13 @@ extern "C" {
62796279
inheritance: ::vm_inherit_t,
62806280
) -> ::kern_return_t;
62816281

6282+
pub fn vm_allocate(
6283+
target_task: vm_map_t,
6284+
address: *mut vm_address_t,
6285+
size: vm_size_t,
6286+
flags: ::c_int,
6287+
) -> ::kern_return_t;
6288+
62826289
pub fn vm_deallocate(
62836290
target_task: vm_map_t,
62846291
address: vm_address_t,

0 commit comments

Comments
 (0)