view src/platform/mmap.h @ 4:352169b06523

update
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Oct 2018 19:31:02 +0900
parents 2cf249471370
children
line wrap: on
line source

#define MVM_PAGE_READ    1
#define MVM_PAGE_WRITE   2
#define MVM_PAGE_EXEC    4

void *MVM_platform_alloc_pages(size_t size, int mode);
int MVM_platform_set_page_mode(void * block, size_t size, int mode);
int MVM_platform_free_pages(void *block, size_t size);
void *MVM_platform_map_file(int fd, void **handle, size_t size, int writable);
int MVM_platform_unmap_file(void *block, void *handle, size_t size);