1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef LINUX_USER_USER_MMAP_H
19#define LINUX_USER_USER_MMAP_H
20
21int target_mprotect(abi_ulong start, abi_ulong len, int prot);
22abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
23 int flags, int fd, abi_ulong offset);
24int target_munmap(abi_ulong start, abi_ulong len);
25abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
26 abi_ulong new_size, unsigned long flags,
27 abi_ulong new_addr);
28abi_long target_madvise(abi_ulong start, abi_ulong len_in, int advice);
29extern unsigned long last_brk;
30extern abi_ulong mmap_next_start;
31abi_ulong mmap_find_vma(abi_ulong, abi_ulong, abi_ulong);
32void mmap_fork_start(void);
33void mmap_fork_end(int child);
34
35#endif
36