| Index: sysdeps/nacl/mprotect.c
|
| diff --git a/sysdeps/nacl/munmap.c b/sysdeps/nacl/mprotect.c
|
| similarity index 51%
|
| copy from sysdeps/nacl/munmap.c
|
| copy to sysdeps/nacl/mprotect.c
|
| index 619d5a779fd054b185370dcc87a6df18715c8698..68cbe6c5b453607c6afbfbaf21eab8d72ee33c69 100644
|
| --- a/sysdeps/nacl/munmap.c
|
| +++ b/sysdeps/nacl/mprotect.c
|
| @@ -5,13 +5,13 @@
|
| #include <irt_syscalls.h>
|
|
|
|
|
| -int __munmap (void *start, size_t length)
|
| +int __mprotect (void *addr, size_t len, int prot)
|
| {
|
| - int result = __nacl_irt_munmap (start, length);
|
| + int result = __nacl_irt_mprotect (addr, len, prot);
|
| if (result != 0) {
|
| errno = result;
|
| return -1;
|
| }
|
| return 0;
|
| }
|
| -weak_alias (__munmap, munmap)
|
| +weak_alias (__mprotect, mprotect)
|
|
|