]>
Commit | Line | Data |
---|---|---|
d9a64523 A |
1 | #include <mach/mach_init.h> |
2 | #include <mach/mach_vm.h> | |
3 | #include <stdlib.h> | |
4 | ||
5 | int main(void) | |
6 | { | |
7 | kern_return_t kr; | |
8 | mach_vm_address_t addr = 50ULL * 1024ULL * 1024ULL * 1024ULL; | |
9 | ||
10 | kr = mach_vm_allocate(current_task(), &addr, 4096, VM_FLAGS_FIXED); | |
11 | ||
12 | if (kr == KERN_SUCCESS) { | |
13 | return 0; | |
14 | } else { | |
15 | return 1; | |
16 | } | |
17 | } | |
18 |