forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathios-headers.h
More file actions
31 lines (23 loc) · 1.17 KB
/
ios-headers.h
File metadata and controls
31 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2023 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BASE_IOS_HEADERS_H_
#define V8_BASE_IOS_HEADERS_H_
// This file includes the necessary headers that are not part of the
// iOS public SDK in order to support memory allocation on iOS.
#include <mach/mach.h>
#include <mach/vm_map.h>
__BEGIN_DECLS
kern_return_t mach_vm_remap(
vm_map_t target_task, mach_vm_address_t* target_address,
mach_vm_size_t size, mach_vm_offset_t mask, int flags, vm_map_t src_task,
mach_vm_address_t src_address, boolean_t copy, vm_prot_t* cur_protection,
vm_prot_t* max_protection, vm_inherit_t inheritance);
kern_return_t mach_vm_map(vm_map_t target_task, mach_vm_address_t* address,
mach_vm_size_t size, mach_vm_offset_t mask, int flags,
mem_entry_name_port_t object,
memory_object_offset_t offset, boolean_t copy,
vm_prot_t cur_protection, vm_prot_t max_protection,
vm_inherit_t inheritance);
__END_DECLS
#endif // V8_BASE_IOS_HEADERS_H_