| // NACL MOD TRACK "third_party/nacl-glibc/sysdeps/nacl/munmap.c" | |
| #include <errno.h> | |
| #include <sys/mman.h> | |
| #include <irt_syscalls.h> | |
| int __munmap (void *start, size_t length) | |
| { | |
| int result = __nacl_irt_munmap (start, length); | |
| if (result != 0) { | |
| errno = result; | |
| return -1; | |
| } | |
| return 0; | |
| } | |
| #ifdef _USE_NACL_SYS_ALIAS_ | |
| weak_alias (__munmap, munmap) | |
| #endif |